/build/static/layout/Breadcrumb_cap_w.png

Uninstalling the old one

Hi everyone
Can anyone help with uninstalling the old version and installing the new version .The problem is i have two check for two application ,one is the previous version of my current applcation that I am installing and other application is a differnt one . So now I have to check whether both application are installed on the machine and if so the new msi had to uninstall both the old application and install the new application.

Thanks

0 Comments   [ + ] Show comments

Answers (12)

Posted by: jmaclaurin 12 years ago
Third Degree Blue Belt
0
You will need to provide more information for your question to be answered.
Posted by: nagaraju118 12 years ago
Orange Senior Belt
0
here is the process
I have an application which i need to install it .Its an msi.
1) Before installing it has to check if any previous version of it is installed on the machine if so it has uninstall it and install the new version.
2)At the same time it has to check other application(a different application) is installed on the machine and if so it has to uninstall it that one also..........
Posted by: MSIPackager 12 years ago
3rd Degree Black Belt
0
You need to learn how to use the appsearch and associated tables... You can set properties based on the results then use those property values in the launchcondition tables or for custom actions etc.

There should be plenty of info on the boards here, here's the msdn info:
http://msdn.microsoft.com/en-us/library/aa367579(v=vs.85).aspx

Cheers,
Rob.
Posted by: nagaraju118 12 years ago
Orange Senior Belt
0
Thank you .................
Posted by: jmaclaurin 12 years ago
Third Degree Blue Belt
0
Or use a batch file to do the logic.

REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | FIND /i "{GUID of app to uninstall}" >NUL

%SYSTEMROOT%\System32\msiexec.exe /x {GUID of app to uninstall} /qn
Posted by: nagaraju118 12 years ago
Orange Senior Belt
0
Jmaclaurin : Thank you very much......................
Posted by: kanthsri87 12 years ago
Senior Yellow Belt
0
you can use the upgrade table to delete the older version of the application.

In order to delete the existing application use the app search table and set the property to unisntall it.

Hope this clears
Posted by: anonymous_9363 12 years ago
Red Belt
0
In order to delete the existing application use the app search table and set the property to unisntall it.

Hope this clears
Actually, no, it doesn't! How does setting a property uninstall an application? Don't confuse the poor chap!
Posted by: mayur_mak 12 years ago
Senior Purple Belt
0
Hi nagaraju,

you can uninstall the previous application via upgrade table and make sure to sequence the standard action RemoveExsistingProducts properly as per requirment.
for the other application(different application) you can do system search such as appsearc and associated tables such as Drlocator,Reglocator,Complocator and use the searchd values in Custom actions or launch condition table as per requirement.

By the way may i known why u are required to remove the other application which is a different application? via your Application.its a dependecy somethin like??????.....

regards
Mayur
Posted by: kanthsri87 12 years ago
Senior Yellow Belt
0
Hey Vbscab,

Jus set the custom action depends upon the Property value to delete the pacakge via product code!
Posted by: anonymous_9363 12 years ago
Red Belt
0
LOL I've been doing this stuff for more years than I care to remember, I *really* don't need packaging lessons, thanks.
Posted by: nagaraju118 12 years ago
Orange Senior Belt
0
mayur_mak : Thanks mayur
Actually its a webex application .....(It has meetingcenter ,outlook,oneclick ,record and player different applications) ..........................the older version has support manager in addition to this .Now they dont want support manager in the new application .So they just want meetingcenter ,outlook,oneclick record and player and by using this we are trying to uninstall the older version of all the four and also support manager. so I was looking to add the uninstallation in one of these mst.Its done now I used batch file which Jmaclaurin explained me ......and its working..

Thanks alot.......
Thanks to all of you for your replies...........
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ