major-upgrade

Run Wix Custom action only during uninstall and not during Major upgrade

自作多情 提交于 2019-11-27 09:50:27
I am trying to delete a file using a custom action scheduled between InstallInitialise and InstallFinalize standard action. MajorUpgrade element is used to design upgrades. However, I want the custom action to run only during uninstall and not during the Major upgrade(this includes uninstall and install). I have used the following conditions to execute the CUstom action: (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") REMOVE AND NOT WIX_UPGRADE_DETECTED Is there a way to uniquely detect the Major Upgrade using properties in Wix? It's not obvious whether you want to do this in the older installed

Doing Major Upgrade in Wix creates 2 entries in Add/Remove Programs

笑着哭i 提交于 2019-11-27 02:26:49
I've followed the official Major Upgrade guide and I seem to be missing something. Here is my MCVE : <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Codepage="1252" Language="1033" Manufacturer="Bla Corporation" Name="Bla" UpgradeCode="PUT-GUID-HERE" Version="31.00.0000"> <Package Comments="Contact: Refael Sheinker, refael.sheinker@bla.com." Description="Bla" InstallerVersion="500" Compressed="yes" InstallScope="perMachine" Keywords="Installer,MSI,Database" Languages="1033" Manufacturer="Bla Corporation" Platform="x64" /> <Media Id=

Reboot on install, Don't reboot on uninstall

╄→尐↘猪︶ㄣ 提交于 2019-11-26 20:57:35
We have an installer which requires a reboot on install, but it is also rebooting on uninstall. Is there a way we can prevent the reboot when uninstalling? This is what we have at the moment: <InstallExecuteSequence> <ScheduleReboot After="InstallFinalize"/> </InstallExecuteSequence> Many thanks in advance! Restart Manager : The Restart Manager Feature of Windows (Installer) (middle page) is designed to help restart applications automatically during installation rather than requiring a reboot . This feature should always be used to try to eliminate reboot requirements. Only in very special

wix major upgrade not installing all files

心已入冬 提交于 2019-11-26 18:15:12
问题 I have a very simple WiX project (version 3.7) that installs somes files (a .NET program version 6.0.0.0). I'm ready to release a new version 6.0.1.0 using the MajorUpgrade functionality in WiX. I'm keeping the UpgradeCode the same in the Product element and I change the Version from 6.0.0.0 to 6.0.1.0 <Product Id="*" Name="MyApp" Version="6.0.1.0" Manufacturer="Me" UpgradeCode="$(var.TheUpgradeCodeGUID)"> On a machine with 6.0.0.0 installed, I run the new installer. The removal of the old

WIX (remove all previous versions)

与世无争的帅哥 提交于 2019-11-26 10:04:54
问题 Under \"Add or remove programs\" i can see five versions: - ApplicationName v3.0.4.0 - ApplicationName v3.0.4.18 - ApplicationName v3.0.5.27 - ApplicationName v3.0.5.28 - ApplicationName v3.0.5.29 when trying to install ApplicationName v3.0.5.30 all previous versions are NOT deleted. Versions that stays are: - ApplicationName v3.0.4.0 - ApplicationName v3.0.4.18 I already read all about on How to implement WiX installer upgrade? Code that i use is: <Product Id=\"*\" UpgradeCode=\"$(var

Doing Major Upgrade in Wix creates 2 entries in Add/Remove Programs

瘦欲@ 提交于 2019-11-26 08:37:50
问题 I\'ve followed the official Major Upgrade guide and I seem to be missing something. Here is my MCVE: <?xml version=\"1.0\" encoding=\"UTF-8\"?> <Wix xmlns=\"http://schemas.microsoft.com/wix/2006/wi\"> <Product Id=\"*\" Codepage=\"1252\" Language=\"1033\" Manufacturer=\"Bla Corporation\" Name=\"Bla\" UpgradeCode=\"PUT-GUID-HERE\" Version=\"31.00.0000\"> <Package Comments=\"Contact: Refael Sheinker, refael.sheinker@bla.com.\" Description=\"Bla\" InstallerVersion=\"500\" Compressed=\"yes\"

Reboot on install, Don&#39;t reboot on uninstall

家住魔仙堡 提交于 2019-11-26 07:47:41
问题 We have an installer which requires a reboot on install, but it is also rebooting on uninstall. Is there a way we can prevent the reboot when uninstalling? This is what we have at the moment: <InstallExecuteSequence> <ScheduleReboot After=\"InstallFinalize\"/> </InstallExecuteSequence> Many thanks in advance! 回答1: Restart Manager : The Restart Manager Feature of Windows (Installer) (middle page) is designed to help restart applications automatically during installation rather than requiring a