Your code will launch Internet Explorer instead of the default web browser. Personally I use firefox, and if I see that your installer opens the survey in explorer I wouldn't give it a second, I would close it right away. Thats the advantage of the ShellExecute, it will respect user preferences.

K-ballo.-

Anthony Wieser escribió:
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
    <mailto: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]>
    [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 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 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

Reply via email to