summaryrefslogtreecommitdiffstats
path: root/packaging/windows/netdata.wxs.in
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows/netdata.wxs.in')
-rw-r--r--packaging/windows/netdata.wxs.in257
1 files changed, 257 insertions, 0 deletions
diff --git a/packaging/windows/netdata.wxs.in b/packaging/windows/netdata.wxs.in
new file mode 100644
index 00000000..44638a42
--- /dev/null
+++ b/packaging/windows/netdata.wxs.in
@@ -0,0 +1,257 @@
+<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" />
+
+ <Feature Id="Main">
+ <ComponentGroupRef Id="NetdataComponents" />
+ <ComponentRef Id="NetdataVarCache" />
+ <ComponentRef Id="NetdataVarLib" />
+ <ComponentGroupRef Id="WevtComponents" />
+ <ComponentRef Id="NetdataService" />
+ </Feature>
+
+ <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="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>
+ </StandardDirectory>
+
+ <Property Id="ETCNETDATACLAIMFILE">
+ <DirectorySearch Id="NetCoreDirectoryFoundx64" Path="[ETCDIRNETDATA]" >
+ <FileSearch Id="NetdataClaim" Name="claim.conf"/>
+ </DirectorySearch>
+ </Property>
+
+ <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>
+
+ <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"/>
+ <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>
+
+ <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" />
+ </Component>
+ </Fragment>
+
+ <Fragment>
+ <UI Id="FeatureTree_ViewLicense_X64">
+ <Publish Dialog="ViewLicenseDlg1" Control="Print" Event="DoAction" Value="WixUIPrintEula_X64" />
+ <Publish Dialog="ViewLicenseDlg2" Control="Print" Event="DoAction" Value="WixUIPrintEula_X64" />
+ </UI>
+
+ <UIRef Id="FeatureTree_ViewLicense" />
+ </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="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" Condition="NOT ETCNETDATACLAIMFILE" />
+ <Publish Dialog="ViewLicenseDlg2" Control="Next" Event="NewDialog" Value="NDConfigDialog" Condition="ETCNETDATACLAIMFILE" />
+
+ <Publish Dialog="NDConfigDialog" Control="Back" Event="NewDialog" Value="ViewLicenseDlg2" />
+ <Publish Dialog="NDConfigDialog" Control="Next" Event="NewDialog" Value="InstallDirDlg" />
+
+ <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="NDConfigDialog" />
+ <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" 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="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed OR WixUI_InstallMode = &quot;Change&quot;" />
+ <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="InstallDirDlg" />
+ <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 &amp;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 &amp;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>
+ <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="290" Height="15" Text="Agent already claimed? Click Next." />
+
+ <Control Id="TokenLabel" Type="Text" X="10" Y="90" Width="55" Height="15" Text="Claim Token:" />
+ <Control Id="Token" Type="Edit" X="65" Y="90" Width="290" Height="18" Property="TOKEN" />
+
+ <Control Id="RoomsLabel" Type="Text" X="10" Y="105" Width="55" Height="15" Text="Rooms ID(s):" />
+ <Control Id="Rooms" Type="Edit" X="65" Y="105" Width="290" Height="18" Property="ROOMS" />
+
+ <Control Id="ProxyLabel" Type="Text" X="10" Y="120" Width="55" Height="15" Text="Proxy URL:" />
+ <Control Id="Proxy" Type="Edit" X="65" Y="120" Width="290" Height="18" Property="PROXY" />
+
+ <Control Id="URLLabel" Type="Text" X="10" Y="135" Width="55" Height="15" Text="Cloud URL:" />
+ <Control Id="URL" Type="Edit" X="65" Y="135" Width="290" Height="18" Property="URL" />
+
+ <Control Id="InsecureCheckbox" Type="CheckBox" X="10" Y="150" Width="290" Height="15" Property="INSECURE" CheckBoxValue="0" Text="Insecure" />
+
+ <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>