Featured post
windows installer - How to execute Custom Action before RemoveExistingProducts with After="InstallValidate" in WiX -
i have this:
<installexecutesequence>   <removeexistingproducts after="installvalidate"/> </installexecutesequence> since 1 of uninstallation fails need execute custom action solve problem before removeexistingproducts. in lines of:
<customaction id="fixstuff" .. />  <installexecutesequence>   <custom action="fixstuff" before="removeexistingproducts" />   <removeexistingproducts after="installvalidate"/> </installexecutesequence> this of course doesn't work since custom action cannot before installinitialize. i'd remove existing products between installvalidate , installinitialize, i'd execute fixstuff before removing existing products.
is possible that?
unfortunately cannot run elevated custom action before removeexistingproducts current configuration.
some possible approaches be:
- move removeexistingproducts right before installfinalize. solves custom action problem, other problems may occur since approach has many restrictions (the components need maintain names , guids between versions, custom actions should aware upgrade performed @ installation end etc.). 
- create exe bootstrapper fixes old installer before launching new msi. bootrapper can require administrator privileges through manifest: 
http://msdn.microsoft.com/en-us/library/bb756929.aspx
- repair broken msi using method: - fix problem in old msi
- create bat or exe bootstrapper recaches through command:
 - msiexec /fv <path_to_msi> - distribute msi update before new package
 
when new package runs removeexistingproducts, old cached msi should fixed , should uninstall correctly.
- Get link
- X
- Other Apps
Comments
Post a Comment