|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" |
| 3 | + xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" |
| 4 | + xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" |
| 5 | + > |
| 6 | + |
| 7 | + <?define MgtSource=$(sys.SOURCEFILEDIR)..\Elucidate\bin\Release ?> |
| 8 | + |
| 9 | + <!-- do not change this ever !--> |
| 10 | + <?define UpgradeCode = "B015A529-67FB-4009-93A8-E7465CA191C1" ?> |
| 11 | + |
| 12 | + <!-- Change this when creating new release YY-MM-DD.Build --> |
| 13 | + <?define Version = "!(bind.FileVersion.Elucidate.exe)" ?> |
| 14 | + |
| 15 | + <?define ProductName = "Elucidate: A GUI to drive the SnapRAID command line (via .Net)"?> |
| 16 | + |
| 17 | + <Product Version="$(var.Version)" Id="*" UpgradeCode="$(var.UpgradeCode)" |
| 18 | + Name="$(var.ProductName)" Language="1033" Manufacturer="https://github.com/Smurf-IV/Elucidate/" > |
| 19 | + |
| 20 | + <Package Id="*" Keywords='Installer' |
| 21 | + InstallScope='perMachine' |
| 22 | + Description="$(var.ProductName)" |
| 23 | + Comments="Elucidate" InstallerVersion="401" Compressed="yes" |
| 24 | + AdminImage='no' |
| 25 | + Platform='x86' |
| 26 | + /> |
| 27 | + |
| 28 | + <MajorUpgrade DowngradeErrorMessage="Downgrades are not allowed - Use add/remove from the control panel" /> |
| 29 | + |
| 30 | + <!-- Support Information shown in Add/Remove programs (this is optional) --> |
| 31 | + <Property Id="ARPHELPLINK" Value="https://github.com/Smurf-IV/Elucidate/docs" /> |
| 32 | + <Property Id="ARPCOMMENTS" Value="https://github.com/Smurf-IV/Elucidate/issues"/> |
| 33 | + <Property Id="ARPCONTACT" Value="Smurf-IV" /> |
| 34 | + <Property Id="ARPURLINFOABOUT" Value="https://github.com/Smurf-IV/Elucidate" /> |
| 35 | + <Icon Id="InstallerIcon" SourceFile="$(sys.SOURCEFILEDIR)..\Elucidate\Elucidate.ico" /> |
| 36 | + <Property Id="ARPPRODUCTICON" Value="InstallerIcon" /> |
| 37 | + <WixVariable Id="WixUILicenseRtf" Value="GPLv2.rtf" /> |
| 38 | + |
| 39 | + <!-- Properties to allow detection of .Net installation --> |
| 40 | + <PropertyRef Id="NETFRAMEWORK45"/> |
| 41 | + |
| 42 | + <Condition Message="[ProductName] Requires .NET Framework 4.5.1 or greater to be installed"> |
| 43 | + <![CDATA[Installed OR (NETFRAMEWORK45 AND NETFRAMEWORK45 >= "#378675")]]> |
| 44 | + </Condition> |
| 45 | + <Condition Message="You need to be an administrator to install this product."> |
| 46 | + Privileged |
| 47 | + </Condition> |
| 48 | + |
| 49 | + <!--Allow 7z / zip compression to squeeze this tighter --> |
| 50 | + <Media Id="1" Cabinet="Setup.cab" EmbedCab="yes" CompressionLevel="high" /> |
| 51 | + |
| 52 | + <Directory Id="TARGETDIR" Name="SourceDir"> |
| 53 | + <Directory Id="ProgramFilesFolder"> |
| 54 | + <Directory Id="INSTALLDIR" Name="Elucidate"> |
| 55 | + <Directory Id="ClientDIR" Name="Elucidate Client"> |
| 56 | + </Directory> |
| 57 | + <Directory Id="ServiceDIR" Name="Elucidate Service"> |
| 58 | + </Directory> |
| 59 | + </Directory> |
| 60 | + </Directory> |
| 61 | + <Directory Id="ProgramMenuFolder"> |
| 62 | + <Directory Id="ProgramMenuDir" Name="Elucidate"/> |
| 63 | + <Directory Id="StartupFolder" Name="Startup" /> |
| 64 | + </Directory> |
| 65 | + |
| 66 | + <Directory Id="CommonAppDataFolder" Name="CommonAppData"> |
| 67 | + <Directory Id="ElucidateSvc_Data" Name="ElucidateSvc" > |
| 68 | + <Component Id="DataDir" Guid="01234567-7E98-44CE-B049-C477CC0A2B01" KeyPath="yes" /> |
| 69 | + </Directory> |
| 70 | + </Directory> |
| 71 | + |
| 72 | + </Directory> |
| 73 | + |
| 74 | + <ComponentGroup Id="Client" Directory="ClientDIR"> |
| 75 | + <Component Id="Client" Guid="5EBF3F29-9CF1-44FE-A94C-CC1B4FE09367" > |
| 76 | + <File Id="InstallerIcon" Name="Elucidate.ico" Source="$(sys.SOURCEFILEDIR)..\Elucidate\Elucidate.ico" /> |
| 77 | + <File Id="Elucidate.exe" Name="Elucidate.exe" Source="$(var.MgtSource)\Elucidate.exe" KeyPath="yes" /> |
| 78 | + </Component> |
| 79 | + <Component> |
| 80 | + <File Source="$(sys.SOURCEFILEDIR)..\Elucidate\ChangeLog.htm" KeyPath="yes" /> |
| 81 | + </Component> |
| 82 | + <Component> |
| 83 | + <File Source="$(var.MgtSource)\Elucidate.exe.config" KeyPath="yes" /> |
| 84 | + </Component> |
| 85 | + |
| 86 | + <Component> |
| 87 | + <File Source="$(var.MgtSource)\AeroWizard.dll" KeyPath="yes" /> |
| 88 | + </Component> |
| 89 | + <Component> |
| 90 | + <File Source="$(var.MgtSource)\CubicOrange.Windows.Forms.ActiveDirectory.dll" KeyPath="yes" /> |
| 91 | + </Component> |
| 92 | + <Component> |
| 93 | + <File Source="$(var.MgtSource)\GroupControls.dll" KeyPath="yes" /> |
| 94 | + </Component> |
| 95 | + <Component> |
| 96 | + <File Source="$(var.MgtSource)\Microsoft.Win32.TaskScheduler.dll" KeyPath="yes" /> |
| 97 | + </Component> |
| 98 | + <Component> |
| 99 | + <File Source="$(var.MgtSource)\Microsoft.Win32.TaskSchedulerEditor.dll" KeyPath="yes" /> |
| 100 | + </Component> |
| 101 | + |
| 102 | + <Component> |
| 103 | + <File Source="$(var.MgtSource)\NLog.dll" KeyPath="yes" /> |
| 104 | + </Component> |
| 105 | + <Component> |
| 106 | + <File Source="$(var.MgtSource)\TimeSpan2.dll" KeyPath="yes" /> |
| 107 | + </Component> |
| 108 | + |
| 109 | + <Component> |
| 110 | + <File Source="$(sys.SOURCEFILEDIR)GPLv2.rtf" KeyPath="yes" /> |
| 111 | + </Component> |
| 112 | + <Component> |
| 113 | + <File Source="$(var.MgtSource)\wyDay.Controls\License.txt" KeyPath="yes" /> |
| 114 | + </Component> |
| 115 | + </ComponentGroup> |
| 116 | + |
| 117 | + <DirectoryRef Id="ProgramMenuDir"> |
| 118 | + <Component Id="ProgramMenuDir2" Guid="11234567-7E98-44CE-B049-C477CC0A2B01"> |
| 119 | + <Shortcut Id="Elucidate_Shortcut" Name="Elucidate MGT" Description="Elucidate Management Application" Target="[ClientDIR]Elucidate.exe" WorkingDirectory="ClientDIR" Icon="InstallerIcon" IconIndex="0" /> |
| 120 | + <Shortcut Id="Elucidate_Start" Name="Elucidate MGT" Directory="StartupFolder" Description="Elucidate MGT Application" Target="[ClientDIR]Elucidate.exe" WorkingDirectory="ClientDIR" Icon="InstallerIcon" IconIndex="0" /> |
| 121 | + <util:InternetShortcut Type="url" Id="Home" Name="Elucidate Forum" Target="[ARPHELPLINK]" /> |
| 122 | + <util:InternetShortcut Type="link" Id="Change" Name="Change Log" Target="[ClientDIR]ChangeLog.htm"/> |
| 123 | + <util:InternetShortcut Type="url" Id="SnapRAID" Name="SnapRAID Forum" Target="https://sourceforge.net/projects/snapraid/forums/forum/1677233" /> |
| 124 | + <RemoveFolder Id="ProgramMenuDir" On="uninstall"/> |
| 125 | + <RegistryValue Root="HKCU" Key="Software\Microsoft\Elucidate" Name="installed" Type="integer" Value="1" KeyPath="yes"/> |
| 126 | + </Component> |
| 127 | + </DirectoryRef> |
| 128 | + |
| 129 | + <Feature Id="ProductFeature" Title="Elucidate_Setup" Level="1"> |
| 130 | + <ComponentRef Id="DataDir" /> |
| 131 | + <ComponentGroupRef Id="Client" /> |
| 132 | + <ComponentRef Id='ProgramMenuDir2'/> |
| 133 | + </Feature> |
| 134 | + |
| 135 | + |
| 136 | + <CustomAction Id="MgtApp" FileKey="Elucidate.exe" ExeCommand="" Return="asyncNoWait" /> |
| 137 | + <util:CloseApplication CloseMessage="yes" Id="CloseElucidate" Target="Elucidate.exe" RebootPrompt="no"/> |
| 138 | + |
| 139 | + <InstallUISequence> |
| 140 | + <Custom Action="WixCloseApplications" Before="LaunchConditions" /> |
| 141 | + </InstallUISequence> |
| 142 | + |
| 143 | + <!-- Now to sequence these Custom Actions in the execute sequence --> |
| 144 | + <InstallExecuteSequence> |
| 145 | + <Custom Action="WixCloseApplications" Before="LaunchConditions" /> |
| 146 | + |
| 147 | + <Custom Action="MgtApp" After="InstallFinalize">Not Installed</Custom> |
| 148 | + </InstallExecuteSequence> |
| 149 | + |
| 150 | + <!-- Get the install to skip a few steps --> |
| 151 | + <UIRef Id="WixUI_Common" /> |
| 152 | + <WixVariable Id="WixUIBannerBmp" Value="banner.bmp" /> |
| 153 | + <!-- This just adds 90K on top of the UI Extension.dll --> |
| 154 | + <WixVariable Id="WixUIDialogBmp" Value="WixUIDialogBmp.bmp" /> |
| 155 | + <!-- This just adds 390K on top of the UI Extension.dll --> |
| 156 | + <UI> |
| 157 | + <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> |
| 158 | + <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
| 159 | + <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
| 160 | + <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
| 161 | + |
| 162 | + <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" /> |
| 163 | + <Property Id="ARPNOMODIFY" Value="1" /> |
| 164 | + |
| 165 | + <DialogRef Id="BrowseDlg" /> |
| 166 | + <DialogRef Id="DiskCostDlg" /> |
| 167 | + <DialogRef Id="ErrorDlg" /> |
| 168 | + <DialogRef Id="FatalError" /> |
| 169 | + <DialogRef Id="FilesInUse" /> |
| 170 | + <DialogRef Id="MsiRMFilesInUse" /> |
| 171 | + <DialogRef Id="PrepareDlg" /> |
| 172 | + <DialogRef Id="ProgressDlg" /> |
| 173 | + <DialogRef Id="ResumeDlg" /> |
| 174 | + <DialogRef Id="UserExit" /> |
| 175 | + |
| 176 | + <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> |
| 177 | + <Publish Dialog="WelcomeEulaDlg" Control="Install" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> |
| 178 | + <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeEulaDlg" Order="1">NOT Installed</Publish> |
| 179 | + <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed</Publish> |
| 180 | + |
| 181 | + <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish> |
| 182 | + <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> |
| 183 | + <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> |
| 184 | + <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish> |
| 185 | + </UI> |
| 186 | + |
| 187 | + <UIRef Id="WixUI_ErrorProgressText" /> |
| 188 | + |
| 189 | + </Product> |
| 190 | +</Wix> |
0 commit comments