custom-action

How do I change ROOTDRIVE with a CustomAction?

对着背影说爱祢 提交于 2019-12-21 21:34:30
问题 Normally, you can change the default root drive to install your application to using: <Property Id="ROOTDRIVE">D:\</Property> But now, I wish to change it using a CustomAction that gets called on a next button click in my install wizard: [CustomAction] public static ActionResult SetFullInstallRootDrive(Session session) { session["ROOTDRIVE"] = session["DRIVE_NAMES"].ToString(); } DRIVE_NAMES represents the drive selected, using a combo box, and ROOTDRIVE gets properly set to either whatever

WiX Action Sequence

﹥>﹥吖頭↗ 提交于 2019-12-20 12:35:13
问题 I was looking for list of actions and their sequence when running a WiX setup. Somehow the official website doesn't seem to provide any information. The basic problem is that I want to schedule my custom actions correctly. Typically I need to register a DLL with regsvr32.exe, and this can only be done once the files are copied to the harddrive. However the custom action <Custom Action="RegisterShellExt" After="InstallFiles"> failed with the error message "file not found". What I've done then

How do I fix 'Setup project with custom action file not found' exception?

﹥>﹥吖頭↗ 提交于 2019-12-20 11:14:04
问题 I am trying to create a setup project for a Windows Service. I've followed the directions at http://support.microsoft.com/kb/816169 to create the setup project with no trouble. I want to be able to get a value during the installation in order to update the app.config with the user's desired settings. I added a Textboxes (A) dialog to retrieve the values. I set the Edit1Property property to "TIMETORUN", and in my Primary Output action's CustomActionData property I put in the following:

How to update appsettings.json from wix custom actions with the values passed as parameter during command line installation?

寵の児 提交于 2019-12-20 06:37:17
问题 I’m currently working on a project where I am using Wix for the installer. My application is developed using .net core and having appsettings.json as a configuration file. I would like to update the values on the appsettings.json with the values which passed as a parameter during command-line installation For example, I am passing value 500 through parameter BUFFER.SIZE msiexec.exe /i c:\PathToMyMsi\MyMsi.msi BUFFER.SIZE="500" /L*vx c:\PathToMyLog.txt To achieve this, I have defined property

How do I show Error Message using Managed Custom Actions with Windows Installer

大憨熊 提交于 2019-12-19 05:45:04
问题 I am writing a managed custom action. I am using the DTF Framework from Windows Installer Xml to wrap the managed dll into a usable CA dll. The CA does what it is supposed to, but I am still having trouble with error handling: Dim record As New Record(1) ' Field 0 intentionally left blank ' Field 1 contains error number record(1) = 27533 session.Message(InstallMessage.Error, record) The above code produces the following text shown in the MSI log: MSI (c) (C4 ! C6) [13:15:08:749]: Product:

I require a MSI Custom action that copies a file from the MSI source directory

喜欢而已 提交于 2019-12-19 03:39:34
问题 I'm creating a installer for a c# windows project using VS 2008. I'm trying to write a custom action that copies a settings file from the source directory of the MSI file stored on a file server (e.g. \server\fileshare\myappinstaller\mysetting.xml) to the target directory on the computer on which my application is been installed (e.g. C:\Program Files\My App). The settings file can't be added in to the installer as it will contain settings with will be unique to the customer installing the

Error 1001 using custom installer with Visual Studio 2008

妖精的绣舞 提交于 2019-12-19 02:35:06
问题 I've created a simple winforms app and a custom installer. It all seems simple enough but I get the following popup and error details in the event log. The description for Event ID 11001 from source MsiInstaller cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved

Custom action on uninstall (clickonce) - in .NET

给你一囗甜甜゛ 提交于 2019-12-18 13:11:53
问题 For a .NET application installed using ClickOnce, is there any way to run a custom action during the uninstall process. Specifically, I need to delete a few app related files (which I created on first run) and call a web service during the uninstall process. Any ideas? 回答1: There is no way to do that with ClickOnce itself, but you can create a standard Setup.exe bootstrapper that installs the ClickOnce application and which has a custom uninstall action. Note that this however this creates

How to execute a WiX custom action DLL file with dependencies

二次信任 提交于 2019-12-18 11:46:06
问题 I want to create a CustomAction C# DLL file that depends on a third-party .NET DLL (in this specific case, it's MySql.Data.dll ). I have the C# custom action DLL file working with the WiX fragment below. I'm just trying to figure out how to safely add a dependency to the custom action. Note: I don't actually need this third-party DLL file file for the installed application to run. <Binary Id="MyCustomAction.dll" SourceFile="MyCustomAction.CA.dll" /> <CustomAction Id="FixupConfigForMysql"

Adding a new Custom Action to a project prevents an existing Custom Action from being run

不问归期 提交于 2019-12-18 09:17:11
问题 I have a Custom Action project that has various CA's used by installers that my company creates, a few of those are used to manipulate the IIs7 through the Microsoft.Web.Administration API. I added a new custom action called SetApplicationAutoStart the the class containing IIs related CA's. This custom action is used to set the autoStart attribute that forces the IIs to preload and start WCF services so that initial response time will be shorter. After adding this action an existing CA called