Groups | Blog | Home
all groups > visual studio .net setup > june 2006 >

visual studio .net setup : VS 2003 - Auto launch app on installation complete


Phil Wilson
6/13/2006 9:36:21 AM
There's nothing in Visual Studio setup projects to let you do exactly this.
You can add a check box dialog in the standard UI sequence asking if the
user wants to run it at the end. You can use a custom action to launch it,
but you'll need to make it asynchronous because the setup will stop until
the exe is finished.
Or you can use MsiLaunch.
http://www.cornerhouse.ca/en/msilaunch.html

--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

Marc Castrechini
6/13/2006 11:51:10 AM
This is definately a noob question but I can't find this anywhere:

I simply want to get the primary output executable to automatically launch
once installation is complete. Either prompting the user with an option to
do so (checkbox?) or automatically doing it with no prompt.

I am using VS 2003 and the 1.1 framework.

TIA,
- Marc Castrechini


v-garych NO[at]SPAM online.microsoft.com (
6/14/2006 12:00:00 AM
Hi Marc,

Just as MVP Phil suggested, the VS2003 setup project could not help you to
perform this task. You may need to use the ORCA utility to add an
asynchronous custom action to invoke an application.

I suggest you can refer to the following newsgroup threads, which have
illustrated a solution on such issue:

http://groups.google.com/group/microsoft.public.platformsdk.msi/browse_frm/t
hread/2e8b306fe2e9a4cd/63178b4e28e87a50?lnk=st&q=%22Gary+Chang%22+run+an+Asy
nc+CA&rnum=1&hl=en#63178b4e28e87a50

http://groups.google.com/group/microsoft.public.platformsdk.msi/browse_frm/t
hread/fc92c830328350af/682ce3cfa035c592?lnk=st&q=%22Gary+Chang%22+doc+%40msi
&rnum=10&hl=en#682ce3cfa035c592

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Marc Castrechini
6/14/2006 12:04:13 PM
I ended up creating an additional windows application project with one
module
containing the following:

Module modRunApp
Public Sub main()
Dim Asm As System.Reflection.Assembly =
System.Reflection.Assembly.GetExecutingAssembly()
Dim FileInfo As System.IO.FileInfo = New System.IO.FileInfo(
System.IO.Path.GetDirectoryName(Asm.Location) & "\MyApp.exe")

Process.Start(FileInfo.FullName)
End Sub
End Module

I added that output to a Commit Custom Action and it works.

Thanks for your help,
- Marc


[quoted text, click to view]

AddThis Social Bookmark Button