< Property Id ="WIXUI_INSTALLDIR" Value ="INSTALLLOCATION" ></ Property >
< UIRef Id ="WixUI_Mondo" />
< DirectoryRef Id ="INSTALLLOCATION" FileSource ="C:\WINDOWS\system32\" DiskId ="1" >
< Component Id ="ComponentNotepad" Guid ="{7A8E49AD-DDE6-4f82-BC1D-389E2AF2B1CB}" >
< File Id ='Notepad' Name ='notepad.exe' />
</ Component >
< Component Id ="ComponentCalc" Guid ="{0564AAFC-0AC9-4b0b-8ED9-452147CCEFFA}" >
< File Id ='Calc' Name ='calc.exe' />
</ Component >
</ DirectoryRef >
* This source code was highlighted with Source Code Highlighter .
< Feature Id ="FeatureNotepad" Title ="" Description =" " Level ="1" ConfigurableDirectory ="INSTALLLOCATION" >
< ComponentRef Id ="ComponentNotepad" />
< Feature Id ="FeatureCalc" Title ="" Description =" " Level ="1" >
< ComponentRef Id ="ComponentCalc" />
</ Feature >
</ Feature >
* This source code was highlighted with Source Code Highlighter .
< FeatureRef Id ="FeatureNotepad" />
< DirectoryRef Id ="ApplicationProgramsFolder" >
< Component Id ="ShortcutNotepad" Guid ="{29EB41BB-FCFA-4f71-B31A-9B265DA5C05D}" >
< Shortcut Id ="ShortcutNotepad"
Name =""
Description ="$(var.ProductName)"
Target ="[INSTALLLOCATION]Notepad.exe"
WorkingDirectory ="INSTALLLOCATION" />
< RemoveFolder Id ="ApplicationProgramsFolder" On ="uninstall" />
< RegistryValue Root ="HKCU"
Key ="Software\$(var.Manufacturer)\$(var.ProductName)"
Name ="installed"
Type ="integer"
Value ="1"
KeyPath ="yes" />
</ Component >
< Component Id ="ShortcutCalc" Guid ="{C050C54C-F1E9-4fb8-9179-666305ADF489}" >
< Shortcut Id ="ShortcutCalc"
Name =""
Description ="$(var.ProductName)"
Target ="[INSTALLLOCATION]Calc.exe"
WorkingDirectory ="INSTALLLOCATION" />
< RegistryValue Root ="HKCU"
Key ="Software\$(var.Manufacturer)\$(var.ProductName)"
Name ="installed"
Type ="integer"
Value ="1"
KeyPath ="yes" />
</ Component >
</ DirectoryRef >
* This source code was highlighted with Source Code Highlighter .
< Feature Id ="FeatureNotepad" Title ="" Description =" " Level ="1" ConfigurableDirectory ="INSTALLLOCATION" >
< ComponentRef Id ="ComponentNotepad" />
< ComponentRef Id ="ShortcutNotepad" />
< Feature Id ="FeatureCalc" Title ="" Description =" " Level ="1" >
< ComponentRef Id ="ComponentCalc" />
< ComponentRef Id ="ShortcutCalc" />
</ Feature >
</ Feature >
* This source code was highlighted with Source Code Highlighter .
< UI Id ="WixUI_Mondo" >
and change to< UI Id WixUI_Wizard >
on< UIRef Id ="WixUI_Mondo" />
< UIRef Id ="WixUI_Wizard" />
< Publish Dialog ="LicenseAgreementDlg" Control ="Back" Event ="NewDialog" Value ="WelcomeDlg" > 1 </ Publish >
< Publish Dialog ="LicenseAgreementDlg" Control ="Next" Event ="NewDialog" Value ="SetupTypeDlg" Order ="2" > LicenseAccepted = "1" </ Publish >
on< Publish Dialog ="WelcomeDlg" Control ="Next" Event ="NewDialog" Value ="LicenseAgreementDlg" > 1 </ Publish >
< Publish Dialog ="WelcomeDlg" Control ="Next" Event ="NewDialog" Value ="SetupTypeDlg" > 1 </ Publish >
change to< Publish Dialog ="SetupTypeDlg" Control ="Back" Event ="NewDialog" Value ="LicenseAgreementDlg" > 1 </ Publish >
< Publish Dialog ="SetupTypeDlg" Control ="Back" Event ="WelcomeDlg" Value ="LicenseAgreementDlg" > 1 </ Publish >
<? xml version ="1.0" encoding ="UTF-8" ? >
< Wix xmlns ="http://schemas.microsoft.com/wix/2006/wi" >
< Fragment >
< UI >
< Dialog Id ="ShortcutsDlg" Width ="370" Height ="270" Title ="!(loc.WelcomeDlg_Title)" >
< Control Id ="Next" Type ="PushButton" X ="248" Y ="243" Width ="56" Height ="17" Default ="yes" Text ="!(loc.WixUINext)" />
< Control Id ="Back" Type ="PushButton" X ="192" 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 ="ShortcutDesktop"
Type ="CheckBox"
Height ="18"
Width ="295"
X ="26" Y ="58"
Text =" "
Property ="SHORTCUT_DESKTOP"
CheckBoxValue ="1" />
< Control Id ="ShortcutProgramMenu"
Type ="CheckBox"
Height ="18"
Width ="295"
X ="26" Y ="79"
Text =" "
Property ="SHORTCUT_PROGRAMMENU"
CheckBoxValue ="1" />
< Control Id ="BannerBitmap" Type ="Bitmap" X ="0" Y ="0" Width ="370" Height ="44" TabSkip ="no" Text ="!(loc.CustomizeDlgBannerBitmap)" />
< Control Id ="BannerLine" Type ="Line" X ="0" Y ="44" Width ="370" Height ="2" />
< Control Id ="BottomLine" Type ="Line" X ="0" Y ="234" Width ="370" Height ="2" />
< Control Id ="Title" Type ="Text" X ="15" Y ="6" Width ="210" Height ="15" Transparent ="yes" NoPrefix ="yes" Text ="!(loc.CustomizeDlgTitle)" />
</ Dialog >
</ UI >
</ Fragment >
</ Wix >
* This source code was highlighted with Source Code Highlighter .
< Publish Dialog ="ShortcutsDlg" Control ="Back" Event ="NewDialog" Value ="CustomizeDlg" > 1 </ Publish >
< Publish Dialog ="ShortcutsDlg" Control ="Next" Event ="NewDialog" Value ="VerifyReadyDlg" > 1 </ Publish >
* This source code was highlighted with Source Code Highlighter .
<!-- -->
< Publish Dialog ="SetupTypeDlg" Control ="TypicalButton" Event ="NewDialog" Value ="ShortcutsDlg" > 1 </ Publish >
<!-- -->
< Publish Dialog ="SetupTypeDlg" Control ="CompleteButton" Event ="NewDialog" Value ="ShortcutsDlg" > 1 </ Publish >
< Publish Dialog ="CustomizeDlg" Control ="Next" Event ="NewDialog" Value ="ShortcutsDlg" > 1 </ Publish >
<!-- -->
< Publish Dialog ="ShortcutsDlg" Control ="Back" Event ="NewDialog" Value ="CustomizeDlg" Order ="1" >
WixUI_InstallMode = "InstallCustom"
</ Publish >
<!-- -->
< Publish Dialog ="ShortcutsDlg" Control ="Back" Event ="NewDialog" Value ="SetupTypeDlg" Order ="2" >
WixUI_InstallMode = "InstallTypical" OR WixUI_InstallMode = "InstallComplete"
</ Publish >
< Publish Dialog ="VerifyReadyDlg" Control ="Back" Event ="NewDialog" Value ="ShortcutsDlg" > 1 </ Publish >
< Publish Dialog ="VerifyReadyDlg" Control ="Back" Event ="NewDialog" Value ="CustomizeDlg" Order ="1" >
WixUI_InstallMode = "Change"
</ Publish >
< Publish Dialog ="VerifyReadyDlg" Control ="Back" Event ="NewDialog" Value ="MaintenanceTypeDlg" Order ="2" >
WixUI_InstallMode = "Repair" OR WixUI_InstallMode = "Remove"
</ Publish >
* This source code was highlighted with Source Code Highlighter .
< Property Id ="SHORTCUT_PROGRAMMENU" > 1 </ Property >
< Property Id ="SHORTCUT_DESKTOP" > 1 </ Property >
< Condition > SHORTCUT_PROGRAMMENU </ Condition >
< Component Id ="ShortcutNotepad" Guid ="{29EB41BB-FCFA-4f71-B31A-9B265DA5C05D}" >
< Shortcut Id ="ShortcutNotepad"
Name =""
Description ="$(var.ProductName)"
Target ="[INSTALLLOCATION]Notepad.exe"
WorkingDirectory ="INSTALLLOCATION" />
< RemoveFolder Id ="ApplicationProgramsFolder" On ="uninstall" />
< RegistryValue Root ="HKCU" Key ="Software\$(var.Manufacturer)\$(var.ProductName)" Name ="installed" Type ="integer" Value ="1" KeyPath ="yes" />
< Condition > SHORTCUT_PROGRAMMENU </ Condition >
</ Component >
* This source code was highlighted with Source Code Highlighter .
< Directory Id ="DesktopFolder" Name ="Desktop" />
< DirectoryRef Id ="DesktopFolder" >
< Component Id ="DesktopShortcutNotepad" Guid ="{9746557B-59B1-46de-B369-5F454A946698}" >
< RegistryKey Root ="HKCU" Key ="YourAppKey\PossibleSubKey" Action ="createAndRemoveOnUninstall" >
< RegistryValue Name ="AnyValueName" Value ="1" Type ="integer" KeyPath ="yes" />
</ RegistryKey >
< Shortcut Id ="DesktopShortcut" Directory ="DesktopFolder" Name ="" Target ="[INSTALLLOCATION]Notepad.exe" />
< Condition > SHORTCUT_DESKTOP </ Condition >
</ Component >
< Component Id ="DesktopShortcutCalc" Guid ="{B4908FF0-96C6-4f12-8E64-BC366E1147E1}" >
< RegistryKey Root ="HKCU" Key ="YourAppKey\PossibleSubKey" Action ="createAndRemoveOnUninstall" >
< RegistryValue Name ="AnyValueName" Value ="1" Type ="integer" KeyPath ="yes" />
</ RegistryKey >
< Shortcut Id ="DesktopShortcut" Directory ="DesktopFolder" Name ="" Target ="[INSTALLLOCATION]Calc.exe" />
< Condition > SHORTCUT_DESKTOP </ Condition >
</ Component >
</ DirectoryRef >
* This source code was highlighted with Source Code Highlighter .
< Feature Id ="FeatureNotepad" Title ="" Description =" " Level ="1" ConfigurableDirectory ="INSTALLLOCATION" >
< ComponentRef Id ="ComponentNotepad" />
< ComponentRef Id ="ShortcutNotepad" />
< ComponentRef Id ="DesktopShortcutNotepad" />
< Feature Id ="FeatureCalc" Title ="" Description =" " Level ="1" >
< ComponentRef Id ="ComponentCalc" />
< ComponentRef Id ="ShortcutCalc" />
< ComponentRef Id ="DesktopShortcutCalc" />
</ Feature >
</ Feature >
* This source code was highlighted with Source Code Highlighter .
< Condition Level ="0" > INSTALLLEVEL=3 </ Condition >
< Publish Event ="SetInstallLevel" Value ="3" > 1 </ Publish >
Source: https://habr.com/ru/post/70616/
All Articles