[2005] Launching my app when installer is finished
I have VS 2005 Professional, and I would like my application to launch when it finishes installing, I am using the setup wizard project to create my installer, and I have tried adding custom actions to make it launch, but it does not work
Can anyone tell me how I can do this?
Re: [2005] Launching my app when installer is finished
It would be a custom action. Can you show your steps taken in the custom action and what if any error messages?
Re: [2005] Launching my app when installer is finished
Yes, I went to the solution browser, I right clicked my setup thing, and I went to View - Custom Actions, and I right clicked the folder 'install' and clicked Custom Action, and I made it point to 'Primary output from MyApp' (which is the .exe file)
Then I installed, and it didnt launch...
Any idea's?
Re: [2005] Launching my app when installer is finished
Custom actions are supossed to be executed after the install process so the exe should have been there but I guess if it wasnt you would have gotten an error about not finding the file at that location. But I think you place it in the Commit folder and not the Install forder.
Re: [2005] Launching my app when installer is finished
Quote:
Originally Posted by Icyculyr
I have VS 2005 Professional, and I would like my application to launch when it finishes installing, I am using the setup wizard project to create my installer, and I have tried adding custom actions to make it launch, but it does not work
Can anyone tell me how I can do this?
Hi,
Here's a walkthrough about custom actions:
http://msdn2.microsoft.com/en-us/lib...2d(VS.80).aspx
Hope it helps,
sparrow1
Re: [2005] Launching my app when installer is finished
Good find there sparrow1. Dont want to test it but I followed those steps and it looks detailed enough.
Re: [2005] Launching my app when installer is finished
Quote:
Originally Posted by RobDog888
Good find there sparrow1. Dont want to test it but I followed those steps and it looks detailed enough.
Hi Rob,
Did a little search by uncle google.:bigyello:
Wkr,
sparrow1
Re: [2005] Launching my app when installer is finished
Thanks for the link, I can't get onto the link though o_o, I will try it again later, but do you think I have to write a .dll? or if you select a custom action and go to properties, it has 'arguments' and 'conditions' etc... do you think I need to put something in there so it know's to open it :D?
Re: [2005] Launching my app when installer is finished
When you get a chance to read the link your questions will be answered more completely as you need the custom class to handle the Commit event which fires off the custom action and reads the code to be executed.
Re: [2005] Launching my app when installer is finished
InnoSetup has the feature of Opening your exe after installation. Try that one. It is very usefull one