Feature Requests item #1296639, was opened at 2005-09-20 10:40
Message generated for change (Comment added) made by robmen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1296639&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compiler
>Group: Next Release (example)
>Status: Closed
Priority: 5
Private: No
Submitted By: Robert Flaming (rflaming)
>Assigned to: Bob Arnson (barnson)
Summary: Add compiler extension to launch an application after instal
Initial Comment:
Here's the VSI way which is wrong
Here are the basic steps to get your application to run.
You need to add a custom action to your setup project.
Just a word of warning, this will not work like the Install
Shield setups where the setup disappears and then the
application starts. This custom action will cause the
application to be run in the commit phase of the install,
which means the last dialog in the setup will still be
showing when the application starts running.
1. Create a .vbs file with the following code.
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run """" & Property("CustomActionData")
& """",7,False
Set WshShell = Nothing
2. Open your setup project and go to the
Custom Actions Editor
3. Select the Commit Node and right-click, add
a new Custom Action
4. Browse the filesystem to add the .vbs file
from step 1
5. Edit the CustomActionData property and add
the following:
[TARGETDIR]YourApp.exe
6. Change �YourApp.exe� to whatever your
startup app file name is.
Here is a walkthrough that explains how to create a
custom action:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vsintro7/html/vxwlkwalkthroughcreatingcustomaction.
asp
If you want the application launch to be dependent on
the users input, you will also need to read this
walkthrough on how to pass data to a custom action,
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vsintro7/html/vxwlkwalkthroughcreatingcustomaction.
asp, and modify the above custom action appriopriately.
----------------------------------------------------------------------
>Comment By: Rob Mensching (robmen)
Date: 2007-02-02 00:04
Message:
Logged In: YES
user_id=991639
Originator: NO
Bob wrote a ShellExecute CusotmAction.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1296639&group_id=105970
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs