[wix-users] run installed application after setup doesn't work as expected wit custom ui sequence
Ike Casteleyn
Ike.Casteleyn at compufit.be
Wed Dec 9 03:15:44 PST 2015
Hi,
I did attach the file.
I will add the source below (it's easier)
============================
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="8a9235c7-4eac-42a7-8feb-4c6f5420513e"
UpgradeCode="33c98c6d-d3cc-4090-96e1-728822217d2c"
Version="1.0.0.0"
Language="1033"
Name="My Application Name"
Manufacturer="My Manufacturer Name">
<Package InstallerVersion="300" Compressed="yes"/>
<Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" />
<!-- The following three sections are from the How To: Add a File to Your Installer topic-->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="My Application Name"/>
</Directory>
</Directory>
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="myapplication.exe" Guid="9435b076-7021-4ec0-9870-ce2c84c91eef">
<File Id="myapplication.exe" Source="MyApplication.exe" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<Feature Id="MainApplication" Title="Main Application" Level="1">
<ComponentRef Id="myapplication.exe" />
</Feature>
<Property Id='WIXUI_INSTALLDIR' Value="APPLICATIONROOTDIRECTORY" />
<!-- Step 2: Add UI to your installer / Step 4: Trigger the custom action -->
<UI Id="WixUI_InstallDir">
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="InstallDir" />
<DialogRef Id="BrowseDlg" />
<DialogRef Id="DiskCostDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
<Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="ExitDialog"
Control="Finish"
Event="DoAction"
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">1</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1">NOT Installed</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">Installed AND PATCH</Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Property Id="ARPNOMODIFY" Value="1" />
</UI>
<UIRef Id="WixUI_Common" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch My Application Name" />
<!-- Step 3: Include the custom action -->
<Property Id="WixShellExecTarget" Value="[#myapplication.exe]" />
<CustomAction Id="LaunchApplication"
BinaryKey="WixCA"
DllEntry="WixShellExec"
Impersonate="yes" />
</Product>
</Wix>
============================
Best regards,
Ike Casteleyn
-----Oorspronkelijk bericht-----
Van: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] Namens sampat magi
Verzonden: woensdag 9 december 2015 12:13
Aan: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Onderwerp: Re: [wix-users] run installed application after setup doesn't work as expected wit custom ui sequence
Hi,
we cant see ur wxs file. Did u attach the file? if so, it doesnt work here it seems. just copy whole source or drop it on web and add the link.
Sampat
On Wed, Dec 9, 2015 at 4:35 PM, Ike Casteleyn <Ike.Casteleyn at compufit.be>
wrote:
> Hi,
>
> I'm new to wix and trying to create an installer.
>
> What I want:
> An installer that gives the customer a possibility to choose the
> installationdir, no license agreement dialog and optionally runs the
> application after setup.
>
> What I did:
> I took the the sample wxs-file from
> http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localizati
> on/run_program_after_install.html Candle and link this step, works as
> expected (setup closes, application is launched).
>
> I then changed the WixUI_Minimal to WixUI_InstallDir and added the the
> wixui_installdir property.
> Candle and link this step, works as expected (setup closes,
> application is
> launched)
>
> Next follow the steps in
> http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizatio
> ns.html
> to change the dialog sequence.
> The same steps performed, only the Publish for the ExitDlg is kept as
> previously.
> Candle and link this.
> Behaviour I get:
> the setup doesn't close (whether the checkbox is checked or not)
> during install the setup doesn't close when uninstalling too.
>
> I have added my wxs-file.
> The guids in that file are correct guids (but dummies).
>
> What am I doing wrong?
>
> Best regards,
> Ike
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list