bmw-advanced-tools/Product.wxs

317 lines
25 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<!-- Add xmlns:util namespace definition to be able to use stuff from WixUtilExtension.dll -->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<!-- Include defined variables -->
<?include Product.Var.wxi ?>
<!-- The upgrade code must never change as long as the product lives! -->
<!-- Product IDs must be autogenerated (*) or else major upgrades will not work -->
<Product Id="$(var.ProductId)" Name="!(loc.ApplicationName)" Language="!(loc.Language)" Version="$(var.AppVersion)" Manufacturer="!(loc.ManufacturerName)" UpgradeCode="$(var.UpgradeCode)" >
<!-- Package IDs are valid for a single package version only - they are autogenerated by WiX -->
<!-- Let's require Windows Installer 4.0 (included in Vista) -->
<!-- And ALWAYS install per machine!!! -->
<Package Id="*" InstallerVersion="400" Compressed="yes" InstallPrivileges="elevated" InstallScope="perMachine" Description="!(loc.ProductDescription)" Comments="!(loc.Comments) $(var.AppVersion)" />
<!-- Define icons (ID should not be longer than 18 chars and must end with ".exe") -->
<Icon Id="AppIcon.ico" SourceFile="$(var.AppIconSource)" />
<Icon Id="InpaIcon.ico" SourceFile="$(var.InpaIconSource)" />
<!-- We do not have more than one medium (Floppy, CD, ...). Everything in one file. -->
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<!-- Upgrade settings -->
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion OnlyDetect="yes" Minimum="$(var.AppVersion)" IncludeMinimum="no" Property="NEWER_VERSION_FOUND" />
<UpgradeVersion Minimum="0.0.0.0" IncludeMinimum="yes" Maximum="$(var.AppVersion)" IncludeMaximum="no" Property="OLDER_VERSION_FOUND" />
</Upgrade>
<!-- License agreement text: dummy. Real text is set in WXS file -->
<!--<WixVariable Id="WixUILicenseRtf" Value="dummy" />-->
<!-- UI customization -->
<WixVariable Id="WixUIBannerBmp" Value="$(var.ImageTopBannerSource)" />
<WixVariable Id="WixUIDialogBmp" Value="$(var.ImageDialogSource)" />
<Binary Id="imageDialog" SourceFile="$(var.ImageDialogSource)" />
<!-- Set properties for Add/Remove Programs -->
<Property Id="ARPPRODUCTICON" Value="AppIcon.ico" />
<Property Id="ARPHELPLINK" Value="$(var.InfoURL)" />
<!-- Remove repair -->
<!--<Property Id="ARPNOREPAIR" Value="yes" Secure="yes" />-->
<!-- Remove modify -->
<!--<Property Id="ARPNOMODIFY" Value="yes" Secure="yes" />-->
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="DialogBitmap">imageDialog</Property>
<!-- Determine the directory of a previous installation (if one exists). If not INSTALLDIR stays empty -->
<Property Id="INSTALLDIR">
<RegistrySearch Id="DetermineInstallLocation" Type="raw" Root="HKLM" Key="Software\!(loc.ApplicationName)" Name="InstallLocation" />
</Property>
<Property Id="UpgradeDlgHasShown" Value="0" />
<Property Id="ADDDESKTOPSHORTCUT" Value="1"/>
<!-- Reference the global NETFRAMEWORK35 property to check if it exists -->
<PropertyRef Id="NETFRAMEWORK35"/>
<!--
Startup conditions that checks if .Net Framework 3.5 is installed or if
we're running the OS higher than Windows XP SP2.
If not the installation is aborted.
By doing the (Installed OR ...) property means that this condition will only
be evaluated if the app is being installed and not on uninstall or changing
-->
<Condition Message="!(loc.DotNetFrameworkNeeded)">
<![CDATA[Installed OR NETFRAMEWORK35]]>
</Condition>
<Condition Message="!(loc.AppNotSupported)">
<![CDATA[Installed OR ((VersionNT >= 501 AND ServicePackLevel >= 2) OR (VersionNT >= 502))]]>
</Condition>
<!-- Set up ARPINSTALLLOCATION property (http://blogs.technet.com/b/alexshev/archive/2008/02/09/from-msi-to-wix-part-2.aspx) -->
<CustomAction Id="SetARPINSTALLLOCATION" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
<!-- Save the command line value INSTALLDIR and restore it later in the sequence or it will be overwritten by the value saved to the registry during an upgrade -->
<!-- http://robmensching.com/blog/posts/2010/5/2/the-wix-toolsets-remember-property-pattern/ -->
<CustomAction Id='SaveCmdLineValueINSTALLDIR' Property='CMDLINE_INSTALLDIR' Value='[INSTALLDIR]' Execute='firstSequence' />
<CustomAction Id='SetFromCmdLineValueINSTALLDIR' Property='INSTALLDIR' Value='[CMDLINE_INSTALLDIR]' Execute='firstSequence' />
<CustomAction Id="NewerVersionFound" Error="!(loc.NewerVersionInstalled)" />
<!-- UI Sequence -->
<InstallUISequence>
<!-- Check for newer versions with FindRelatedProducts and execute the custom action after it -->
<Custom Action="NewerVersionFound" After="FindRelatedProducts">
<![CDATA[NEWER_VERSION_FOUND]]>
</Custom>
<Custom Action='SaveCmdLineValueINSTALLDIR' Before='AppSearch' />
<Custom Action='SetFromCmdLineValueINSTALLDIR' After='AppSearch'>CMDLINE_INSTALLDIR</Custom>
</InstallUISequence>
<!-- Exec Sequence -->
<!-- This is the main installer sequence run when the product is actually installed -->
<InstallExecuteSequence>
<!-- Check for newer versions with FindRelatedProducts and execute the custom action after it -->
<Custom Action="NewerVersionFound" After="FindRelatedProducts">
<![CDATA[NEWER_VERSION_FOUND]]>
</Custom>
<!-- Remove the previous versions of the product -->
<RemoveExistingProducts After="InstallInitialize"/>
<!-- WixCloseApplications is a built in custom action that uses util:CloseApplication below -->
<Custom Action="WixCloseApplications" Before="InstallInitialize" />
<!-- Determine the install location after the install path has been validated by the installer -->
<Custom Action="SetARPINSTALLLOCATION" After="InstallValidate"></Custom>
<Custom Action='SaveCmdLineValueINSTALLDIR' Before='AppSearch' />
<Custom Action='SetFromCmdLineValueINSTALLDIR' After='AppSearch'>CMDLINE_INSTALLDIR</Custom>
</InstallExecuteSequence>
<!-- This will ask the user to close the app if it's running while upgrading -->
<util:CloseApplication Id="CloseApp" CloseMessage="no" Description="!(loc.CloseRunningApp)" ElevatedCloseMessage="no" RebootPrompt="no" Target="$(var.InpaExeName)" />
<!-- Outermost folder (kind of virtual). Fixed entry. -->
<Directory Id="TARGETDIR" Name="SourceDir">
<!-- We start building our directory structure here -->
<!-- "ProgramFilesFolder" is a variable containing the absolute path. -->
<!-- For a list of folder variables, see: http://msdn.microsoft.com/en-us/library/aa372057%28VS.85%29.aspx -->
<Directory Id="INSTALLDIR">
<Directory Id="ECAPPSDIR" Name="EC-APPS">
<Directory Id="INPADIR" Name="INPA">
<Directory Id="INPABINDIR" Name="BIN"></Directory>
</Directory>
<Directory Id="BMWCODINGTOOLDIR" Name="BMWCodingTool"></Directory>
<Directory Id="FINDECUDIR" Name="FindECU"></Directory>
<Directory Id="NFSDIR" Name="NFS">
<Directory Id="NFSBINDIR" Name="BIN"></Directory>
</Directory>
</Directory>
<Directory Id="EDIABASDIR" Name="EDIABAS">
<Directory Id="EDIABASBINDIR" Name="Bin"></Directory>
</Directory>
<Directory Id="NCSEXPERDIR" Name="NCSEXPER">
<Directory Id="NCSEXPERBINDIR" Name="Bin"></Directory>
<Directory Id="NCSDUMMYDIR" Name="NCS_Dummy"></Directory>
</Directory>
</Directory>
<!-- Registry entries -->
<Component Id="RegValInstallLocation_comp" Guid="$(var.GuidInstallLocation)">
<!-- Do NOT use the application's default registry key here, because THIS key will be removed on uninstall
(important when installing a newer version, because that is uninstall followed by install) -->
<RegistryKey Root="HKLM" Key="Software\!(loc.ApplicationName)">
<RegistryValue Name="InstallLocation" Value="[INSTALLDIR]" Type="string" KeyPath="yes" />
</RegistryKey>
</Component>
<!-- Shortcut folders -->
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="!(loc.ApplicationName)" /></Directory>
<Directory Id="DesktopFolder" Name="Desktop"></Directory>
</Directory>
<!-- Set ROOT Path -->
<SetDirectory Id="INSTALLDIR" Value="[WindowsVolume]" />
<!-- Shortcut components -->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="$(var.GuidApplicationShortcut)">
<Shortcut Id="InpaStartMenuShortcut" Name="Inpa" Description="!(loc.InpaDescription)" Target="[INPABINDIR]\$(var.InpaExeName)" WorkingDirectory="INPABINDIR" Icon="InpaIcon.ico" />
<Shortcut Id="BluetoothActivationToolStartMenuShortcut" Name="Bluetooth Activation Tool" Description="!(loc.BluetoothActivationToolDescription)" Target="[EDIABASBINDIR]\Bluetooth Activation Tool.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="BMWCodingToolStartMenuShortcut" Name="BMW Coding Tool" Description="!(loc.BMWCodingToolDescription)" Target="[BMWCODINGTOOLDIR]\BMW Coding Tool.exe" WorkingDirectory="BMWCODINGTOOLDIR" />
<Shortcut Id="FindECUStartMenuShortcut" Name="FindECU" Description="!(loc.FindECUDescription)" Target="[FINDECUDIR]\FindECU.exe" WorkingDirectory="FINDECUDIR" />
<Shortcut Id="NcsDummyStartMenuShortcut" Name="NcsDummy" Description="!(loc.NcsDummyDescription)" Target="[NCSDUMMYDIR]\NcsDummy.exe" WorkingDirectory="NCSDUMMYDIR" />
<Shortcut Id="NcsExpertStartMenuShortcut" Name="NcsExpert" Description="!(loc.NcsExpertDescription)" Target="[NCSEXPERBINDIR]\NCSEXPER.exe" WorkingDirectory="NCSEXPERBINDIR" />
<Shortcut Id="Tool32StartMenuShortcut" Name="Tool32" Description="!(loc.Tool32Description)" Target="[EDIABASBINDIR]\Tool32.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="WinKFPStartMenuShortcut" Name="WinKFP" Description="!(loc.WinKFPDescription)" Target="[NFSBINDIR]\winkfpt.exe" WorkingDirectory="NFSBINDIR" />
<RemoveFolder Id="RemoveApplicationProgramFsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\!(loc.ApplicationName)" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="DesktopFolder">
<Component Id="ApplicationShortcutDesktop" Guid="$(var.GuidApplicationShortcutDesktop)">
<Shortcut Id="InpaDesktopShortcut" Name="Inpa" Description="!(loc.InpaDescription)" Target="[INPABINDIR]\$(var.InpaExeName)" WorkingDirectory="INPABINDIR" Icon="InpaIcon.ico" />
<Shortcut Id="BluetoothActivationToolDesktopShortcut" Name="Bluetooth Activation Tool" Description="!(loc.BluetoothActivationToolDescription)" Target="[EDIABASBINDIR]\Bluetooth Activation Tool.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="BMWCodingToolDesktopShortcut" Name="BMW Coding Tool" Description="!(loc.BMWCodingToolDescription)" Target="[BMWCODINGTOOLDIR]\BMW Coding Tool.exe" WorkingDirectory="BMWCODINGTOOLDIR" />
<Shortcut Id="FindECUDesktopShortcut" Name="FindECU" Description="!(loc.FindECUDescription)" Target="[FINDECUDIR]\FindECU.exe" WorkingDirectory="FINDECUDIR" />
<Shortcut Id="NcsDummyDesktopShortcut" Name="NcsDummy" Description="!(loc.NcsDummyDescription)" Target="[NCSDUMMYDIR]\NcsDummy.exe" WorkingDirectory="NCSDUMMYDIR" />
<Shortcut Id="NcsExpertDesktopShortcut" Name="NcsExpert" Description="!(loc.NcsExpertDescription)" Target="[NCSEXPERBINDIR]\NCSEXPER.exe" WorkingDirectory="NCSEXPERBINDIR" />
<Shortcut Id="Tool32DesktopShortcut" Name="Tool32" Description="!(loc.Tool32Description)" Target="[EDIABASBINDIR]\Tool32.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="WinKFPDesktopShortcut" Name="WinKFP" Description="!(loc.WinKFPDescription)" Target="[NFSBINDIR]\winkfpt.exe" WorkingDirectory="NFSBINDIR" />
<RemoveFolder Id="RemoveDesktopFolder" Directory="DesktopFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\!(loc.ApplicationName)" Name="installed" Type="integer" Value="1" KeyPath="yes" />
<Condition>ADDDESKTOPSHORTCUT</Condition>
</Component>
</DirectoryRef>
<DirectoryRef Id="TARGETDIR">
<Component Id="PathVariable" Guid="$(var.GuidPathVariable)">
<Environment Id="PATH" Name="PATH" Value="[EDIABASBINDIR]" Permanent="no" Part="last" Action="set" System="yes" />
</Component>
<Component Id="EdibasEnvironmentVariable" Guid="$(var.GuidEdibasEnvironmentVariable)">
<Environment Id="ediabas_config_dir" Name="ediabas_config_dir" Value="[EDIABASBINDIR]" Permanent="no" Action="set" System="yes" />
</Component>
</DirectoryRef>
<!-- Features define which parts of the application can be installed in a custom installation -->
<Feature Id="Complete" Title="!(loc.ApplicationName)" Description="!(loc.FeatureCompleteDescription)" Display="expand" Level="1" ConfigurableDirectory="INSTALLDIR">
<!-- A feature block for the main (GUI) program and all its dependencies -->
<Feature Id="MainProgram" Title="!(loc.FeatureMainProgramTitle)" Description="!(loc.FeatureMainProgramDescription)" Level="1">
<!-- Installation folder: Generated automatically by heat.exe -->
<ComponentGroupRef Id="INSTALLDIR_comp" />
<!-- Registry entries -->
<ComponentRef Id="RegValInstallLocation_comp" />
<!-- Shortcuts -->
<ComponentRef Id="ApplicationShortcut" />
<ComponentRef Id="ApplicationShortcutDesktop" />
<ComponentRef Id="PathVariable" />
<ComponentRef Id="EdibasEnvironmentVariable" />
<ComponentGroupRef Id="OCX_comp" />
<!-- <ComponentGroupRef Id="comdlg32_comp" /> -->
</Feature>
</Feature>
<UI Id="MyWixUI">
<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" />
<Dialog Id="CustomLicenseAgreementDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="LicenseAcceptedCheckBox" Type="CheckBox" X="20" Y="207" Width="330" Height="18" CheckBoxValue="1" Property="LicenseAccepted" Text="!(loc.LicenseAgreementDlgLicenseAcceptedCheckBox)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
<Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg">CostingComplete = 1</Publish>
<Condition Action="disable">
<![CDATA[LicenseAccepted <> "1"]]>
</Condition>
<Condition Action="enable">LicenseAccepted = "1"</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
<Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="140" Sunken="yes" TabSkip="no">
<!-- This is the original line -->
<!--<Text SourceFile="!(wix.WixUILicenseRtf=$(var.LicenseRtf))" />-->
<!-- To enable EULA localization we change it to this: -->
<Text SourceFile="$(var.ProjectDir)\!(loc.LicenseRtf)" />
<!-- In each of the localization files (wxl) put a line like this:
<String Id="LicenseRtf" Overridable="yes">EULA_en-us.rtf</String>-->
</Control>
<Control Id="Print" Type="PushButton" X="112" Y="243" Width="56" Height="17" Text="!(loc.WixUIPrint)">
<Publish Event="DoAction" Value="WixUIPrintEula">1</Publish>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgTitle)" />
</Dialog>
<Dialog Id="CustomUpgradeDlg" Width="370" Height="270" Title="!(loc.UpgradeWelcomeDlgTitle)" NoMinimize="yes">
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)">
<Publish Event="NewDialog" Value="WelcomeDlg">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
<Publish Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Property="UpgradeDlgHasShown" Value="1">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[DialogBitmap]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="30" Transparent="yes" NoPrefix="yes">
<Text>!(loc.UpgradeWelcomeDlgMessage)</Text>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>{\WixUI_Font_Bigger}!(loc.UpgradeWelcomeDlgHeaderTitle)</Text>
</Control>
</Dialog>
<Dialog Id="CustomInstallDirDlg" Width="370" Height="270" Title="!(loc.InstallDirDlg_Title)">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.InstallDirDlgDescription)" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.InstallDirDlgTitle)" />
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="FolderLabel" Type="Text" X="20" Y="60" Width="290" Height="30" NoPrefix="yes" Text="!(loc.InstallDirDlgFolderLabel)" />
<Control Id="Folder" Type="PathEdit" X="20" Y="100" Width="320" Height="18" Property="WIXUI_INSTALLDIR" Indirect="yes" />
<Control Id="ChangeFolder" Type="PushButton" X="20" Y="120" Width="56" Height="17" Text="!(loc.InstallDirDlgChange)" />
<Control Id="DesktopShortcutCheckBox" Type="CheckBox" X="20" Y="160" Width="290" Height="17" Property="ADDDESKTOPSHORTCUT" CheckBoxValue="1" Text="!(loc.CreateDesktopShortcutCheckboxText)"/>
</Dialog>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="CustomLicenseAgreementDlg">NOT Installed</Publish>
<!--<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">(Installed AND PATCH) OR WIX_UPGRADE_DETECTED</Publish>-->
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="CustomUpgradeDlg">(Installed AND PATCH) OR OLDER_VERSION_FOUND</Publish>
<Publish Dialog="CustomLicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
<Publish Dialog="CustomLicenseAgreementDlg" Control="Next" Event="NewDialog" Value="CustomInstallDirDlg">LicenseAccepted = "1"</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="Back" Event="NewDialog" Value="CustomLicenseAgreementDlg">1</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3">
<![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]>
</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
<Publish Dialog="CustomInstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<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="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="CustomInstallDirDlg" Order="1">NOT Installed</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="CustomUpgradeDlg" Order="2">UpgradeDlgHasShown = "1"</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>
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
</UI>
<UIRef Id="WixUI_Common" />
</Product>
</Wix>