[wix-users] Custom Action disappeared from MSI
phill.hogland at rimage.com
Tue Sep 8 14:19:55 PDT 2015
When using a Wix Fragment, if the code snippet was in a fragment with something else which has a reference in the Product element, such as a CustomActionRef or a PropertyRef, then that whole Fragment is imported into the package, and since there are not any XxxSequenceRef elements defined in Wix, it is common to use another type of reference to hook the Fragment to the Product. So it is just a guess without seeing the code, but did you move the code snippet to a Fragment which does not have anything to reference it back to the Product?
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of kurt.jensen at us.ophiropt.com
Sent: Tuesday, September 08, 2015 4:00 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Custom Action disappeared from MSI
We removed some code from a WXS. Now the custom action referenced in the WXS is not included in the MSI (as verified in Orca) and thus not executed.
If we simply move this code
<!-- Run CAInstall after InstallFiles only if the product was not installed (i.e. do not run on uninstall) -->
<Custom Action="CAInstall" After="InstallFiles">NOT Installed</Custom>
<!-- Run CAUninstall before RemoveFiles only if the product was installed (i.e. only run on uninstall) -->
<Custom Action="CAUninstall" Before="RemoveFiles">Installed</Custom>
to another file in the project then the custom action is included in the MSI and the custom action is executed.
How can moving these few lines have such an effect?
Senior Software Engineer
Ph: direct: 435-755-5429
Ph: main: 435-753-3729
Ph: cell: 435-764-2122
kurt.jensen at newport.com
The True Measurement of Laser Performance TM
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users