Hello all, I'm looking for a way to prevent downgrading certain components installed in the GAC.
What I'm currently doing is launching msiexec with UPGRADE=all UPGRADEMODE=vomus. This does upgrade deployed files and GAC:ed assemblies quite nicely. The problem is that it also downgrades GAC:ed assemblies (but not deployed files) if someone happens to use an older version of the msi. What I have in place, is a custom action, that in my mind would detect a newer version and display a nice little error box. <Upgrade Id="$(var.UpgradeCode)"> <UpgradeVersion Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" Language="1033" Property="NEWPRODUCTFOUND" /> </Upgrade> <CustomAction Id="PreventDowngrading" Error="!(loc.NewerVersionInstalled)" /> <InstallExecuteSequence> <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> </InstallExecuteSequence> However it's not working quite the way I hoped. Am I doing something wrong or are assemblies in GAC supposed to be downgraded while files in program files are not? Can you spot any obvious errors in the wix excerpts above? Is this the way downgrade preventions is supposed to be done? Sorry for the newbie questions. Any clues or help are appreciated. I have tried to read the manuals and used google but my powers seem futile today. Regards and thanks, Cristian ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users