mirror of
https://github.com/netdata/netdata.git
synced 2024-11-21 15:28:05 +00:00
271 lines
16 KiB
Plaintext
271 lines
16 KiB
Plaintext
<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="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>
|
|
</StandardDirectory>
|
|
|
|
<!-- Property Id="OS_HAS_FILE" Secure="yes">
|
|
<DirectorySearch Id="NetCoreDirectoryFoundx64" Path="[ETCDIRNETDATA]" AssignToProperty="yes" >
|
|
<FileSearch Id="NetdataClaim" Name="claim.conf"/>
|
|
</DirectorySearch>
|
|
</Property -->
|
|
|
|
<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>
|
|
|
|
<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" />
|
|
</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="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 &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>
|
|
<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="WarningLabelOld" Type="Text" X="10" Y="60" Width="350" Height="15" Text="Agent already claimed? Click Next." />
|
|
|
|
<Control Id="TokenLabel" Type="Text" X="10" Y="100" Width="55" Height="15" Text="Claim Token:" />
|
|
<Control Id="Token" Type="Edit" X="65" Y="100" Width="290" Height="18" Property="TOKEN" Text="{135}" />
|
|
|
|
<Control Id="RoomsLabel" Type="Text" X="10" Y="115" Width="55" Height="15" Text="Rooms ID(s):" />
|
|
<Control Id="Rooms" Type="Edit" X="65" Y="115" Width="290" Height="18" Property="ROOMS" />
|
|
|
|
<Control Id="ProxyLabel" Type="Text" X="10" Y="130" Width="55" Height="15" Text="Proxy URL:" />
|
|
<Control Id="Proxy" Type="Edit" X="65" Y="130" Width="290" Height="18" Property="PROXY" />
|
|
|
|
<Control Id="URLLabel" Type="Text" X="10" Y="145" Width="55" Height="15" Text="Cloud URL:" />
|
|
<Control Id="URL" Type="Edit" X="65" Y="145" Width="290" Height="18" Property="URL" />
|
|
|
|
<Control Id="InsecureCheckbox" Type="CheckBox" X="10" Y="160" 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>
|
|
|