Almost nothing is wrong, but I think it has two issues (one major, one minor):
- explorer.exe is always exiting after launching so "asyncWait" will behave the
same as "asyncNoWait"
- you will launch two processes. If you are a performance freak, stay away from
this :-)
ShellExecute does not have this issues.
Rene
________________________________
From: [EMAIL PROTECTED] on behalf of Anthony Wieser
Sent: Sat 6/23/2007 8:44
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Launching Web Page After Finish Dialog
I've seen ShellExecute recommended as the way to do this, but what's wrong with
doing it like this instead?
<Property Id="SURVEYURL">explorer</Property>
<CustomAction Id="TakeSurvey" Property="SURVEYURL" Return="asyncNoWait"
ExeCommand="$(var.SurveyURL)"></CustomAction>
where $(var.SurveyURL) has been set to your
http://www.example.com/pagetoshow.htm
Anthony Wieser
Wieser Software Ltd
----- Original Message -----
From: Bob Arnson <mailto:[EMAIL PROTECTED]>
To: Steve Bush <mailto:[EMAIL PROTECTED]> ;
wix-users@lists.sourceforge.net
Sent: Friday, June 22, 2007 6:22 PM
Subject: Re: [WiX-users] Launching Web Page After Finish Dialog
If you're using WiX v3, see "ShellExecute CustomAction" in WiX.chm. It
contains a sample showing how to use the WixShellExec custom action to do just
that.
If you're using WiX v2, you either need to do a custom UI or you can
try scheduling your CA in InstallUISequence after ExecuteAction. I'm not sure
the latter will work but it's worth a shot.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve
Bush
Sent: Friday, 22 June, 2007 10:15
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Launching Web Page After Finish Dialog
Ideally, I would like to launch a web page when the user hits the
Finish button on the last dialog. The code below works but the web page is
launched after InstallFinalize instead of when the user clicks the Finish
button. Also, I want to only show the web page if we're not doing a silent
install or upgrade.
Thanks.
Steve
Snippets of Relevant Code:
<Property Id="BROWSER">
<RegistrySearch Id="IEXPLORE_SEARCH" Root="HKLM"
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE"
Type="raw" />
</Property>
<CustomAction Id="LaunchBrowser" Property="BROWSER"
Execute="immediate" ExeCommand="$(var.WelcomeURL)" Return="asyncNoWait" />
<UI>
<UIRef Id="WixUI_Minimal" />
<UIRef Id="WixUI_ErrorProgressText" />
</UI>
<InstallExecuteSequence>
<FindRelatedProducts Before="LaunchConditions" />
<RemoveExistingProducts After="InstallValidate" />
<Custom Action="LaunchBrowser"
After="InstallFinalize"><![CDATA[UILevel > 2 AND NOT Installed]]></Custom>
</InstallExecuteSequence>
<InstallUISequence>
<FindRelatedProducts Before="LaunchConditions" />
</InstallUISequence>
________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
________________________________
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users