+ Reply to Thread
Results 1 to 3 of 3

Thread: Uninstalling application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question Uninstalling application

    Good morning,

    I have run into a challenge.

    I am attempting to test for the presence of and uninstall a program in my setup.

    I can successfully detect the previous version via GUID and if it exists, I then can successfully get the UninstallString from the registry into a variable and can successfully Run Command Line specifying that variable.

    My problem is that the company that installed the application with an UninstallString = MsiExec.exe /I{GUID}. This launches a "Repair/Remove" instead of a "Remove". I can successfully run MsiExec.exe /X{GUID} manually form the command line. However, if I try to Run Command Line specifying MsiExec.exe /X{GUID}, the installation hangs and I have to cancel it from Task Manager.

    What am I doing wrong. Seems weird that Run Command Line can successfully run an MsiExec command contained in a variable, but can't if the MsiExed command is entered directly in the Run Command.

    Thank you for your help.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Uninstalling application

    Hello,

    We are using the following in all Consulting projects that move from .msi to .exe to uninstall the MSI product:

    Run Command Line msiexec.exe /qn /x {GUID} [Wait]

    Does this help?

    BTW, this is an interesting success story where MSI uninstall is launched from the installer:

    http://www.lindersoft.com/forums/showthread.php?t=19918

    Works like a charm

    Friedrich

  3. #3

    Default Re: Uninstalling application

    Got it ... Thank you.

    The /qn was the trick. Must not work with the full msi user interface.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •