Custom Actions VS2005 Windows Installer
-
I am trying to get the windows installer to launch a .exe after install with now luck. Has anyone successfully done this? Yes, I have found instructions online,but I still get nothing to happen. Here is what i do. I create a test setup project and go to Custom actions --> Right click on INSTALL and add custom action. I then select application folder and then add file and select a exe file. Everything looks ok, but when I install nothing happens and it does not run anything. Questions: Can the exe I want to launch be anywhere on PC or does it have to be in project folders? Am I doing everything correct? (Probably not or it would work.) Thank you
I can't think of anything cool and nerdy to say.
-
I am trying to get the windows installer to launch a .exe after install with now luck. Has anyone successfully done this? Yes, I have found instructions online,but I still get nothing to happen. Here is what i do. I create a test setup project and go to Custom actions --> Right click on INSTALL and add custom action. I then select application folder and then add file and select a exe file. Everything looks ok, but when I install nothing happens and it does not run anything. Questions: Can the exe I want to launch be anywhere on PC or does it have to be in project folders? Am I doing everything correct? (Probably not or it would work.) Thank you
I can't think of anything cool and nerdy to say.
You'll need an installer class: http://msdn.microsoft.com/en-us/library/system.configuration.install.installer.aspx[^] And to call the EXE file: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx[^]