custom-action

Stop windows service before perform the uninstallation

£可爱£侵袭症+ 提交于 2021-02-20 06:49:11
问题 I have an installer that installs few components including windows service, after it installed it'll start the service that installed onto the system using CustomAction. The problem when I uninstall the application, the installer asks to close the application before continue. I created a custom action that will stop the service, and I scheduled it with Uninstall actions. But its not executed until I press OK for the error dialog after manually stop the service. It failed on Win7, but I tested

Stop windows service before perform the uninstallation

假装没事ソ 提交于 2021-02-20 06:47:05
问题 I have an installer that installs few components including windows service, after it installed it'll start the service that installed onto the system using CustomAction. The problem when I uninstall the application, the installer asks to close the application before continue. I created a custom action that will stop the service, and I scheduled it with Uninstall actions. But its not executed until I press OK for the error dialog after manually stop the service. It failed on Win7, but I tested

Access content of packaged XML file within custom action during installer's UI phase

让人想犯罪 __ 提交于 2021-02-11 14:53:06
问题 I am maintaining a WiX installer that already has a working UI and that executes a couple of custom actions during the UI phase. The current and working state depends on a number of property values being hardcoded in the .wxs file. I would like to change this: Instead of hardcoding the values I would like to gather them dynamically at installation time. I need this to happen already while the UI is being shown, because the property values impact the UI logic. Now the problem is that fragments

How to hide the value of customactiondata in logs of MSI?

六眼飞鱼酱① 提交于 2021-02-10 17:44:22
问题 I have a deferred custom action which fetches a property using Customactiondata, it contains the value of password that should not be displayed in the log . Packaging tool used: WIX Custom action written in C++ I have tried the below workarounds nothing seems to be working. Marked the property and CA name as hidden Hidetarget = yes in CA definition what needs to be done? Code: <CustomAction Id="CASETLOGINFORRCSERVICES" Return="check" HideTarget="yes" Execute="deferred" Impersonate="no"

Temporary rows added by custom-action are ignored by WriteRegistryValues

好久不见. 提交于 2021-02-07 10:15:41
问题 I'm writing a WIX script. I have a custom-action that adds rows dynamically to the Registry table: function AddRegistry() { var registryView = Session.Database.OpenView("SELECT * FROM Registry"); registryView.Execute(); var record = Session.Installer.CreateRecord(6); record.StringData(1) = "Unique123456"; record.IntegerData(2) = 2; record.StringData(3) = "Software"; record.StringData(4) = "my_registry_string"; record.StringData(5) = "value"; record.StringData(6) = "MyComponent"; registryView

Wix: CustomAction to set Folder permissions

故事扮演 提交于 2021-01-28 06:22:12
问题 We're using WiX to bundle up our ASP.NET code into an MSI installer, and we need to set the [ComputerName]\IIS_WPG group to have modify permissions on a folder (named "CO") under the installation directory. The directory structure looks like this after install C:\inetpub\wwwroot\MyApp\CO The CO folder is actually part of the .NET solution file, and when the application is bundled into an MSI, the CO folder is included automatically because there are XML files underneath it which are marked as

Cancel installation from my custom action

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-27 13:35:02
问题 I'm writing installer for my program using Windows Installer (not wix). In some cases i want cancel installation proccess from my custom action. Beside, i want show an error message with my text. How do this? C#, .net 3.5 回答1: You can do this by creating an error custom action. Set the condition of the error custom action to be the fail condition (if the condition evaluates to true, the installation will fail) and set the message to your custom text. 回答2: Working thing for me: Context: for

Cancel installation from my custom action

╄→尐↘猪︶ㄣ 提交于 2021-01-27 13:28:14
问题 I'm writing installer for my program using Windows Installer (not wix). In some cases i want cancel installation proccess from my custom action. Beside, i want show an error message with my text. How do this? C#, .net 3.5 回答1: You can do this by creating an error custom action. Set the condition of the error custom action to be the fail condition (if the condition evaluates to true, the installation will fail) and set the message to your custom text. 回答2: Working thing for me: Context: for

WIX - Run custom action on installation cancellation

本小妞迷上赌 提交于 2021-01-27 07:30:11
问题 I'm wirintg an installer using WIX and I need to execute a custom action when a user press the "cancel" button. I've created a custom action but I don't seem to find where to use that action. Any ideas how can I do that? 回答1: Try something like: <Custom Action="MyAction" OnExit="cancel">1</Custom> 回答2: OnExit="cancel" may fail if standard WIX UI is used (WIX assigns another action to "cancel" event). Action execution could be assigned to finish button in this case <Publish Dialog="UserExit"

WIX - Run custom action on installation cancellation

為{幸葍}努か 提交于 2021-01-27 07:29:38
问题 I'm wirintg an installer using WIX and I need to execute a custom action when a user press the "cancel" button. I've created a custom action but I don't seem to find where to use that action. Any ideas how can I do that? 回答1: Try something like: <Custom Action="MyAction" OnExit="cancel">1</Custom> 回答2: OnExit="cancel" may fail if standard WIX UI is used (WIX assigns another action to "cancel" event). Action execution could be assigned to finish button in this case <Publish Dialog="UserExit"