custom-action

Removing files when uninstalling WiX

只谈情不闲聊 提交于 2019-11-26 04:12:31
When uninstalling my application, I'd like to configure the Wix setup to remove all the files that were added after the original installation . It seems like the uninstaller removes only the directories and files that were originally installed from the MSI file and it leaves everything else that was added later in the application folder. In another words, I'd like to purge the directory when uninstalling. How do I do that? Use RemoveFile element with On=" uninstall ". Here's an example: <Directory Id="CommonAppDataFolder" Name="CommonAppDataFolder"> <Directory Id="MyAppFolder" Name="My">

How to pass CustomActionData to a CustomAction using WiX?

爱⌒轻易说出口 提交于 2019-11-26 01:58:46
问题 How are properties set on CustomActionData to be retrieved by a deferred custom action? 回答1: Deferred custom actions can not directly access installer properties (reference). In fact, only CustomActionData property session.CustomActionData and other methods and properties listed here are available on the session object. Therefore, for a deferred custom action to retrieve a property such as the INSTALLLOCATION , you have to use a type 51 custom action — i.e. a set-property custom action — to

Run exe after msi installation?

落爺英雄遲暮 提交于 2019-11-26 01:35:48
问题 Using Visual Studio 2008 to create an msi to deploy my program with a setup project. I need to know how to make the msi run the exe it just installed. A custom action? If so please explain where/how. Thanks. 回答1: This is a common question. I don't do it with just a custom action. The only way I know, is to modify the .msi after it has been generated. I run a Javascript script as a post-build event to do exactly that. It inserts a new dialog in the installer wizard, with a checkbox that says

Removing files when uninstalling WiX

℡╲_俬逩灬. 提交于 2019-11-26 01:07:16
问题 When uninstalling my application, I\'d like to configure the Wix setup to remove all the files that were added after the original installation . It seems like the uninstaller removes only the directories and files that were originally installed from the MSI file and it leaves everything else that was added later in the application folder. In another words, I\'d like to purge the directory when uninstalling. How do I do that? 回答1: Use RemoveFile element with On=" uninstall ". Here's an example

Why is it a good idea to limit the use of custom actions in my WiX / MSI setups?

◇◆丶佛笑我妖孽 提交于 2019-11-25 23:28:52
问题 Why is it a good idea to limit the use of custom actions in my WiX / MSI setups? Deployment is a crucial part of most development. Please give this content a chance. It is my firm belief that software quality can be dramatically improved by small changes in application design to make deployment more logical and more reliable - that is what this \"answer\" is all about - software development . This is a Q/A-style question split from an answer that became too long: How do I avoid common design

How to add a WiX custom action that happens only on uninstall (via MSI)?

吃可爱长大的小学妹 提交于 2019-11-25 22:47:59
问题 I would like to modify an MSI installer (created through WiX) to delete an entire directory on uninstall. I understand the RemoveFile and RemoveFolder options in WiX, but these are not robust enough to recursively delete an entire folder that has content created after the installation. I noticed the similar Stack Overflow question Removing files when uninstalling WiX , but I was wondering if this could be done more simply using a call to a batch script to delete the folder. This is my first