| 1 | <!-- SPDX-License-Identifier: GPL-3.0-or-later --> |
| 2 | |
| 3 | <Wix |
| 4 | xmlns="http://wixtoolset.org/schemas/v4/wxs" |
| 5 | xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util" |
| 6 | xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> |
| 7 | |
| 8 | <Package Name="Netdata Agent" |
| 9 | Manufacturer="Netdata Inc." |
| 10 | Version="@CMAKE_PROJECT_VERSION@" |
| 11 | UpgradeCode="0d949b90-a54d-4aae-9616-e15fbc410530"> |
| 12 | |
| 13 | <Media Id="1" Cabinet="netdata" EmbedCab="yes" /> |
| 14 | |
| 15 | <!-- Modified: Changed schedule to handle service shutdown more gracefully and allow downgrades --> |
| 16 | <MajorUpgrade Schedule="afterInstallValidate" AllowDowngrades="yes" /> |
| 17 | <Icon Id="NetdataIcon.ico" SourceFile="NetdataWhite.ico"/> |
| 18 | <Property Id="ARPPRODUCTICON" Value="NetdataIcon.ico" /> |
| 19 | |
| 20 | <Property Id="TOKEN" Secure="yes" /> |
| 21 | <Property Id="ROOMS" Secure="yes" /> |
| 22 | <Property Id="INSECURE" Secure="yes" /> |
| 23 | <Property Id="PROXY" Secure="yes" /> |
| 24 | <Property Id="URL" Value="https://app.netdata.cloud" /> |
| 25 | |
| 26 | <Property Id="GPLLICENSE" Value="0" /> |
| 27 | <Property Id="CLOUDUILICENSE" Value="0" /> |
| 28 | |
| 29 | <Property Id="NDDRVINST" Secure="yes" /> |
| 30 | |
| 31 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" /> |
| 32 | |
| 33 | <!-- Added to handle FilesInUse dialog --> |
| 34 | <Property Id="MSIRESTARTMANAGERCONTROL" Value="DisableShutdown" /> |
| 35 | |
| 36 | <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Access Netdata dashboard" /> |
| 37 | <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" /> |
| 38 | <Property Id="WixShellExecTarget" Value="http://localhost:19999" /> |
| 39 | <CustomAction Id="LaunchApplication" DllEntry="WixShellExec" Impersonate="yes" BinaryRef="Wix4UtilCA_X86" /> |
| 40 | |
| 41 | <Feature Id="Main"> |
| 42 | <ComponentGroupRef Id="NetdataComponents" /> |
| 43 | <ComponentRef Id="NetdataVarCache" /> |
| 44 | <ComponentRef Id="NetdataDevShm" /> |
| 45 | <ComponentRef Id="NetdataDevMqueue" /> |
| 46 | <ComponentRef Id="NetdataTmp" /> |
| 47 | <ComponentRef Id="NetdataHome" /> |
| 48 | <ComponentRef Id="NetdataRoot" /> |
| 49 | <ComponentRef Id="NetdataVarLib" /> |
| 50 | <ComponentRef Id="NetdataVarLibNetdata" /> |
| 51 | <ComponentRef Id="NetdataEtcGo" /> |
| 52 | <ComponentRef Id="NetdataEtcHealth" /> |
| 53 | <ComponentRef Id="NetdataEtcPython" /> |
| 54 | <ComponentRef Id="NetdataEtcStatsd" /> |
| 55 | <ComponentGroupRef Id="WevtComponents" /> |
| 56 | <FeatureGroupRef Id="NetdataDriver" /> |
| 57 | <ComponentRef Id="NetdataService" /> |
| 58 | </Feature> |
| 59 | |
| 60 | <StandardDirectory Id="ProgramFiles64Folder"> |
| 61 | <Directory Id="INSTALLFOLDER" Name="Netdata"> |
| 62 | <Directory Id="USRDIR" Name="usr"> |
| 63 | <Directory Id="USRBINDIR" Name="bin" /> |
| 64 | <Directory Id="USRLIBEXECDIR" Name="libexec"> |
| 65 | <Directory Id="USRLIBEXECNETDATADIR" Name="netdata" /> |
| 66 | </Directory> |
| 67 | </Directory> |
| 68 | <Directory Id="VARDIR" Name="var"> |
| 69 | <Directory Id="VARCACHEDIR" Name="cache" /> |
| 70 | <Directory Id="VARLIBDIR" Name="lib"> |
| 71 | <Directory Id="VARLIBDIRNETDATA" Name="netdata" /> |
| 72 | </Directory> |
| 73 | </Directory> |
| 74 | <Directory Id="ETCDIR" Name="etc"> |
| 75 | <Directory Id="ETCDIRNETDATA" Name="netdata"> |
| 76 | <Directory Id="ETCDIRNETDATAGO" Name="go.d" /> |
| 77 | <Directory Id="ETCDIRNETDATAHEALTH" Name="health.d" /> |
| 78 | <Directory Id="ETCDIRNETDATAPYTHON" Name="python.d" /> |
| 79 | <Directory Id="ETCDIRNETDATASTATSD" Name="statsd.d" /> |
| 80 | </Directory> |
| 81 | </Directory> |
| 82 | <Directory Id="DEVDIR" Name="dev"> |
| 83 | <Directory Id="DEVSHMDIR" Name="shm" /> |
| 84 | <Directory Id="DEVMQUEUEDIR" Name="mqueue" /> |
| 85 | </Directory> |
| 86 | <Directory Id="TMPDIR" Name="tmp"> |
| 87 | </Directory> |
| 88 | <Directory Id="HOMEDIR" Name="home"> |
| 89 | </Directory> |
| 90 | <Directory Id="ROOTDIR" Name="root"> |
| 91 | </Directory> |
| 92 | </Directory> |
| 93 | </StandardDirectory> |
| 94 | |
| 95 | <UI Id="FeatureTree_ViewLicense_X64"> |
| 96 | </UI> |
| 97 | <UIRef Id="FeatureTree_ViewLicense" /> |
| 98 | |
| 99 | <WixVariable Id="WixUIBannerBmp" Value="Top.bmp" /> |
| 100 | <WixVariable Id="WixUIDialogBmp" Value="BackGround.bmp" /> |
| 101 | <UIRef Id="WixUI_ErrorProgressText" /> |
| 102 | <ui:WixUI Id="FeatureTree_ViewLicense" /> |
| 103 | |
| 104 | <SetProperty |
| 105 | Id="NDKillProcess" |
| 106 | Value=""[WindowsFolder]System32\taskkill.exe" /T /F /IM netdata.exe" |
| 107 | Before="NDKillProcess" |
| 108 | Sequence="execute" |
| 109 | /> |
| 110 | <CustomAction |
| 111 | Id="NDKillProcess" |
| 112 | BinaryRef="Wix4UtilCA_$(sys.BUILDARCHSHORT)" |
| 113 | DllEntry="WixQuietExec" |
| 114 | Execute="deferred" |
| 115 | Return="ignore" |
| 116 | Impersonate="no" |
| 117 | /> |
| 118 | |
| 119 | <SetProperty |
| 120 | Id="NDConfigureServiceRecovery" |
| 121 | Value=""[WindowsFolder]System32\sc.exe" failureflag "netdata" 1" |
| 122 | Before="NDConfigureServiceRecovery" |
| 123 | Sequence="execute" |
| 124 | /> |
| 125 | <CustomAction |
| 126 | Id="NDConfigureServiceRecovery" |
| 127 | BinaryRef="Wix4UtilCA_$(sys.BUILDARCHSHORT)" |
| 128 | DllEntry="WixQuietExec" |
| 129 | Execute="deferred" |
| 130 | Return="ignore" |
| 131 | Impersonate="no" |
| 132 | /> |
| 133 | |
| 134 | <SetProperty |
| 135 | Id="NDStopDriverSrv" |
| 136 | Value=""[WindowsFolder]System32\sc.exe" stop "NetdataDriver"" |
| 137 | Before="NDConfigureServiceRecovery" |
| 138 | Sequence="execute" |
| 139 | /> |
| 140 | <CustomAction |
| 141 | Id="NDStopDriverSrv" |
| 142 | BinaryRef="Wix4UtilCA_$(sys.BUILDARCHSHORT)" |
| 143 | DllEntry="WixQuietExec" |
| 144 | Execute="deferred" |
| 145 | Return="ignore" |
| 146 | Impersonate="no" |
| 147 | /> |
| 148 | |
| 149 | <SetProperty |
| 150 | Id="NDRemoveDriverSrv" |
| 151 | Value=""[WindowsFolder]System32\sc.exe" delete "NetdataDriver"" |
| 152 | Before="NDConfigureServiceRecovery" |
| 153 | Sequence="execute" |
| 154 | /> |
| 155 | <CustomAction |
| 156 | Id="NDRemoveDriverSrv" |
| 157 | BinaryRef="Wix4UtilCA_$(sys.BUILDARCHSHORT)" |
| 158 | DllEntry="WixQuietExec" |
| 159 | Execute="deferred" |
| 160 | Return="ignore" |
| 161 | Impersonate="no" |
| 162 | /> |
| 163 | |
| 164 | <InstallExecuteSequence> |
| 165 | <Custom Action="NDConfigureServiceRecovery" After="InstallServices" Condition="NOT REMOVE" /> |
| 166 | |
| 167 | <Custom Action="NDKillProcess" Before="RemoveFiles" /> |
| 168 | <Custom Action="NDStopDriverSrv" After="NDKillProcess" /> |
| 169 | <Custom Action="NDRemoveDriverSrv" After="RemoveFiles" /> |
| 170 | </InstallExecuteSequence> |
| 171 | </Package> |
| 172 | |
| 173 | <Fragment> |
| 174 | <UI> |
| 175 | <ProgressText Action="NDKillProcess" Message="Stopping Netdata service before update..." /> |
| 176 | <ProgressText Action="NDStopDriverSrv" Message="Stopping Netdata driver service..." /> |
| 177 | <ProgressText Action="NDRemoveDriverSrv" Message="Removing Netdata driver service..." /> |
| 178 | </UI> |
| 179 | |
| 180 | <StandardDirectory Id="System64Folder"> |
| 181 | <Directory Id="DRIVERDIR" Name="drivers" /> |
| 182 | </StandardDirectory> |
| 183 | |
| 184 | <StandardDirectory Id="WindowsFolder"> |
| 185 | <Directory Id="INFDIR" Name="INF" /> |
| 186 | </StandardDirectory> |
| 187 | |
| 188 | <!-- All the files except for the ones we need to handle specially --> |
| 189 | <ComponentGroup Id="NetdataComponents" Directory="INSTALLFOLDER"> |
| 190 | <Files Include="C:\msys64\opt\netdata\**"> |
| 191 | <Exclude Files="C:\msys64\opt\netdata\usr\bin\netdata.exe" /> |
| 192 | <Exclude Files="C:\msys64\opt\netdata\usr\bin\wevt_netdata_manifest.xml" /> |
| 193 | <Exclude Files="C:\msys64\opt\netdata\usr\bin\wevt_netdata.dll" /> |
| 194 | <Exclude Files="C:\msys64\opt\netdata\usr\bin\netdata_driver.sys" /> |
| 195 | <Exclude Files="C:\msys64\opt\netdata\usr\bin\netdata_driver.inf" /> |
| 196 | </Files> |
| 197 | </ComponentGroup> |
| 198 | |
| 199 | <Component Id="NetdataVarCache" Directory="VARCACHEDIR" Guid="a41bc888-60d4-4d99-bb4f-da92614a8f72"> |
| 200 | <CreateFolder /> |
| 201 | </Component> |
| 202 | |
| 203 | <Component Id="NetdataVarLib" Directory="VARLIBDIR" Guid="c72d7ea8-c848-46c4-a983-589044f2eec9"> |
| 204 | <CreateFolder /> |
| 205 | </Component> |
| 206 | |
| 207 | <Component Id="NetdataVarLibNetdata" Directory="VARLIBDIRNETDATA" Guid="e3a7ad51-4387-466b-b611-cf1ae8d72986"> |
| 208 | <CreateFolder /> |
| 209 | </Component> |
| 210 | |
| 211 | <Component Id="NetdataDevShm" Directory="DEVSHMDIR" Guid="cbe39d53-a5c8-4375-9b25-e24df4d411be"> |
| 212 | <CreateFolder /> |
| 213 | </Component> |
| 214 | |
| 215 | <Component Id="NetdataDevMqueue" Directory="DEVMQUEUEDIR" Guid="f119d45f-b4d4-4918-bf05-89ee88be951a"> |
| 216 | <CreateFolder /> |
| 217 | </Component> |
| 218 | |
| 219 | <Component Id="NetdataTmp" Directory="TMPDIR" Guid="19247d2f-0f9d-4891-a3b0-ffc208d8d878"> |
| 220 | <CreateFolder /> |
| 221 | </Component> |
| 222 | |
| 223 | <Component Id="NetdataHome" Directory="HOMEDIR" Guid="13056229-7734-45ac-a982-572fa99f8e72"> |
| 224 | <CreateFolder /> |
| 225 | </Component> |
| 226 | |
| 227 | <Component Id="NetdataEtcGo" Directory="ETCDIRNETDATAGO" Guid="9d9b7859-75c0-4119-b2fc-a704599a3157"> |
| 228 | <CreateFolder /> |
| 229 | </Component> |
| 230 | |
| 231 | <Component Id="NetdataEtcHealth" Directory="ETCDIRNETDATAHEALTH" Guid="177b08a0-7bb6-4878-9bcf-c68642c1aa23"> |
| 232 | <CreateFolder /> |
| 233 | </Component> |
| 234 | |
| 235 | <Component Id="NetdataEtcPython" Directory="ETCDIRNETDATAPYTHON" Guid="9f4f1e99-47e1-4d88-8836-c02a98d30056"> |
| 236 | <CreateFolder /> |
| 237 | </Component> |
| 238 | |
| 239 | <Component Id="NetdataEtcStatsd" Directory="ETCDIRNETDATASTATSD" Guid="5f53221b-691f-4026-8396-52c6b2ac025f"> |
| 240 | <CreateFolder /> |
| 241 | </Component> |
| 242 | |
| 243 | <Component Id="NetdataRoot" Directory="ROOTDIR" Guid="5f0b7def-c4e6-417a-a5ae-b6f9c4aff14e"> |
| 244 | <CreateFolder /> |
| 245 | </Component> |
| 246 | |
| 247 | <CustomAction Id="ClaimAgent" Directory="USRBINDIR" ExeCommand='[USRBINDIR]NetdataClaim.exe /T "[TOKEN]" /R "[ROOMS]" /U "[URL]" /I [INSECURE] /P "[PROXY]" /F "[INSTALLFOLDER]etc\netdata\claim.conf"' Execute="deferred" Return="ignore" Impersonate="no"/> |
| 248 | <InstallExecuteSequence> |
| 249 | <Custom Action="ClaimAgent" After="InstallFiles" /> |
| 250 | </InstallExecuteSequence> |
| 251 | |
| 252 | <!-- Add new files (stream.conf and netdata.conf) --> |
| 253 | <CustomAction Id="NDCreateNewFiles" Directory="USRLIBEXECNETDATADIR" ExeCommand='powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive -File "[USRLIBEXECNETDATADIR]\copy_files.ps1"' Execute="deferred" Return="ignore" Impersonate="no"/> |
| 254 | <InstallExecuteSequence> |
| 255 | <Custom Action="NDCreateNewFiles" Before="InstallFinalize" /> |
| 256 | </InstallExecuteSequence> |
| 257 | |
| 258 | <!-- Install wevt manifest/dll files --> |
| 259 | <ComponentGroup Id="WevtComponents" Directory="System64Folder"> |
| 260 | <File Id="WevtDll" Name="wevt_netdata.dll" Source="C:\msys64\opt\netdata\usr\bin\wevt_netdata.dll"> |
| 261 | </File> |
| 262 | |
| 263 | <File Id="WevtManifest" Name="wevt_netdata_manifest.xml" Source="C:\msys64\opt\netdata\usr\bin\wevt_netdata_manifest.xml"> |
| 264 | </File> |
| 265 | </ComponentGroup> |
| 266 | |
| 267 | <!-- Install netdata driver file --> |
| 268 | <FeatureGroup Id="NetdataDriver"> |
| 269 | <File Id="NetdataDrv" Name="netdata_driver.sys" Directory="DRIVERDIR" Source="C:\msys64\opt\netdata\usr\bin\netdata_driver.sys" Condition="NDDRVINST=1"> |
| 270 | </File> |
| 271 | <File Id="NetdataDrvInf" Name="netdata_driver.inf" Directory="INFDIR" Source="C:\msys64\opt\netdata\usr\bin\netdata_driver.inf" Condition="NDDRVINST=1"> |
| 272 | </File> |
| 273 | </FeatureGroup> |
| 274 | |
| 275 | <CustomAction Id="DllPermission" Directory="System64Folder" ExeCommand='[System64Folder]icacls.exe "[System64Folder]wevt_netdata.dll" /grant "NT SERVICE\EventLog":R' Execute="deferred" Return="ignore" Impersonate="no"/> |
| 276 | <InstallExecuteSequence> |
| 277 | <Custom Action="DllPermission" After="InstallFiles" /> |
| 278 | </InstallExecuteSequence> |
| 279 | |
| 280 | <CustomAction Id="InstallManifest" Directory="System64Folder" ExeCommand='[System64Folder]wevtutil.exe im "[System64Folder]wevt_netdata_manifest.xml" "/mf:[System64Folder]\wevt_netdata.dll" "/rf:[System64Folder]\wevt_netdata.dll"' Execute="deferred" Return="ignore" Impersonate="no"/> |
| 281 | <InstallExecuteSequence> |
| 282 | <Custom Action="InstallManifest" After="InstallFiles" /> |
| 283 | </InstallExecuteSequence> |
| 284 | |
| 285 | <Component Id="NetdataService" Directory="USRBINDIR"> |
| 286 | <File Id="netdata.exe" Source="C:\msys64\opt\netdata\usr\bin\netdata.exe" KeyPath="yes" /> |
| 287 | |
| 288 | <ServiceInstall Id="InstallService" |
| 289 | Name="Netdata" |
| 290 | DisplayName="Netdata Agent" |
| 291 | Description="Distributed, real-time, performance and health monitoring for systems and applications." |
| 292 | Type="ownProcess" |
| 293 | Interactive="no" |
| 294 | Start="auto" |
| 295 | ErrorControl="normal" |
| 296 | Vital="yes"> |
| 297 | |
| 298 | <ServiceConfig |
| 299 | DelayedAutoStart="yes" |
| 300 | OnInstall="yes" |
| 301 | OnReinstall="yes" /> |
| 302 | |
| 303 | <util:ServiceConfig |
| 304 | ResetPeriodInDays="0" |
| 305 | FirstFailureActionType="restart" |
| 306 | SecondFailureActionType="restart" |
| 307 | ThirdFailureActionType="restart" |
| 308 | RestartServiceDelayInSeconds="60" |
| 309 | /> |
| 310 | </ServiceInstall> |
| 311 | |
| 312 | <ServiceControl Id="StartService" Name="Netdata" Start="install" Wait="no" /> |
| 313 | <ServiceControl Id="StopService" Name="Netdata" Remove="uninstall" Stop="both" Wait="yes" /> |
| 314 | </Component> |
| 315 | </Fragment> |
| 316 | |
| 317 | <Fragment> |
| 318 | <UI Id="file FeatureTree_ViewLicense"> |
| 319 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
| 320 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
| 321 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
| 322 | |
| 323 | <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> |
| 324 | |
| 325 | <DialogRef Id="ErrorDlg" /> |
| 326 | <DialogRef Id="FatalError" /> |
| 327 | <DialogRef Id="FilesInUse" /> |
| 328 | <DialogRef Id="MsiRMFilesInUse" /> |
| 329 | <DialogRef Id="PrepareDlg" /> |
| 330 | <DialogRef Id="ProgressDlg" /> |
| 331 | <DialogRef Id="ResumeDlg" /> |
| 332 | <DialogRef Id="UserExit" /> |
| 333 | |
| 334 | <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" /> |
| 335 | <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication" Condition="WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed" /> |
| 336 | |
| 337 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="NDWarningDialog" Condition="NOT Installed" /> |
| 338 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" /> |
| 339 | |
| 340 | <Publish Dialog="NDWarningDialog" Control="Back" Event="NewDialog" Value="WelcomeDlg" /> |
| 341 | <Publish Dialog="NDWarningDialog" Control="Next" Event="NewDialog" Value="ViewLicenseDlg" /> |
| 342 | |
| 343 | <Publish Dialog="ViewLicenseDlg" Control="Back" Event="NewDialog" Value="NDWarningDialog" /> |
| 344 | <Publish Dialog="ViewLicenseDlg" Control="Next" Event="NewDialog" Value="NDComponentSelection" /> |
| 345 | |
| 346 | <Publish Dialog="NDComponentSelection" Control="Back" Event="NewDialog" Value="ViewLicenseDlg" /> |
| 347 | <Publish Dialog="NDComponentSelection" Control="Next" Event="NewDialog" Value="NDConfigDialog" /> |
| 348 | |
| 349 | <!-- We are hidden for while the directory to install netdata and forcing a default, because it is still necessary adjusts to test claim.conf in different directories --> |
| 350 | |
| 351 | <!-- Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="ViewLicenseDlg" /> |
| 352 | <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="NDConfigDialog" Order="20" /> |
| 353 | <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="10" /> |
| 354 | <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="10" /> |
| 355 | <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="20" / --> |
| 356 | |
| 357 | <Publish Dialog="NDConfigDialog" Control="Back" Event="NewDialog" Value="NDComponentSelection" /> |
| 358 | <Publish Dialog="NDConfigDialog" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 359 | |
| 360 | <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="NDConfigDialog" Order="1" Condition="NOT Installed OR WixUI_InstallMode = "Change"" /> |
| 361 | <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" /> |
| 362 | <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3" Condition="Installed AND PATCH" /> |
| 363 | <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg" /> |
| 364 | <Publish Dialog="MaintenanceTypeDlg" Control="ChangeButton" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 365 | <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 366 | <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 367 | <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg" /> |
| 368 | |
| 369 | <!-- Next lines have Primary Key dupplication avoiding binary to be generated --> |
| 370 | <!-- Handle files in use dialog elegantly> |
| 371 | <Publish Dialog="FilesInUse" Control="Retry" Event="EndDialog" Value="Retry" Order="1" /> |
| 372 | <Publish Dialog="FilesInUse" Control="Ignore" Event="EndDialog" Value="Ignore" Order="2" /> |
| 373 | <Publish Dialog="FilesInUse" Control="Exit" Event="EndDialog" Value="Exit" Order="3" / --> |
| 374 | |
| 375 | </UI> |
| 376 | |
| 377 | <UIRef Id="WixUI_Common" /> |
| 378 | </Fragment> |
| 379 | |
| 380 | <Fragment> |
| 381 | <UI> |
| 382 | <Dialog Id="ViewLicenseDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)"> |
| 383 | <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" /> |
| 384 | <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> |
| 385 | <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> |
| 386 | <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" /> |
| 387 | <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="Netdata on Windows End User License Agreement" /> |
| 388 | <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> |
| 389 | <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="I &Accept"> |
| 390 | <Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg" Condition="!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1" /> |
| 391 | </Control> |
| 392 | <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"> |
| 393 | <Publish Event="SpawnDialog" Value="CancelDlg" /> |
| 394 | </Control> |
| 395 | <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="158" Sunken="yes" TabSkip="no"> |
| 396 | <Text SourceFile="eula.rtf" /> |
| 397 | </Control> |
| 398 | </Dialog> |
| 399 | </UI> |
| 400 | </Fragment> |
| 401 | |
| 402 | <Fragment> |
| 403 | <Property Id="OS_HAS_FILE"> |
| 404 | <!-- Our variables are not defined during startup so we have to use this --> |
| 405 | <DirectorySearch Id="NetCoreDirectoryFoundx64" Path="C:\Program Files\Netdata\etc\netdata\"> |
| 406 | <FileSearch Name="claim.conf" /> |
| 407 | </DirectorySearch> |
| 408 | </Property> |
| 409 | |
| 410 | <UI> |
| 411 | <Dialog Id="NDConfigDialog" Width="370" Height="270" Title="Netdata Cloud"> |
| 412 | <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" /> |
| 413 | <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> |
| 414 | <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> |
| 415 | <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." /> |
| 416 | <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="Connect to the Cloud" /> |
| 417 | |
| 418 | <Control Id="WarningLabel" Type="Text" X="10" Y="60" Width="350" Height="15" Text="Agent already claimed! Click Next." HideCondition="NOT OS_HAS_FILE" /> |
| 419 | |
| 420 | <Control Id="TokenLabel" Type="Text" X="10" Y="100" Width="55" Height="15" Text="Claim Token:" HideCondition="OS_HAS_FILE" /> |
| 421 | <Control Id="Token" Type="Edit" X="65" Y="100" Width="290" Height="18" Property="TOKEN" Text="{135}" HideCondition="OS_HAS_FILE" /> |
| 422 | |
| 423 | <Control Id="RoomsLabel" Type="Text" X="10" Y="115" Width="55" Height="15" Text="Rooms ID(s):" HideCondition="OS_HAS_FILE" /> |
| 424 | <Control Id="Rooms" Type="Edit" X="65" Y="115" Width="290" Height="18" Property="ROOMS" HideCondition="OS_HAS_FILE" /> |
| 425 | |
| 426 | <Control Id="ProxyLabel" Type="Text" X="10" Y="130" Width="55" Height="15" Text="Proxy URL:" HideCondition="OS_HAS_FILE" /> |
| 427 | <Control Id="Proxy" Type="Edit" X="65" Y="130" Width="290" Height="18" Property="PROXY" HideCondition="OS_HAS_FILE" /> |
| 428 | |
| 429 | <Control Id="URLLabel" Type="Text" X="10" Y="145" Width="55" Height="15" Text="Cloud URL:" HideCondition="OS_HAS_FILE" /> |
| 430 | <Control Id="URL" Type="Edit" X="65" Y="145" Width="290" Height="18" Property="URL" HideCondition="OS_HAS_FILE" /> |
| 431 | |
| 432 | <Control Id="InsecureCheckbox" Type="CheckBox" X="10" Y="160" Width="290" Height="15" Property="INSECURE" CheckBoxValue="0" Text="Insecure" HideCondition="OS_HAS_FILE" /> |
| 433 | |
| 434 | <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> |
| 435 | <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" /> |
| 436 | <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"> |
| 437 | <Publish Event="SpawnDialog" Value="CancelDlg" /> |
| 438 | </Control> |
| 439 | </Dialog> |
| 440 | </UI> |
| 441 | |
| 442 | <UI> |
| 443 | <Dialog Id="NDWarningDialog" Width="370" Height="270" Title="Netdata on Windows"> |
| 444 | <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" /> |
| 445 | <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> |
| 446 | <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> |
| 447 | |
| 448 | <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="Restrictions" /> |
| 449 | |
| 450 | <Control Id="WarningLabel1" Type="Text" X="10" Y="60" Width="350" Height="15" Text="The Windows Agent is available for users with paid Netdata subscriptions." /> |
| 451 | <Control Id="WarningLabel2" Type="Text" X="10" Y="75" Width="350" Height="15" Text="Limitations for Free Users:" /> |
| 452 | <Control Id="WarningLabel3" Type="Text" X="18" Y="90" Width="350" Height="15" Text="- Standalone Agent: UI is locked — No local monitoring." /> |
| 453 | <Control Id="WarningLabel4" Type="Text" X="18" Y="105" Width="350" Height="15" Text="- Child Agent: No monitoring data in parent dashboard when streaming to a Linux-based" /> |
| 454 | <Control Id="WarningLabel5" Type="Text" X="23" Y="120" Width="350" Height="15" Text="Netdata parent." /> |
| 455 | |
| 456 | <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> |
| 457 | <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" /> |
| 458 | <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"> |
| 459 | <Publish Event="SpawnDialog" Value="CancelDlg" /> |
| 460 | </Control> |
| 461 | </Dialog> |
| 462 | </UI> |
| 463 | |
| 464 | <UI> |
| 465 | <Dialog Id="NDComponentSelection" Width="370" Height="270" Title="Netdata Feature"> |
| 466 | <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" /> |
| 467 | <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> |
| 468 | <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> |
| 469 | <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="Select additional features to install." /> |
| 470 | <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="Features" /> |
| 471 | |
| 472 | <Control Id="NDDriverCBX" Type="CheckBox" X="10" Y="60" Width="290" Height="15" Property="NDDRVINST" CheckBoxValue="1" Text="Netdata Driver: Hardware Metrics Collection." Disabled="no" /> |
| 473 | |
| 474 | <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> |
| 475 | <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" /> |
| 476 | <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"> |
| 477 | <Publish Event="SpawnDialog" Value="CancelDlg" /> |
| 478 | </Control> |
| 479 | </Dialog> |
| 480 | </UI> |
| 481 | |
| 482 | </Fragment> |
| 483 | </Wix> |