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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You will need to provide more information for your question to be answered.
Answered 06/13/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
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..........
Answered 06/13/2011 by: nagaraju118
Orange Senior Belt

Please log in to comment
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.
Answered 06/13/2011 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
Thank you .................
Answered 06/13/2011 by: nagaraju118
Orange Senior Belt

Please log in to comment
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
Answered 06/13/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
0
Jmaclaurin : Thank you very much......................
Answered 06/13/2011 by: nagaraju118
Orange Senior Belt

Please log in to comment
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
Answered 06/22/2011 by: kanthsri87
Senior Yellow Belt

Please log in to comment
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!
Answered 06/23/2011 by: VBScab
Red Belt

Please log in to comment
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
Answered 06/23/2011 by: mayur_mak
Senior Purple Belt

Please log in to comment
0
Hey Vbscab,

Jus set the custom action depends upon the Property value to delete the pacakge via product code!
Answered 06/23/2011 by: kanthsri87
Senior Yellow Belt

Please log in to comment
0
LOL I've been doing this stuff for more years than I care to remember, I *really* don't need packaging lessons, thanks.
Answered 06/23/2011 by: VBScab
Red Belt

Please log in to comment
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...........
Answered 06/23/2011 by: nagaraju118
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity