cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gmpk82
Level 5

how to uninstall one product(I know it's GUID) in silent uninstall mode while instal

hi All,

I need to uninstall one product(I know it's GUID) in silent uninstall mode while installing my product. I want to use silent uninstall command like msiexec /u GUID to uninstall another product while install my product, is it possible? can you please help me, can we launch another msiexec while installing one product?.

to explain my scenario more in detail.


we have released our product some time back and installer was designed to be installscript wrapper should install 2 setup.exe's , when we click on productSetup.exe, installscript wrapper launches first setupFile( lets say A), once it gets install completed 2nd SetupFile(lets say B ) will be launched. after completion of productSetup.exe installation, we can see 2 separate entries for 2 setupsFiles in add/remove programs and 2 separate registry entries . it is perfect

in our new release ,we are planning to add all 2nd setupFile(B)'s files to 1st setupFile(A) and one new featureNew is created in SetupFile(A) for all SetupFile(B)'s files.,

there is no more wrapper script is being used since we added all setupFile(B ) files to setupfile(A).

now we have only one installer that is Setupfile(A)

on upgrades , from previous release to new release(Setupfile(A)), whenever user selects this new feature FeatureNew , my setupFile(A) installer should uninstall SetupFile(B ) in silent mode. this is what requirement exactly.

my story is little big 🙂 , can some one please suggest me how to do it.


thanks
GMP
Labels (1)
0 Kudos
(2) Replies
GrantK
Level 7

how to uninstall one product(I know it's GUID) in silent uninstall mode while instal
You should be able to perform an uninstall with a new exe custom action or installscript custom action.

For installscript, see the following link:
http://helpnet.flexerasoftware.com/i...it_example.htm


For exe custom action:
http://flexerasoftware.force.com/ka3G0000000PrniIAC
0 Kudos
shodhan
Level 4

You can probably add a major Upgrade item in your new installer and give Upgrade Code of the old installers, thereby, your new installer will uninstall both the old installers while installation.
Or else, as a last resort you can also run a simple batch script (that would uninstall the previous installer) before starting the installation of new installer.
0 Kudos