@cryptotaxi247 / netdata-1 / commits / 8c6eb51ce

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 &quot;[System64Folder]wevt_netdata.dll&quot; /grant &quot;NT SERVICE\EventLog&quot;: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 &quot;[System64Folder]wevt_netdata_manifest.xml&quot; &quot;/mf:[System64Folder]\wevt_netdata.dll&quot; &quot;/rf:[System64Folder]\wevt_netdata.dll&quot;' 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