cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hsuyun
Level 2

How to uninstall another MSI in MSI?

There are 4 EXE files in my product.(A.exe B.exe C.exe D.exe)
I create one MSI for each EXE file.(A.msi B.msi C.msi D.msi)
There is another EXE file in A.msi.
It is run by A.exe to download B.msi C.msi D.msi, and install them.
The property [ARPSYSTEMCOMPONENT] of B.msi, C.msi and D.msi is set to 1.
So it looks like one product.
The problem is how to uninstall B.msi, C.msi and D.msi while user uninstall A.msi in the [Add and Remove....]?
I tried to write a custom action in A.msi.(It is an DLL file)
There is a Function in the DLL to call "msiexec /uninstall {...} /qn".
But it always faild.

The question is
Q1:Which sequence should my custom action be put after it?
Q2:Is there any problem in Windows 7(UAC)?
Labels (1)
0 Kudos
(1) Reply
Not applicable

You can try the feature Chained .msi Packages in the Releases View.
0 Kudos