Malfist
Malfist

Reputation: 31795

Running an installer or checking to see if a program is installed

I have a program that I want to use as an autorun. I want it to be able to do three things. It needs to check to see if a specific program is installed, if it is not, present the user with the option to install it. Second, if the program is installed, present the user with the option of running it and uninstalling it, third, present the user the option to view a readme.

How can I get a program to check and see if another program is already installed? How can I launch an installer/uninstaller from another program?

Thanks.

P.S. I can modify the installer.

Upvotes: 0

Views: 1447

Answers (2)

saschabeaumont
saschabeaumont

Reputation: 22406

Assuming its your program and you're building the install, I'd just have your installer write to a registry key and then check that key in your autorun program.

To launch the installer from your autorun program just run the setup.exe, or use MSIEXEC for an MSI.

Upvotes: 1

On Freund
On Freund

Reputation: 4436

Assuming your installation is Windows Installer based, everything you need is here.

Upvotes: 0

Related Questions