netdata.wxs.in 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <Wix
  2. xmlns="http://wixtoolset.org/schemas/v4/wxs"
  3. xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"
  4. xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
  5. <Package Name="Netdata Agent"
  6. Manufacturer="Netdata Inc."
  7. Version="@CMAKE_PROJECT_VERSION@"
  8. UpgradeCode="0d949b90-a54d-4aae-9616-e15fbc410530">
  9. <Media Id="1" Cabinet="netdata" EmbedCab="yes" />
  10. <MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="yes" />
  11. <Icon Id="NetdataIcon.ico" SourceFile="NetdataWhite.ico"/>
  12. <Property Id="ARPPRODUCTICON" Value="NetdataIcon.ico" />
  13. <Property Id="TOKEN" Secure="yes" />
  14. <Property Id="ROOMS" Secure="yes" />
  15. <Property Id="INSECURE" Secure="yes" />
  16. <Property Id="PROXY" Secure="yes" />
  17. <Property Id="URL" Value="https://app.netdata.cloud" />
  18. <Property Id="GPLLICENSE" Value="0" />
  19. <Property Id="CLOUDUILICENSE" Value="0" />
  20. <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
  21. <Feature Id="Main">
  22. <ComponentGroupRef Id="NetdataComponents" />
  23. <ComponentRef Id="NetdataVarCache" />
  24. <ComponentRef Id="NetdataVarLib" />
  25. <ComponentGroupRef Id="WevtComponents" />
  26. <ComponentRef Id="NetdataService" />
  27. </Feature>
  28. <WixVariable Id="WixUIBannerBmp" Value="Top.bmp" />
  29. <WixVariable Id="WixUIDialogBmp" Value="BackGround.bmp" />
  30. <UIRef Id="WixUI_ErrorProgressText" />
  31. <ui:WixUI Id="FeatureTree_ViewLicense" />
  32. </Package>
  33. <Fragment>
  34. <StandardDirectory Id="ProgramFiles64Folder">
  35. <Directory Id="INSTALLFOLDER" Name="Netdata">
  36. <Directory Id="USRDIR" Name="usr">
  37. <Directory Id="USRBINDIR" Name="bin" />
  38. </Directory>
  39. <Directory Id="VARDIR" Name="var">
  40. <Directory Id="VARCACHEDIR" Name="cache" />
  41. <Directory Id="VARLIBDIR" Name="lib" />
  42. </Directory>
  43. <Directory Id="ETCDIR" Name="etc">
  44. <Directory Id="ETCDIRNETDATA" Name="netdata" />
  45. </Directory>
  46. </Directory>
  47. </StandardDirectory>
  48. <Property Id="ETCNETDATACLAIMFILE">
  49. <DirectorySearch Id="NetCoreDirectoryFoundx64" Path="[ETCDIRNETDATA]" >
  50. <FileSearch Id="NetdataClaim" Name="claim.conf"/>
  51. </DirectorySearch>
  52. </Property>
  53. <StandardDirectory Id="System64Folder">
  54. </StandardDirectory>
  55. <!-- All the files except for the ones we need to handle specially -->
  56. <ComponentGroup Id="NetdataComponents" Directory="INSTALLFOLDER">
  57. <Files Include="C:\msys64\opt\netdata\**">
  58. <Exclude Files="C:\msys64\opt\netdata\usr\bin\netdata.exe" />
  59. <Exclude Files="C:\msys64\opt\netdata\usr\bin\wevt_netdata_manifest.xml" />
  60. <Exclude Files="C:\msys64\opt\netdata\usr\bin\wevt_netdata.dll" />
  61. </Files>
  62. </ComponentGroup>
  63. <Component Id="NetdataVarCache" Directory="VARCACHEDIR" Guid="a41bc888-60d4-4d99-bb4f-da92614a8f72">
  64. <CreateFolder />
  65. </Component>
  66. <Component Id="NetdataVarLib" Directory="VARLIBDIR" Guid="c72d7ea8-c848-46c4-a983-589044f2eec9">
  67. <CreateFolder />
  68. </Component>
  69. <CustomAction Id="ClaimAgent" Directory="USRBINDIR" ExeCommand='[USRBINDIR]NetdataClaim.exe /T &quot;[TOKEN]&quot; /R &quot;[ROOMS]&quot; /U &quot;[URL]&quot; /I [INSECURE] /P &quot;[PROXY]&quot; /F &quot;[INSTALLFOLDER]etc\netdata\claim.conf&quot;' Execute="deferred" Return="ignore" Impersonate="no"/>
  70. <InstallExecuteSequence>
  71. <Custom Action="ClaimAgent" After="InstallFiles" />
  72. </InstallExecuteSequence>
  73. <!-- Install wevt manifest/dll files -->
  74. <ComponentGroup Id="WevtComponents" Directory="System64Folder">
  75. <File Id="WevtDll" Name="wevt_netdata.dll" Source="C:\msys64\opt\netdata\usr\bin\wevt_netdata.dll">
  76. </File>
  77. <File Id="WevtManifest" Name="wevt_netdata_manifest.xml" Source="C:\msys64\opt\netdata\usr\bin\wevt_netdata_manifest.xml">
  78. </File>
  79. </ComponentGroup>
  80. <Component Id="NetdataService" Directory="USRBINDIR">
  81. <File Id="netdata.exe" Source="C:\msys64\opt\netdata\usr\bin\netdata.exe" KeyPath="yes" />
  82. <ServiceInstall Id="InstallService"
  83. Name="Netdata"
  84. DisplayName="Netdata Agent"
  85. Description="Distributed, real-time, performance and health monitoring for systems and applications."
  86. Type="ownProcess"
  87. Start="auto"
  88. ErrorControl="normal" />
  89. <ServiceControl Id="ControlService"
  90. Start="install"
  91. Stop="both"
  92. Remove="uninstall"
  93. Name="Netdata"
  94. Wait="yes" />
  95. </Component>
  96. </Fragment>
  97. <Fragment>
  98. <UI Id="FeatureTree_ViewLicense_X64">
  99. <Publish Dialog="ViewLicenseDlg1" Control="Print" Event="DoAction" Value="WixUIPrintEula_X64" />
  100. <Publish Dialog="ViewLicenseDlg2" Control="Print" Event="DoAction" Value="WixUIPrintEula_X64" />
  101. </UI>
  102. <UIRef Id="FeatureTree_ViewLicense" />
  103. </Fragment>
  104. <Fragment>
  105. <UI Id="file FeatureTree_ViewLicense">
  106. <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
  107. <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
  108. <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
  109. <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
  110. <DialogRef Id="ErrorDlg" />
  111. <DialogRef Id="FatalError" />
  112. <DialogRef Id="FilesInUse" />
  113. <DialogRef Id="MsiRMFilesInUse" />
  114. <DialogRef Id="PrepareDlg" />
  115. <DialogRef Id="ProgressDlg" />
  116. <DialogRef Id="ResumeDlg" />
  117. <DialogRef Id="UserExit" />
  118. <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" />
  119. <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="ViewLicenseDlg1" Condition="NOT Installed" />
  120. <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" />
  121. <Publish Dialog="ViewLicenseDlg1" Control="Back" Event="NewDialog" Value="WelcomeDlg" />
  122. <Publish Dialog="ViewLicenseDlg1" Control="Next" Event="NewDialog" Value="ViewLicenseDlg2" />
  123. <Publish Dialog="ViewLicenseDlg2" Control="Back" Event="NewDialog" Value="ViewLicenseDlg1" />
  124. <Publish Dialog="ViewLicenseDlg2" Control="Next" Event="NewDialog" Value="NDConfigDialog" Condition="NOT ETCNETDATACLAIMFILE" />
  125. <Publish Dialog="ViewLicenseDlg2" Control="Next" Event="NewDialog" Value="NDConfigDialog" Condition="ETCNETDATACLAIMFILE" />
  126. <Publish Dialog="NDConfigDialog" Control="Back" Event="NewDialog" Value="ViewLicenseDlg2" />
  127. <Publish Dialog="NDConfigDialog" Control="Next" Event="NewDialog" Value="InstallDirDlg" />
  128. <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="NDConfigDialog" />
  129. <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="20" />
  130. <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="10" />
  131. <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="10" />
  132. <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="20" />
  133. <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed OR WixUI_InstallMode = &quot;Change&quot;" />
  134. <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" />
  135. <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3" Condition="Installed AND PATCH" />
  136. <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg" />
  137. <Publish Dialog="MaintenanceTypeDlg" Control="ChangeButton" Event="NewDialog" Value="InstallDirDlg" />
  138. <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg" />
  139. <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg" />
  140. <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg" />
  141. </UI>
  142. <UIRef Id="WixUI_Common" />
  143. </Fragment>
  144. <Fragment>
  145. <UI>
  146. <Dialog Id="ViewLicenseDlg1" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
  147. <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
  148. <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
  149. <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
  150. <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />
  151. <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="The Cloud UI License covers the Netdata User Interface." />
  152. <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
  153. <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="I &amp;Accept">
  154. <Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg" Condition="!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1" />
  155. </Control>
  156. <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
  157. <Publish Event="SpawnDialog" Value="CancelDlg" />
  158. </Control>
  159. <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="158" Sunken="yes" TabSkip="no">
  160. <Text SourceFile="ncul1.rtf" />
  161. </Control>
  162. </Dialog>
  163. </UI>
  164. </Fragment>
  165. <Fragment>
  166. <UI>
  167. <Dialog Id="ViewLicenseDlg2" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
  168. <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
  169. <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
  170. <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
  171. <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />
  172. <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="The GPL-3.0 License covers the Agent source code." />
  173. <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
  174. <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="I &amp;Accept">
  175. <Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg" Condition="!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1" />
  176. </Control>
  177. <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
  178. <Publish Event="SpawnDialog" Value="CancelDlg" />
  179. </Control>
  180. <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="158" Sunken="yes" TabSkip="no">
  181. <Text SourceFile="gpl-3.0.rtf" />
  182. </Control>
  183. </Dialog>
  184. </UI>
  185. </Fragment>
  186. <Fragment>
  187. <UI>
  188. <Dialog Id="NDConfigDialog" Width="370" Height="270" Title="Netdata Cloud">
  189. <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
  190. <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
  191. <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
  192. <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="Enter your Space's Claim Token and the Room IDs where you want to add the Agent." />
  193. <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="Connect to the Cloud" />
  194. <Control Id="WarningLabel" Type="Text" X="10" Y="60" Width="290" Height="15" Text="Agent already claimed? Click Next." />
  195. <Control Id="TokenLabel" Type="Text" X="10" Y="90" Width="55" Height="15" Text="Claim Token:" />
  196. <Control Id="Token" Type="Edit" X="65" Y="90" Width="290" Height="18" Property="TOKEN" />
  197. <Control Id="RoomsLabel" Type="Text" X="10" Y="105" Width="55" Height="15" Text="Rooms ID(s):" />
  198. <Control Id="Rooms" Type="Edit" X="65" Y="105" Width="290" Height="18" Property="ROOMS" />
  199. <Control Id="ProxyLabel" Type="Text" X="10" Y="120" Width="55" Height="15" Text="Proxy URL:" />
  200. <Control Id="Proxy" Type="Edit" X="65" Y="120" Width="290" Height="18" Property="PROXY" />
  201. <Control Id="URLLabel" Type="Text" X="10" Y="135" Width="55" Height="15" Text="Cloud URL:" />
  202. <Control Id="URL" Type="Edit" X="65" Y="135" Width="290" Height="18" Property="URL" />
  203. <Control Id="InsecureCheckbox" Type="CheckBox" X="10" Y="150" Width="290" Height="15" Property="INSECURE" CheckBoxValue="0" Text="Insecure" />
  204. <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
  205. <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" />
  206. <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
  207. <Publish Event="SpawnDialog" Value="CancelDlg" />
  208. </Control>
  209. </Dialog>
  210. </UI>
  211. </Fragment>
  212. </Wix>