Hello,
I have 7 custom actions, 5 of which run during Install, and 2 of which run
during uninstall, none of which should run during an upgrade.
I am adding the upgrade feature to the product and have run into a problem.
The 5 that run during install (after InstallFinalize) work fine (i.e. don't
run) during the upgrade, but the 2 which run during uninstall are also running
during the upgrade (which I don't want -- I only want them to run during an
uninstall).
For reference, the following is one that works correctly (i.e. the NOT
OLDERVERSIONBEINGUPGRADED causes this not to run):
<Custom Action='SetXCopy' After='InstallFinalize'>(NOT
OLDERVERSIONBEINGUPGRADED) AND NOT Installed</Custom>
I have tried everything I can find on the web, the following tries all fail:
1) <Custom Action='RunRemoveBat' Before='InstallInitialize'>(NOT
OLDERVERSIONBEINGUPGRADED) AND Installed</Custom>
2) <Custom Action='RunRemoveBat' Before='InstallInitialize'>(NOT
UPGRADINGPRODUCTCODE) AND Installed</Custom>
3) <Custom Action='RunRemoveBat' Before='InstallInitialize'>(NOT
UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
4) <Custom Action='RunRemoveBat' Before='InstallInitialize'>(NOT
UPGRADINGPRODUCTCODE) AND (REMOVE ~="ALL")</Custom>
5) <Custom Action='RunRemoveBat' Before='InstallInitialize'>REMOVE
~="ALL"</Custom>
6) <Custom Action='RunRemoveBat'
Before='InstallInitialize'>(REMOVE="ALL")</Custom>
.....
The following is the pertinent info about the product and install
<Product Id='*' UpgradeCode='6BC1F640-7024-4f18-A53A-BEA60722590B' ....
<Upgrade Id="{6BC1F640-7024-4f18-A53A-BEA60722590B}">
<UpgradeVersion Property="OLDERVERSIONBEINGUPGRADED"
Minimum="1.0.0.0"
IncludeMinimum="yes"
Maximum="!(bind.FileVersion.SecureBridgeEXE)"
IncludeMaximum="no" />
</Upgrade>
<InstallExecuteSequence>
...
<Custom Action='RunRemoveBat' Before='InstallInitialize'>(NOT
OLDERVERSIONBEINGUPGRADED) AND Installed</Custom>
<RemoveExistingProducts After="InstallInitialize"/>
<Custom Action='SetXCopy' After='InstallFinalize'>(NOT
OLDERVERSIONBEINGUPGRADED) AND NOT Installed</Custom>
...
</InstallExecuteSequence>
_________________
The only thing I can think of that could possibly be an issue is that I am not
incrementing the major or minor version, only the build version (but from what
I have been able to read, it shouldn't really be an issue).
_________________
I am really confused as to why the two custom actions seem to work differently.
It would seem to imply that there is some kind of sequence issue (I have tried
them at InstallFinalize, InstallInitialize and before RemoveFiles with no
luck). These actions remove services, so it is important that they be ran only
during uninstall.
Thanks in advance for any help.
Carl
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users