Advertisement
Guest User

Hipara WiX

a guest
Oct 10th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.56 KB | None | 0 0
  1. <?xml version='1.0' encoding='utf-8'?>
  2.  
  3. <?if $(sys.BUILDARCH) = x64 ?>
  4. <?define ProductUpgradeCode = "EE25F08C-3599-A764-8AB6-0E40889481B4" ?>
  5. <?define Win64 = "yes" ?>
  6. <?define PlatformSystemFolder = "System64Folder" ?>
  7. <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  8. <?define Folder="64"?>
  9. <?else ?>
  10. <?define ProductUpgradeCode = "E7E6A731-1D12-5823-4153-D5100B0E64CB" ?>
  11. <?define Win64 = "no" ?>
  12. <?define PlatformSystemFolder = "SystemFolder" ?>
  13. <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
  14. <?define Folder="32"?>
  15. <?endif ?>
  16.  
  17. <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
  18. xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'
  19. xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'>
  20. <Product Name='Hipara' Id='*' UpgradeCode='EE9DED37-5F61-4EBF-A81D-A39EC89D383C'
  21. Language='1033' Codepage='1252' Version='1.0.2' Manufacturer='Allsum LLC'>
  22.  
  23. <Package Id='*' Keywords='Installer'
  24. Description="Allsum's Hipara Installer"
  25. Comments='Hipara is a registered trademark of Allsum LLC' Manufacturer='Allsum LLC'
  26. InstallerVersion='200' Languages='1033' Compressed='yes' SummaryCodepage='1252'
  27. Platform='x64'/>
  28.  
  29. <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/>
  30.  
  31. <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="Hipara Media" CompressionLevel="high" />
  32. <Property Id='DiskPrompt' Value="Allsum's Hipara Installation" />
  33.  
  34. <Directory Id='TARGETDIR' Name='SourceDir'>
  35. <Directory Id='ProgramFiles64Folder' Name='PFiles'>
  36. <Directory Id='MANF' Name='Allsum'>
  37. <Directory Id='INSTALLDIR' Name='Hipara'>
  38.  
  39. <Directory Id='MEMSCAN' Name='memscan'>
  40. <Component Id='MemINF' Win64='yes'>
  41. <File Id='MemInf' Source='hiparamemscan.inf' KeyPath='yes' />
  42. </Component>
  43.  
  44. <Component Id='MemSYS' Win64='yes'>
  45. <File Id='MemSYS' Source='hiparamemscan.sys' KeyPath='yes' />
  46. </Component>
  47. </Directory>
  48.  
  49. <Directory Id='SIGSDIR' Name='signatures'>
  50. <Component Id='DefaultSignatures' Win64='yes'>
  51. <File Id='DefaultSignatures' Source='signatures.yar' KeyPath='yes' />
  52. </Component>
  53. </Directory>
  54.  
  55. </Directory>
  56. </Directory>
  57. </Directory>
  58.  
  59. <Directory Id="ProgramMenuFolder" Name="Programs">
  60. <Directory Id="ProgramMenuDir" Name="Hipara">
  61. <Component Id="ProgramMenuDir">
  62. <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
  63. <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Type='string' Value='' KeyPath='yes' />
  64. </Component>
  65. </Directory>
  66. </Directory>
  67. </Directory>
  68.  
  69. <ComponentGroup Id='MyFiles' Directory='INSTALLDIR'>
  70.  
  71. <Component Id="RegistryEntries" Win64='yes'>
  72. <RegistryKey Root="HKLM"
  73. Key="Software\Microsoft\Windows\CurrentVersion\Run">
  74. <RegistryValue Type="string" Name="Hipara" Value="[INSTALLDIR]hipara.exe" KeyPath="yes"/>
  75. </RegistryKey>
  76. </Component>
  77.  
  78. <Component Id='ScannerDriver' Win64='yes'>
  79. <File Id='ScannerSYS' Source='scanner.sys' KeyPath='yes' />
  80. <File Id='ScannerINF' Source='scanner.inf' />
  81. <File Id='ScannerCAT' Source='scanner.cat' />
  82. <difx:Driver Legacy='no' />
  83. </Component>
  84.  
  85. <Component Id='MemDLL' Win64='yes'>
  86. <File Id='MemDll' Source='hiparamemscandll.dll' KeyPath='yes' />
  87. </Component>
  88.  
  89. <Component Win64='yes'>
  90. <File Id='HiparaEXE' Source='hipara.exe' />
  91. <Shortcut Id="startmenHipara" Directory="ProgramMenuDir" Name="Hipara" WorkingDirectory='INSTALLDIR' Icon="hipara.exe" IconIndex="0" Advertise="yes" />
  92. </Component>
  93.  
  94. <Component Id='msvcrLibrary' Win64='yes'>
  95. <File Id='msvcrLibrary' Source='msvcr120.dll' KeyPath='yes' />
  96. </Component>
  97.  
  98. <Component Id='msvcpLibrary' Win64='yes'>
  99. <File Id='msvcpLibrary' Source='msvcp120.dll' KeyPath='yes' />
  100. </Component>
  101.  
  102. <Component Id='mfcLibrary' Win64='yes'>
  103. <File Id='mfcLibrary' Source='mfc120u.dll' KeyPath='yes' />
  104. </Component>
  105.  
  106. <Component Id='config' Win64='yes'>
  107. <File Id='config' Source='config.ini' KeyPath='yes' />
  108. </Component>
  109.  
  110. <Component Id='Jansson' Win64='yes'>
  111. <File Id='Jansson' Source='jansson64.dll' KeyPath='yes' />
  112. </Component>
  113.  
  114. <Component Id='Libcurl' Win64='yes'>
  115. <File Id='Libcurl' Source='libcurl.dll' KeyPath='yes' />
  116. </Component>
  117.  
  118. <Component Id="DigiCertRoot" Guid="*" Win64='yes'>
  119. <File Id="DigiCertRoot" Name="DigiCert Root" Source="DigiCert High Assurance EV Root CA.crt"/>
  120.  
  121. <iis:Certificate Id="Certificate.RootCA"
  122. Name="DigiCert High Assurance EV Root CA"
  123. Request="no"
  124. StoreLocation="localMachine"
  125. StoreName="root"
  126. Overwrite="yes"
  127. BinaryKey="Certificate.RootCA.Binary"
  128. />
  129. </Component>
  130.  
  131. <Component Id="AllsumCodeSigning.pfx" Guid="*" Win64='yes'>
  132. <File Id="AllsumCodeSign.pfx" Name="AllsumCodeSign.pfx" Source="AllsumCodeSigning.pfx" />
  133.  
  134. <iis:Certificate Id="Certificate.MnpTestCertificate"
  135. Name="AllsumCodeSign.pfx"
  136. Request="no"
  137. StoreLocation="localMachine"
  138. StoreName="personal"
  139. Overwrite="yes"
  140. BinaryKey="Certificate.RandomCert.Binary"
  141. PFXPassword="password"
  142. />
  143. </Component>
  144.  
  145.  
  146.  
  147. </ComponentGroup>
  148.  
  149. <Binary Id="Certificate.RootCA.Binary" SourceFile="DigiCert High Assurance EV Root CA.crt" />
  150. <Binary Id="Certificate.RandomCert.Binary" SourceFile="AllsumCodeSigning.pfx" />
  151.  
  152. <Feature Id='Complete' Title='Hipara' Description='The complete package.'
  153. Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
  154. <Feature Id='Hipara' Title='Hipara' Description='The main executable.' Level='1'>
  155. <ComponentGroupRef Id='MyFiles' />
  156. <ComponentRef Id='MemINF' />
  157. <ComponentRef Id='MemSYS' />
  158. <ComponentRef Id='DefaultSignatures' />
  159.  
  160. <ComponentRef Id='ProgramMenuDir' />
  161. <ComponentRef Id="RegistryEntries" />
  162. </Feature>
  163. </Feature>
  164.  
  165. <CustomAction Id="LaunchHiparaEXE"
  166. Directory="INSTALLDIR"
  167. ExeCommand="[INSTALLDIR]hipara.exe"
  168. Return="asyncNoWait"
  169. >
  170. </CustomAction>
  171.  
  172. <InstallExecuteSequence>
  173. <Custom Action="LaunchHiparaEXE" After="InstallFinalize">NOT Installed AND UILevel &lt; 5</Custom>
  174. </InstallExecuteSequence>
  175.  
  176.  
  177. <Property Id="WixShellExecTarget" Value="[#HiparaEXE]" />
  178. <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
  179.  
  180. <UI>
  181. <UIRef Id="WixUI_Minimal" />
  182. <Publish Dialog="ExitDialog"
  183. Control="Finish"
  184. Event="DoAction"
  185. Value="LaunchApplication">NOT Installed</Publish>
  186. </UI>
  187.  
  188. <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
  189. <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
  190. <Icon Id="hipara.exe" SourceFile="hipara.exe" />
  191.  
  192.  
  193. <ComponentGroup Id="Component.InstalledCertificates">
  194. <ComponentRef Id="DigiCertRoot" />
  195. <ComponentRef Id="AllsumCodeSigning.pfx" />
  196. </ComponentGroup>
  197. </Product>
  198. </Wix>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement