PDA

View Full Version : Failure to run custom action exe on Vista



MatthewF
04-20-2007, 03:31 AM
I run a bog-standard exe as a custom action on Vista and it fails. The exe runs fine on its own, and the rest of the installation works OK.

Will this problem be fixed?

Thanks

MichaelU
04-20-2007, 10:25 AM
Does running this exe on its own on Vista generally present a UAC prompt? If so, you're hitting a limitation of Windows Installer with regards to EXE custom actions. Your best bet is to remove the need for administrative privileges, possibly just by putting the appropriate manifest in your EXE.

MatthewF
04-24-2007, 08:12 AM
No, it just runs with no interaction. What do you mean by manifest?

MichaelU
04-24-2007, 10:23 AM
It's similar to the "XP Control Style" manifest, but includes a section telling Vista what privileges the executable needs. Searching on MSDN or the UAC blog should get you to more information about this.

However since it sounds like UAC and privilege levels are not the culprit, I would strongly suggest taking a verbose log of your failed install, so you can examine it for clues related to the custom action failure.