troubleshooting Question

create an .msi file that uninstalls somethng

Avatar of Member_2_4694817
Member_2_4694817 asked on
Windows NetworkingInstallation
1 Comment1 Solution542 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
Vadim Rapp

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros