Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using msiexec.exe to update an app

Status
Not open for further replies.

RKHohmII

Programmer
Mar 18, 2003
4
US
This isn't a VB .NET question, but I couldn't find a better forum in which to post.

I am building a VB .NET application that I want users to be able to update via the web. My current approach downloads the newer version's Microsoft Installer (.msi) package file, and then launches msiexec.exe. This immediately complains that another version is already installed, and that I must uninstall it first using "Add/Remove Programs." I tried adding the "/f" option to force a repair of the installation, but that gives me "This action is only valid for products that are currently installed."

How can I workaround this problem? Is there a better way to do regular updates to an application?

Thank you for any help.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top