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
(6) 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
RobertDickau
Flexera Alumni

If both the new installer and the old product being removed are using Windows Installer (Basic MSI), you might also look into creating a major upgrade in the new installer to remove the old one, specifying the old product's Product Code GUID as the product to be "upgraded".
0 Kudos
eladef
Level 7

GrantK
The link for the InstallScript example doesn’t work
Can you resend ?

Thanks
0 Kudos
gmpk82
Level 5

hi RobertDickau,

thanks for your valuable suggestion and as I understood, I need to go to media->prepare setup for media upgrade scenarios->upgrade windows installer setup -> here I have to create one entry and need to add old products GUID" , am i right? I try and update results

thanks
GMP
0 Kudos

Did this approach worked ?

I can see only upgrade code in the mentioned location. In this place, should i provide product code or upgrade code?

 

 

0 Kudos
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @Nithyapriya ,

 You need to provide upgrade code in this field, Please refer our KB article on how to create a Major upgrade which explains in details on upgrade code 

https://community.flexera.com/t5/InstallShield-Knowledge-Base/How-to-Configure-a-Major-Upgrade/ta-p/193052

0 Kudos