PDA

View Full Version : Uninstall to uninstall the previous versions available??


kk250040
09-29-2009, 08:49 AM
Hi all,

I have a big installer created by SF7. It installs few MSIs and few exes and does few more things like work with the registry and etc...

I keep updating it with the new versions of the MSIs when ever required. On Uninstall scripts, now I had it support the uninstall of all the MSI versions it installs.

Now for some reason, if my setup package fails to install the A.1.2.msi, or the user skips the install of that particular MSI, then my unistall scripts fail to uninstall the A.1.1.msi already existing.

Now I need the same installer's Uninstallation to support something like uninstall the MSIs regardless of what version is installed on the machine.
I will need the scripts identify any version already existing, and unistall it...:huh

Please provide me any idea of how to do this...

Thanking you in advance...

jassing
09-29-2009, 12:17 PM
scan the registry's "Uninstall" section.
btw: you're going to get help or SF8 here in this forum, you should post to the older SF7 forum....

kk250040
09-30-2009, 05:09 AM
Hi Jassing,

thanks for the suggestion. But what if I did not have a registry setting to look at the version already existing on the machine. I can modify the setup to now update the registry for the current version releases. But my setup will not be able to identify a version of a msi installed before this. Is there a way where I can get a version detail of already existing builds where if I did not update the registry settings??

I mean somewhere where version details are saved by default?? anything as such if I did not do it thru the sf7 or in my MSIs? I build MSI using VisualStudio, or my client builds MSIs using VisualStudio??

I got your suggestion, to update the registry on install or uninstall of the current versions and use them, but is there a way to find the versions of msi from "ControlPanel \ Add and remove programs" during the uninstall (scripts) of the setup??:huh That will help me uninstall the already installed versions from the setup itself...

Thanking You!!