Hi, I am trying to implement upgrade in the installer. The application for which the installer is built is a web based application. This requires creating application pools, virtual directories in the IIS. Following is the code that I added for upgrades
<Upgrade Id="Upgrade code that matched previous msi"> <UpgradeVersion Property="UPGRADE_FROM_CURRENT" IncludeMinimum="yes" IncludeMaximum="no" Minimum="0.0.0.0" Maximum="6.6.0.0" /> <UpgradeVersion Property="NEW_APP_FOUND" IncludeMinimum="yes" Minimum="6.6.0.0" OnlyDetect="yes" /> </Upgrade> So, UPGRADE_FROM_CURRENT should contain product code of the previous application if upgrade is detected. In my case the upgrade is getting detected but there are some custom actions that I want to suppress during upgrade. For example, in case of an upgrade I don't want to create application pools and virtual directories. I just want to replace the old files with new files. I am doing this using following code. For install custom action <Custom Action="CreateApplicationPool" Sequence="some no"> Not Installed AND NOT UPGRADE_FROM_CURRENT </Custom> For uninstall custom action <Custom Action="DeleteApplicationPool" Sequence="some no"> Installed AND NOT UPGRADE_FROM_CURRENT </Custom> so, these custom actions will get executed only when it is normal installation and not upgrade. My problem is that the application pools are getting deleted during an upgrade even when I am not executing the DeleteApplicationPool custom action. I have added some message boxes in this custom action for tracking purpose and these message boxes are not coming which means that the custom action is not getting executed. still the application pools are deleted. Anyone having any idea? Thanks in Advance, Sneha -- View this message in context: http://www.nabble.com/Upgrade-Issue-tp15711898p15711898.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users