create an .msi file that uninstalls somethng

Member_2_4694817
Member_2_4694817 used Ask the Experts™
on
I am trying to uninstall several programs aon a larger network.
To do so, I want to deploy an .msi by software distribution that upon installing removes the other program(s).
I am playing with AdvancedInstaller and InstEd and LocalUpdatePublisher.

My idea was (using InstEd ona "dummy" msi) to

1) add the programs to remove in the MSI "Updrade" table where
UpgradeCode = the GUID from registry HKLM\SOFTWARE\Microsoft\Windows\Currentversion\Uninstall\{GUID}
VersionMin = 0.0.1 just to have an entry there
VersionMax = <null>
Language = <null>
Attributes = 0x00000100 (= VersionMinInclusive)
Remove = <null>
ActionProperty = a different var name per program to uninstall, e.g. MYPROP1, MYPROP2, ...

2) In "Property", add MYPROP1;MYPROP"; ... to SecureCustomProperties

3) In "InstalLExecuteSequence" make the action RemoveExistingProducts unconditional (i.e. set Condition to <null>) just to be sure.

However, what happens is that my MSI gets installed successfully without removing any of the programs targeted for removal. I had at least expected the installation to fail if one of the uninstalls was tried and failed so I guess that the uninstalls are not even attempted.
There's probably just something trivial missing, can anybody help?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The Guid under HKLM\SOFTWARE\Microsoft\Windows\Currentversion\Uninstall\ is not upgrade code, it's product code.

Product codes are under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes], in special encoded form. For example, {20B227CF-0722-4909-8A89-2DE9A6BE369A} will be there as HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\FC722B0222709094A898D29E6AEB63A9 - the characters from the groups separated by hyphens go in reverse order, such as 20B227CF -> FC722B02 and so on.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial