OliveTin.wxs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  3. <Product
  4. Id="*"
  5. Name="OliveTin"
  6. Language="1033"
  7. Version="$(var.Version)"
  8. Manufacturer="OliveTin contributors"
  9. UpgradeCode="8B5E3F2A-1C4D-4E6F-9A0B-2D3C4E5F6071">
  10. <Package
  11. InstallerVersion="500"
  12. Compressed="yes"
  13. InstallScope="perMachine"
  14. Description="OliveTin web interface for running shell commands"
  15. Comments="https://github.com/OliveTin/OliveTin" />
  16. <MajorUpgrade
  17. AllowSameVersionUpgrades="yes"
  18. DowngradeErrorMessage="A newer version of OliveTin is already installed." />
  19. <MediaTemplate EmbedCab="yes" />
  20. <Icon Id="OliveTinIcon" SourceFile="$(var.SourceDir)/OliveTin.exe" />
  21. <UIRef Id="WixUI_Minimal" />
  22. <Property Id="WixUILicenseRtf" Value="License.rtf" />
  23. <Feature Id="ProductFeature" Title="OliveTin" Level="1">
  24. <ComponentGroupRef Id="CG.AppFiles" />
  25. <ComponentRef Id="ConfigFile" />
  26. <ComponentRef Id="StartMenuShortcuts" />
  27. </Feature>
  28. <Directory Id="TARGETDIR" Name="SourceDir">
  29. <Directory Id="ProgramFiles64Folder">
  30. <Directory Id="INSTALLDIR" Name="OliveTin" />
  31. </Directory>
  32. <Directory Id="CommonAppDataFolder">
  33. <Directory Id="ConfigDir" Name="OliveTin" />
  34. </Directory>
  35. <Directory Id="ProgramMenuFolder">
  36. <Directory Id="ApplicationProgramsFolder" Name="OliveTin" />
  37. </Directory>
  38. </Directory>
  39. <DirectoryRef Id="ConfigDir">
  40. <Component Id="ConfigFile" Guid="A1B2C3D4-E5F6-7890-ABCD-EF1234567890" Win64="yes" Permanent="yes" NeverOverwrite="yes">
  41. <File
  42. Id="ConfigYaml"
  43. Source="$(var.ConfigSource)"
  44. Name="config.yaml"
  45. KeyPath="yes" />
  46. </Component>
  47. </DirectoryRef>
  48. <DirectoryRef Id="ApplicationProgramsFolder">
  49. <Component Id="StartMenuShortcuts" Guid="C3D4E5F6-A7B8-9012-CDEF-345678901234" Win64="yes">
  50. <Shortcut
  51. Id="OliveTinExeShortcut"
  52. Name="OliveTin"
  53. Description="OliveTin web interface for running shell commands"
  54. Target="[INSTALLDIR]OliveTin.exe"
  55. WorkingDirectory="INSTALLDIR"
  56. Icon="OliveTinIcon"
  57. IconIndex="0" />
  58. <Shortcut
  59. Id="ConfigYamlShortcut"
  60. Name="config.yaml"
  61. Description="OliveTin configuration file"
  62. Target="[#ConfigYaml]"
  63. Icon="OliveTinIcon"
  64. IconIndex="0" />
  65. <Shortcut
  66. Id="ProgramDataDirShortcut"
  67. Name="OliveTin Data"
  68. Description="Open the OliveTin ProgramData directory"
  69. Target="[System64Folder]explorer.exe"
  70. Arguments="[ConfigDir]"
  71. WorkingDirectory="ConfigDir" />
  72. <Shortcut
  73. Id="ProgramFilesDirShortcut"
  74. Name="OliveTin Program Files"
  75. Description="Open the OliveTin installation directory"
  76. Target="[System64Folder]explorer.exe"
  77. Arguments="&quot;[INSTALLDIR]&quot;"
  78. WorkingDirectory="INSTALLDIR" />
  79. <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
  80. <RegistryValue Root="HKLM" Key="Software\OliveTin" Name="StartMenuShortcuts" Type="integer" Value="1" KeyPath="yes" />
  81. </Component>
  82. </DirectoryRef>
  83. </Product>
  84. </Wix>