1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Error using the MSIEXEC /uninstall command

Discussion in 'Software Development' started by Jackle75, Nov 2, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. Jackle75

    Jackle75 Thread Starter

    Joined:
    Aug 20, 2004
    Messages:
    76
    I'm using the msiexec /x to uninstall an application on my pc. Once I enter the command windows ask if I want to uninstall the application. I choose yes then a error is generated stating "This application package could not be opened. Verify that the package exist and you can access it or contact the vendor to verify that this is a valid windows installer."

    The application is written in .net and uses an .msi file to install the application, I can unistall this using the add remove programs but I need to uninstall this application on multiple system and I am looking for the most time effective way of deploying new versions.

    Does anyone know how add and remove programs removes applications and is there a command line script that would accomplish this task?


    Thanks in advance

    T.
     
  2. Elvandil

    Elvandil

    Joined:
    Aug 1, 2003
    Messages:
    51,988
    Generally, the command line looks something like this:

    msiexec /X{E5343B27-55DF-40BD-9FCF-A643C1331E8A}

    and includes the GUID of the program. The string can be found in the Uninstall section of the registry or some uninstallers will also show the command line, such as Your Uninstaller 2006.
     
  3. Jackle75

    Jackle75 Thread Starter

    Joined:
    Aug 20, 2004
    Messages:
    76
    Thanks for the piece of info,,, it works well. I do have another question. How can I automate the uninstall without any user interaction? This is just my thinking, I know windows uses an answer file to automate it's installation. Is there a form of an answer file I can use to automate the uninstall? I would like to read more about this if it exists. Do you know where I could find this information? I've check msdn and technet but I don't think I am searching using the correct keywords.

    Forgive me for my ignorance but I'm faced the this task which is quite complicated. It consist of extracting files from an FTP secure server, uncompressing the files, uninstalling the application, running trans-sql statements on the correct database, installing the application, keeping a success and failure log, and coping the files to a deployment folder on several servers. I have most of this written but was stumped with the uninstall. I cant express my level of thanks but I can commit to making a donation to keep this site up and running.

    Again Thanks
     
  4. Elvandil

    Elvandil

    Joined:
    Aug 1, 2003
    Messages:
    51,988
    Not too sure where to send you on this one, but it seems you are looking for information on so-called "silent" installs and uninstalls. Those are the ones that can proceed without user interaction, so if you search for "Windows Installer silent", you may find something, and even command switches for them.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/647115

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice