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
Roberto Mason

Roberto Mason

NA 5 11.7k 17y
I feel foolish, Spent all day searching for the answer. 5 minutes after this post, I resume, and found the answer. Here is the simple code, one line bindingNavigatorMoveLastItem.PerformClick()