123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <!-- SPDX-License-Identifier: GPL-3.0-or-later -->
- <Wix
- xmlns="http://wixtoolset.org/schemas/v4/wxs"
- xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"
- xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
- <Package Name="Netdata Agent"
- Manufacturer="Netdata Inc."
- Version="@CMAKE_PROJECT_VERSION@"
- UpgradeCode="0d949b90-a54d-4aae-9616-e15fbc410530">
- <Media Id="1" Cabinet="netdata" EmbedCab="yes" />
- <MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="yes" />
- <Icon Id="NetdataIcon.ico" SourceFile="NetdataWhite.ico"/>
- <Property Id="ARPPRODUCTICON" Value="NetdataIcon.ico" />
- <Property Id="TOKEN" Secure="yes" />
- <Property Id="ROOMS" Secure="yes" />
- <Property Id="INSECURE" Secure="yes" />
- <Property Id="PROXY" Secure="yes" />
- <Property Id="URL" Value="https://app.netdata.cloud" />
- <Property Id="GPLLICENSE" Value="0" />
- <Property Id="CLOUDUILICENSE" Value="0" />
- <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
- <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Access Netdata dashboard" />
- <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
- <Property Id="WixShellExecTarget" Value="http://localhost:19999" />
- <CustomAction Id="LaunchApplication" DllEntry="WixShellExec" Impersonate="yes" BinaryRef="Wix4UtilCA_X86" />
- <Feature Id="Main">
- <ComponentGroupRef Id="NetdataComponents" />
- <ComponentRef Id="NetdataVarCache" />
- <ComponentRef Id="NetdataDevShm" />
- <ComponentRef Id="NetdataDevMqueue" />
- <ComponentRef Id="NetdataTmp" />
- <ComponentRef Id="NetdataHome" />
- <ComponentRef Id="NetdataRoot" />
- <ComponentRef Id="NetdataVarLib" />
- <ComponentGroupRef Id="WevtComponents" />
- <ComponentRef Id="NetdataService" />
- </Feature>
- <StandardDirectory Id="ProgramFiles64Folder">
- <Directory Id="INSTALLFOLDER" Name="Netdata">
- <Directory Id="USRDIR" Name="usr">
- <Directory Id="USRBINDIR" Name="bin" />
- </Directory>
- <Directory Id="VARDIR" Name="var">
- <Directory Id="VARCACHEDIR" Name="cache" />
- <Directory Id="VARLIBDIR" Name="lib" />
- </Directory>
- <Directory Id="ETCDIR" Name="etc">
- <Directory Id="ETCDIRNETDATA" Name="netdata" />
- </Directory>
- <Directory Id="DEVDIR" Name="dev">
- <Directory Id="DEVSHMDIR" Name="shm" />
- <Directory Id="DEVMQUEUEDIR" Name="mqueue" />
- </Directory>
- <Directory Id="TMPDIR" Name="tmp">
- </Directory>
- <Directory Id="HOMEDIR" Name="home">
- </Directory>
- <Directory Id="ROOTDIR" Name="root">
- </Directory>
- </Directory>
- </StandardDirectory>
- <UI Id="FeatureTree_ViewLicense_X64">
- </UI>
- <UIRef Id="FeatureTree_ViewLicense" />
- <WixVariable Id="WixUIBannerBmp" Value="Top.bmp" />
- <WixVariable Id="WixUIDialogBmp" Value="BackGround.bmp" />
- <UIRef Id="WixUI_ErrorProgressText" />
- <ui:WixUI Id="FeatureTree_ViewLicense" />
- </Package>
- <Fragment>
- <StandardDirectory Id="System64Folder">
- </StandardDirectory>
- <!-- All the files except for the ones we need to handle specially -->
- <ComponentGroup Id="NetdataComponents" Directory="INSTALLFOLDER">
- <Files Include="C:\msys64\opt\netdata\**">
- <Exclude Files="C:\msys64\opt\netdata\usr\bin\netdata.exe" />
- <Exclude Files="C:\msys64\opt\netdata\usr\bin\wevt_netdata_manifest.xml" />
- <Exclude Files="C:\msys64\opt\netdata\usr\bin\wevt_netdata.dll" />
- </Files>
- </ComponentGroup>
- <Component Id="NetdataVarCache" Directory="VARCACHEDIR" Guid="a41bc888-60d4-4d99-bb4f-da92614a8f72">
- <CreateFolder />
- </Component>
- <Component Id="NetdataVarLib" Directory="VARLIBDIR" Guid="c72d7ea8-c848-46c4-a983-589044f2eec9">
- <CreateFolder />
- </Component>
- <Component Id="NetdataDevShm" Directory="DEVSHMDIR" Guid="cbe39d53-a5c8-4375-9b25-e24df4d411be">
- <CreateFolder />
- </Component>
- <Component Id="NetdataDevMqueue" Directory="DEVMQUEUEDIR" Guid="f119d45f-b4d4-4918-bf05-89ee88be951a">
- <CreateFolder />
- </Component>
- <Component Id="NetdataTmp" Directory="TMPDIR" Guid="19247d2f-0f9d-4891-a3b0-ffc208d8d878">
- <CreateFolder />
- </Component>
- <Component Id="NetdataHome" Directory="HOMEDIR" Guid="13056229-7734-45ac-a982-572fa99f8e72">
- <CreateFolder />
- </Component>
- <Component Id="NetdataRoot" Directory="ROOTDIR" Guid="5f0b7def-c4e6-417a-a5ae-b6f9c4aff14e">
- <CreateFolder />
- </Component>
- <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"/>
- <InstallExecuteSequence>
- <Custom Action="ClaimAgent" After="InstallFiles" />
- </InstallExecuteSequence>
- <!-- Install wevt manifest/dll files -->
- <ComponentGroup Id="WevtComponents" Directory="System64Folder">
- <File Id="WevtDll" Name="wevt_netdata.dll" Source="C:\msys64\opt\netdata\usr\bin\wevt_netdata.dll">
- </File>
- <File Id="WevtManifest" Name="wevt_netdata_manifest.xml" Source="C:\msys64\opt\netdata\usr\bin\wevt_netdata_manifest.xml">
- </File>
- </ComponentGroup>
- <CustomAction Id="DllPermission" Directory="System64Folder" ExeCommand='[System64Folder]icacls.exe "[System64Folder]wevt_netdata.dll" /grant "NT SERVICE\EventLog":R' Execute="deferred" Return="ignore" Impersonate="no"/>
- <InstallExecuteSequence>
- <Custom Action="DllPermission" After="InstallFiles" />
- </InstallExecuteSequence>
- <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"/>
- <InstallExecuteSequence>
- <Custom Action="InstallManifest" After="InstallFiles" />
- </InstallExecuteSequence>
- <Component Id="NetdataService" Directory="USRBINDIR">
- <File Id="netdata.exe" Source="C:\msys64\opt\netdata\usr\bin\netdata.exe" KeyPath="yes" />
- <ServiceInstall Id="InstallService"
- Name="Netdata"
- DisplayName="Netdata Agent"
- Description="Distributed, real-time, performance and health monitoring for systems and applications."
- Type="ownProcess"
- Start="auto"
- ErrorControl="normal" />
- <ServiceControl Id="ControlService"
- Start="install"
- Stop="both"
- Remove="uninstall"
- Name="Netdata"
- Wait="yes" />
- <RegistryValue Root="HKLM"
- Key="System\CurrentControlSet\Services\Netdata"
- Name="DelayedAutoStart"
- Value="1"
- Type="integer" />
- </Component>
- </Fragment>
- <Fragment>
- <UI Id="file FeatureTree_ViewLicense">
- <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
- <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
- <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
- <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
- <DialogRef Id="ErrorDlg" />
- <DialogRef Id="FatalError" />
- <DialogRef Id="FilesInUse" />
- <DialogRef Id="MsiRMFilesInUse" />
- <DialogRef Id="PrepareDlg" />
- <DialogRef Id="ProgressDlg" />
- <DialogRef Id="ResumeDlg" />
- <DialogRef Id="UserExit" />
- <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" />
- <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication" Condition="WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed" />
- <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="ViewLicenseDlg1" Condition="NOT Installed" />
- <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" />
- <Publish Dialog="ViewLicenseDlg1" Control="Back" Event="NewDialog" Value="WelcomeDlg" />
- <Publish Dialog="ViewLicenseDlg1" Control="Next" Event="NewDialog" Value="ViewLicenseDlg2" />
- <Publish Dialog="ViewLicenseDlg2" Control="Back" Event="NewDialog" Value="ViewLicenseDlg1" />
- <Publish Dialog="ViewLicenseDlg2" Control="Next" Event="NewDialog" Value="NDConfigDialog" />
- <!-- 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 -->
- <!-- Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="ViewLicenseDlg2" />
- <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="NDConfigDialog" Order="20" />
- <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="10" />
- <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="10" />
- <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="20" / -->
- <Publish Dialog="NDConfigDialog" Control="Back" Event="NewDialog" Value="ViewLicenseDlg2" />
- <Publish Dialog="NDConfigDialog" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" />
- <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="NDConfigDialog" Order="1" Condition="NOT Installed OR WixUI_InstallMode = "Change"" />
- <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" />
- <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3" Condition="Installed AND PATCH" />
- <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg" />
- <Publish Dialog="MaintenanceTypeDlg" Control="ChangeButton" Event="NewDialog" Value="VerifyReadyDlg" />
- <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg" />
- <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg" />
- <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg" />
- </UI>
- <UIRef Id="WixUI_Common" />
- </Fragment>
- <Fragment>
- <UI>
- <Dialog Id="ViewLicenseDlg1" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
- <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
- <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
- <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
- <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />
- <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." />
- <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
- <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="I &Accept">
- <Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg" Condition="!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1" />
- </Control>
- <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
- <Publish Event="SpawnDialog" Value="CancelDlg" />
- </Control>
- <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="158" Sunken="yes" TabSkip="no">
- <Text SourceFile="ncul1.rtf" />
- </Control>
- </Dialog>
- </UI>
- </Fragment>
- <Fragment>
- <UI>
- <Dialog Id="ViewLicenseDlg2" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
- <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
- <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
- <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
- <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />
- <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." />
- <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
- <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="I &Accept">
- <Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg" Condition="!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1" />
- </Control>
- <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
- <Publish Event="SpawnDialog" Value="CancelDlg" />
- </Control>
- <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="158" Sunken="yes" TabSkip="no">
- <Text SourceFile="gpl-3.0.rtf" />
- </Control>
- </Dialog>
- </UI>
- </Fragment>
- <Fragment>
- <Property Id="OS_HAS_FILE">
- <!-- Our variables are not defined during startup so we have to use this -->
- <DirectorySearch Id="NetCoreDirectoryFoundx64" Path="C:\Program Files\Netdata\etc\netdata\">
- <FileSearch Name="claim.conf" />
- </DirectorySearch>
- </Property>
- <UI>
- <Dialog Id="NDConfigDialog" Width="370" Height="270" Title="Netdata Cloud">
- <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
- <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
- <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
- <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." />
- <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="Connect to the Cloud" />
- <Control Id="WarningLabel" Type="Text" X="10" Y="60" Width="350" Height="15" Text="Agent already claimed! Click Next." HideCondition="NOT OS_HAS_FILE" />
- <Control Id="TokenLabel" Type="Text" X="10" Y="100" Width="55" Height="15" Text="Claim Token:" HideCondition="OS_HAS_FILE" />
- <Control Id="Token" Type="Edit" X="65" Y="100" Width="290" Height="18" Property="TOKEN" Text="{135}" HideCondition="OS_HAS_FILE" />
-
- <Control Id="RoomsLabel" Type="Text" X="10" Y="115" Width="55" Height="15" Text="Rooms ID(s):" HideCondition="OS_HAS_FILE" />
- <Control Id="Rooms" Type="Edit" X="65" Y="115" Width="290" Height="18" Property="ROOMS" HideCondition="OS_HAS_FILE" />
-
- <Control Id="ProxyLabel" Type="Text" X="10" Y="130" Width="55" Height="15" Text="Proxy URL:" HideCondition="OS_HAS_FILE" />
- <Control Id="Proxy" Type="Edit" X="65" Y="130" Width="290" Height="18" Property="PROXY" HideCondition="OS_HAS_FILE" />
-
- <Control Id="URLLabel" Type="Text" X="10" Y="145" Width="55" Height="15" Text="Cloud URL:" HideCondition="OS_HAS_FILE" />
- <Control Id="URL" Type="Edit" X="65" Y="145" Width="290" Height="18" Property="URL" HideCondition="OS_HAS_FILE" />
- <Control Id="InsecureCheckbox" Type="CheckBox" X="10" Y="160" Width="290" Height="15" Property="INSECURE" CheckBoxValue="0" Text="Insecure" HideCondition="OS_HAS_FILE" />
-
- <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
- <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" />
- <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
- <Publish Event="SpawnDialog" Value="CancelDlg" />
- </Control>
- </Dialog>
- </UI>
- </Fragment>
- </Wix>
|