| 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> |
| 2 | <Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a" InstallerVersion="200"> |
| 3 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> |
| 4 | |
| 5 | <Feature Id="ProductFeature" Title="MsiPackage"> |
| 6 | <ComponentGroupRef Id="ProductComponents" /> |
| 7 | </Feature> |
| 8 | |
| 9 | <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> |
| 10 | <Component> |
| 11 | <File Source="example.txt" /> |
| 12 | </Component> |
| 13 | </ComponentGroup> |
| 14 | |
| 15 | <ui:WixUI Id="InstallDir_NoLicense" InstallDirectory="INSTALLFOLDER" /> |
| 16 | </Package> |
| 17 | |
| 18 | <Fragment> |
| 19 | <StandardDirectory Id="ProgramFilesFolder"> |
| 20 | <Directory Id="INSTALLFOLDER" Name="MsiPackage" /> |
| 21 | </StandardDirectory> |
| 22 | </Fragment> |
| 23 | |
| 24 | <?foreach WIXUIARCH in X86;X64;A64 ?> |
| 25 | <Fragment> |
| 26 | <UI Id="InstallDir_NoLicense_$(WIXUIARCH)"> |
| 27 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" /> |
| 28 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" /> |
| 29 | </UI> |
| 30 | |
| 31 | <UIRef Id="InstallDir_NoLicense" /> |
| 32 | </Fragment> |
| 33 | <?endforeach?> |
| 34 | |
| 35 | <Fragment> |
| 36 | <UI Id="file InstallDir_NoLicense"> |
| 37 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
| 38 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
| 39 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
| 40 | |
| 41 | <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> |
| 42 | |
| 43 | <DialogRef Id="BrowseDlg" /> |
| 44 | <DialogRef Id="DiskCostDlg" /> |
| 45 | <DialogRef Id="ErrorDlg" /> |
| 46 | <DialogRef Id="FatalError" /> |
| 47 | <DialogRef Id="FilesInUse" /> |
| 48 | <DialogRef Id="MsiRMFilesInUse" /> |
| 49 | <DialogRef Id="PrepareDlg" /> |
| 50 | <DialogRef Id="ProgressDlg" /> |
| 51 | <DialogRef Id="ResumeDlg" /> |
| 52 | <DialogRef Id="UserExit" /> |
| 53 | |
| 54 | <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" /> |
| 55 | |
| 56 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Condition="NOT Installed" /> |
| 57 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" /> |
| 58 | |
| 59 | <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" /> |
| 60 | <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="3" /> |
| 61 | <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4" /> |
| 62 | <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1" /> |
| 63 | <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2" /> |
| 64 | |
| 65 | <Publish Dialog="BrowseDlg" Control="OK" Event="SetTargetPath" Value="[_BrowseProperty]" Order="3" /> |
| 66 | <Publish Dialog="BrowseDlg" Control="OK" Event="EndDialog" Value="Return" Order="4" /> |
| 67 | |
| 68 | <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed" /> |
| 69 | <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" /> |
| 70 | <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" Condition="Installed AND PATCH" /> |
| 71 | |
| 72 | <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg" /> |
| 73 | |
| 74 | <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 75 | <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 76 | <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg" /> |
| 77 | |
| 78 | <Property Id="ARPNOMODIFY" Value="1" /> |
| 79 | </UI> |
| 80 | |
| 81 | <UIRef Id="WixUI_Common" /> |
| 82 | </Fragment> |
| 83 | </Wix> |