Sounds a lot like:
http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm

On Thu, Dec 23, 2010 at 2:53 PM, Minarto Margoliono <
mmargoli...@seamless.com.au> wrote:

> If i want to open a webpage after the installation finished, where the
> website address is from a custom ui dialog, how can i do that? So far here
> are what hinder me doing that
>
> 1. If I show the dialog in CostFinalize, in install finalize when the CA
> executed the WixShellExectarget is empty (probably because the dialog is
> dismissed already?)
> 2. If i launch the web in from the dialog in CostFinalize, the file to be
> opened would not be there yet.
>
> So how can i do one of those thing?
> 1. Show a dialog after InstallFinalize
> 2. Get the value of earlier dialog control property for later use in
> InstallFinalize CA (Maybe copy it to some property first?)
>
>
> Here is my wix file
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <!--
>    # This comment is generated by WixEdit, the specific commandline
>    # arguments for the WiX Toolset are stored here.
>
>    candleArgs:
>    lightArgs: "<projectname>.wixobj" -out "<projectname>.msi" -ext
> WixUtilExtension -ext WixUIExtension
> -->
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>    <Product Name="Foobar 1.0" Id="D185267F-E91B-432A-9DDB-661CA4354565"
> UpgradeCode="43A4EC8D-4F6D-4C0C-92C4-BFF5E2D3D3E8" Language="1033"
> Codepage="1252" Version="1.0.0" Manufacturer="Acme Ltd.">
>        <Package Id="*" Keywords="Installer" Description="Acme's Foobar 1.0
> Installer" Comments="Foobar is a registered trademark of Acme Ltd."
> Manufacturer="Acme Ltd." InstallerVersion="100" Languages="1033"
> Compressed="yes" SummaryCodepage="1252" />
>        <Media Id="1" Cabinet="Sample.cab" EmbedCab="yes" DiskPrompt="CD-ROM
> #1" />
>        <Property Id="DiskPrompt" Value="Acme's Foobar 1.0 Installation [1]"
> />
>        <Property Id="url"><![CDATA[http://google.com]]></Property>
>        <Directory Id="TARGETDIR" Name="SourceDir">
>            <Directory Id="ProgramFilesFolder" Name="PFiles">
>                <Directory Id="Acme" Name="Acme">
>                    <Directory Id="INSTALLDIR" Name="Foobar 1.0">
>                        <Component Id="MainExecutable"
> Guid="0FF5763B-FFDC-4C85-A22A-D5D584C95C04">
>                            <File Id="FoobarEXE" Name="Readme.txt"
> DiskId="1" Source="Error\Text.txt" KeyPath="yes" />
>                        </Component>
>                    </Directory>
>                </Directory>
>            </Directory>
>        </Directory>
>        <Feature Id="Complete" Level="1">
>            <ComponentRef Id="MainExecutable" />
>        </Feature>
>        <UIRef Id="WixUI_Minimal" />
>        <UI>
>            <Dialog Id="server" Width="370" Height="60">
>                <Control Type="Edit" Id="a" Width="248" Height="24" X="105"
> Y="15" Property="WixShellExecTarget" />
>                <Control Type="PushButton" Id="btnServer" Width="70"
> Height="17" X="105" Y="38" Text="Launch Setting">
>                    <Publish Event="DoAction" Value="OpenUrl" />
>                </Control>
>                <Control Type="Text" Id="lblserver" Width="68" Height="17"
> X="30" Y="15" Text="Server Location">
>                </Control>
>                <Control Type="PushButton" Id="Finish" Width="56"
> Height="17" X="180" Y="38" Text="Finish">
>                    <Publish Event="EndDialog" Value="Return" />
>                </Control>
>            </Dialog>
>            <AdminUISequence>
>                <Show Dialog="server" After="CostFinalize" />
>            </AdminUISequence>
>        </UI>
>        <InstallExecuteSequence>
>            <Custom Action="OpenUrl" After="InstallFinalize" />
>        </InstallExecuteSequence>
>        <CustomAction DllEntry="WixShellExec" Id="OpenUrl" BinaryKey="WixCA"
> Return="ignore" Impersonate="yes">
>        </CustomAction>
>    </Product>
> </Wix>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to