4
Answers

Windows Installer Won't Run Custom Action

Brandon Lewis

Brandon Lewis

16y
12.7k
1
I have a windows installer setup project built, and in the Custom Actions/Uninstall folder I have a console application exe that needs to be run when the main application is uninstalled. However, for some reason, the executable is not running.

The only arguments I have specified is [ProductName] to be passed to this executable upon its launch. The thing is, it was working just fine a few days ago and now it just suddenly stopped working. Any ideas or tricks that are required to get this thing to work? Ive tried making the exe permanent in the install folder, and Ive event deleted and reconstructed the entire setup project but to no avail. Any help is much appreciated!
Answers (4)
0
Sheetal Bhojani

Sheetal Bhojani

NA 3 0 16y
Visit the URL below you will get more information about setup project

http://www.codeproject.com/KB/install/SetupAndDeployment.aspx?display=Print

Regards
Ctal

0
Bechir Bejaoui

Bechir Bejaoui

NA 20.1k 5.3m 16y
have you adorned your installer class with
[RunInstaller(true)]
If you don't the installer won't work
0
Brandon Lewis

Brandon Lewis

NA 603 116k 16y
I tried that and it didn't seem to work. Were upgrading to VS 2008 Professional next week so hopefully that will fix the problem. Its not a big issue, more or less just a hassle for the customer (which I guess could be classified as a big issue) because they have to go in and remove shortcuts manually.

Do you know if the VS 2008 Professional version of Windows Installer has the ability to create shortcuts during install? That would alleviate this whole problem if I could do that without having to write a custom installer, ugh!
0
Amit Dhania

Amit Dhania

NA 659 164.6k 16y
You have to check propery 'InstallerClass' of added custom exe in Installer. Making this propery to 'FALSE', added custom exe will run.