Add Custom Actions (Installer) (#19041)
thiagoftsm committed
Nov 19, 2024 at 21:46 UTC
8c6eb51ceb54ddff9aa6fb803a2125338b621e43
1 file changed
+10
packaging/windows/netdata.wxs.in
+10
@@ -104,6 +104,16 @@
104
</File>
105
</ComponentGroup>
106
107
+ <CustomAction Id="DllPermission" Directory="System64Folder" ExeCommand='[System64Folder]icacls.exe "[System64Folder]wevt_netdata.dll" /grant "NT SERVICE\EventLog":R' Execute="deferred" Return="ignore" Impersonate="no"/>
108
+ <InstallExecuteSequence>
109
+ <Custom Action="DllPermission" After="InstallFiles" />
110
+ </InstallExecuteSequence>
111
+
112
+ <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"/>
113
+ <InstallExecuteSequence>
114
+ <Custom Action="InstallManifest" After="InstallFiles" />
115
+ </InstallExecuteSequence>
116
+
117
<Component Id="NetdataService" Directory="USRBINDIR">
118
<File Id="netdata.exe" Source="C:\msys64\opt\netdata\usr\bin\netdata.exe" KeyPath="yes" />
119