wix - Major upgrade on a multi-instance installer -
i'm reluctant ask question @ time, repeat wix - doing major upgrade on multi instance install... yet hope question answered :)
i have installer multiple instances:
<product id="{guid}" upgradecode="{guid}" version="!(wix.version)" name="myproduct" manufacturer="mycompany"> <majorupgrade schedule="afterinstallexecute" downgradeerrormessage="a newer version of [productname] installed." /> <property id="instanceid" value="default" /> <instancetransforms property="instanceid"> <instance id="i01" productname="myproduct_i01" productcode="{guid}" upgradecode="{guid}" /> <instance id="i02" productname="myproduct_i02" productcode="{guid}" upgradecode="{guid}" /> . . . <instance id="i49" productname="myproduct_i49" productcode="{guid}" upgradecode="{guid}" /> <instance id="i50" productname="myproduct_i50" productcode="{guid}" upgradecode="{guid}" /> </instancetransforms> </product>
for sake of clarity, every new version uses:
- a different version number (different in @ least 1 of first 3 numbers)
- a different product code each instance
- the same upgrade code each instance
- i install each product domain admin privileges
before changing product code every new release used same 1 each version, , though bit clumsy (retaining deleted components forever), re-install process worked out.
now, however, subsequent re-installations using different versions make msiexec.exe see components missing, failing installation. looked if time transition major upgrades!
upgrading naïve way
msiexec.exe /i "installer.msi" /n {old_version_productcode}
prompted false message:
the system administrator has set policies prevent installation.
upgrade via re-install
msiexec.exe /i "installer.msi" /n {old_version_productcode} reinstall=all reinstallmode=vamus
(also tried reinstallmode=amus
since new product new install, nope)
logged each component absent , didn't touch file (the upgrade reported successful):
installed: absent; request: null; action: null
i'm @ loss -- missing?
i found awkward solution, it's fit awkward problem:
<setproperty id="reinstall" value="" before="appsearch" /> <setproperty id="reinstallmode" value="" before="appsearch" />
by unsetting reinstall
properties somehow skip on major upgrade permission hurdle , avert real re-installation, leaving me new version.
i happily accept more orthodox solution, 1 doesn't involve fiddling windows installer properties...
Comments
Post a Comment