Avatar of Member_2_4694817
Member_2_4694817
 asked on

create an .msi file that uninstalls somethng

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?
InstallationWindows Networking

Avatar of undefined
Last Comment
Vadim Rapp

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Vadim Rapp

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck