|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <?define Manufacturer = "Antikernel Labs" ?> |
3 | 3 | <?define Product = "ngscopeclient" ?> |
4 | | -<?define Version = "0.1" ?> |
| 4 | +<?define Version = "@PROJECT_VERSION@" ?> |
5 | 5 | <?define RegKey = "ngscopeclient" ?> |
6 | 6 | <?define DefaultInstallDir = "ngscopeclient" ?> |
7 | 7 | <?define ShortcutTarget = "ngscopeclient.exe" ?> |
|
15 | 15 | <Property Id="ARPURLINFOABOUT" Value="https://www.github.com/azonenberg/scopehal-apps" /> |
16 | 16 | <Property Id="ARPURLUPDATEINFO" Value="https://www.github.com/azonenberg/scopehal-apps" /> |
17 | 17 | <Property Id="ARPNOMODIFY" Value="1" /> |
18 | | - <Directory Id="TARGETDIR" Name="SourceDir"> |
| 18 | + <Directory Id="TARGETDIR" Name="SourceDir"> |
19 | 19 | <Directory Id="ProgramMenuFolder"> |
20 | 20 | <Directory Id="ProgramMenuDir" Name="ngscopeclient"> |
21 | 21 | <Component Id="StartMenuShortcuts" Guid="$(var.Uuid.StartMenuShortcuts)"> |
22 | 22 | <RegistryValue Root="HKCU" Key="Software\$(var.RegKey)" Name="InstallDir" Value="[APPLICATIONFOLDER]" Type="string" KeyPath="yes" /> |
23 | 23 | <RemoveFolder Id="ProgramMenuDir" Directory="ProgramMenuDir" On="uninstall" /> |
24 | 24 | <Shortcut Id="RunProgram" Directory="ProgramMenuDir" Name="$(var.Product)" Description="Run $(var.Product)" Target="[APPLICATIONFOLDER]$(var.ShortcutTarget)" /> |
| 25 | + <Shortcut Id="RunProgramDesktop" Directory="DesktopFolder" Name="$(var.Product)"/> |
25 | 26 | <Shortcut Id="UninstallProduct" Directory="ProgramMenuDir" Name="Uninstall $(var.Product)" Description="Uninstalls the $(var.Product)" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" /> |
26 | 27 | </Component> |
27 | 28 | </Directory> |
|
43 | 44 | <UIRef Id="WixUI_Custom" /> |
44 | 45 | <Property Id="ALLUSERS" Value="1" /> |
45 | 46 | <Property Id="WixAppFolder" Value="WixPerMachineFolder" /> |
46 | | - <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" /> |
| 47 | + <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" /> |
47 | 48 | <UI Id="WixUI_Custom"> |
48 | 49 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
49 | 50 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
|
65 | 66 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish> |
66 | 67 | <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish> |
67 | 68 | <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> |
| 69 | + |
| 70 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallScopeDlg">NOT Installed</Publish> |
| 71 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish> |
| 72 | + <Publish Dialog="InstallScopeDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> |
| 73 | + <!-- |
68 | 74 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg">NOT Installed</Publish> |
69 | 75 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish> |
70 | 76 | <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> |
71 | 77 | <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallScopeDlg">LicenseAccepted = "1"</Publish> |
72 | | - |
73 | 78 | <Publish Dialog="InstallScopeDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish> |
| 79 | + --> |
| 80 | + |
74 | 81 | <Publish Dialog="InstallScopeDlg" Control="Next" Property="WixAppFolder" Value="WixPerUserFolder" Order="1">!(wix.WixUISupportPerUser) AND NOT Privileged</Publish> |
75 | 82 | <Publish Dialog="InstallScopeDlg" Control="Next" Property="ALLUSERS" Value="{}" Order="2">WixAppFolder = "WixPerUserFolder"</Publish> |
76 | 83 | <Publish Dialog="InstallScopeDlg" Control="Next" Property="ALLUSERS" Value="1" Order="3">WixAppFolder = "WixPerMachineFolder"</Publish> |
|
0 commit comments