Uninstall Prior Version - The Right Way

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • greenace
    Forum Member
    • May 2003
    • 20

    Uninstall Prior Version - The Right Way

    What is the correct method to uninstall prior versions of an application during the installation of a new version.

    I would assume a check needs to be done to see what is installed. Then the uninstall file from the prior version must be run. (What is this, and how do we use it.) After uninstall is done, installation can continue.

    Appreciate any help.
  • Darryl
    Indigo Rose Staff Member
    • Jul 2001
    • 1908

    #2
    Re: Uninstall Prior Version - The Right Way

    The uninstall for Setup Factory is composed of calling the uninstall program and then passing it the uninstall configuration INI file. The current uninstall program is called "iun6002.exe" (this may depend upon what build it was created with) and is located in %WinDir%\iun6002.exe. The configuration INI file is by default called "irunin.ini" and will be located where you specified in the Uninstall.

    So yes, you would perform whatever checks you need to, probably gathering information about where that application is and where the uninstall INI file is located. You could then use an "Execute File" action to launch the uninstall program, such as:

    File to execute (path and filename):
    %WinDir%\iun6002.exe

    Command line arguments:
    "%ProgramFiles%\My Application\irunin.ini"

    Also check the "Wait for program to finish running before continuing checkbox."

    Another method for getting the uninstall path is looking in the Registry. You can find the Uninstall information in the following location in the Registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall

    The subkey will be depend upon the information you entered as the unique registry key. That will give you a string composed of the path to the uninstall program along with the path to the INI file, all in one string. You would then need to parse the two parts of the string to use them in your Execute File action.

    Hope that helps.

    Comment

    Working...
    X