0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 17:19:11 +00:00

Add Custom Actions (Installer) ()

This commit is contained in:
thiagoftsm 2024-11-19 21:46:39 +00:00 committed by GitHub
parent 5647f9f353
commit 8c6eb51ceb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,6 +104,16 @@
</File>
</ComponentGroup>
<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"/>
<InstallExecuteSequence>
<Custom Action="DllPermission" After="InstallFiles" />
</InstallExecuteSequence>
<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"/>
<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" />