Setup and Deployment project autostart

  • Thread starter Thread starter Sonu
  • Start date Start date
S

Sonu

Hi All -
I'm trying to create a setup project using the Setup deployment project
option from Visual Studio 05.
Everything works great except I cannot find how start the application once
user click on finish installing the application.

Do you need to write a script for that or is it built in somewhere?

Any help would be great.

Thanks
 
Your going to need to use a Custom Action. They are pretty simple and
straight forward once you do it once or twice.
Check out this tutorial on custom actions and im sure when your done reading
/ trying it out you will be able to do what you want.

http://msdn.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx

- Adam

P.S

You are probably going to have to add a checkbox dialog to the installer to
promt the user to start the app after installation or not.
You will have to use Context Paramaters to check if the user has check the
box or not.

VB.NET
Context.Parameters([CheckboxName])

C#
Context.Parameters[Checkbox Name];
 
Thank you -- that works great.
How about checking the application updates? I know one can do using one
click but how do I do that using Setup deployment project?

Thanks



Your going to need to use a Custom Action. They are pretty simple and
straight forward once you do it once or twice.
Check out this tutorial on custom actions and im sure when your done reading
/ trying it out you will be able to do what you want.

http://msdn.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx

- Adam

P.S

You are probably going to have to add a checkbox dialog to the installer to
promt the user to start the app after installation or not.
You will have to use Context Paramaters to check if the user has check the
box or not.

VB.NET
Context.Parameters([CheckboxName])

C#
Context.Parameters[Checkbox Name];


Sonu said:
Hi All -
I'm trying to create a setup project using the Setup deployment project
option from Visual Studio 05.
Everything works great except I cannot find how start the application once
user click on finish installing the application.

Do you need to write a script for that or is it built in somewhere?

Any help would be great.

Thanks
 
Back
Top