Skip to content

Commit

Permalink
Add Custom Actions (Installer) (netdata#19041)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoftsm authored Nov 19, 2024
1 parent 5647f9f commit 8c6eb51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packaging/windows/netdata.wxs.in
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Expand Down

0 comments on commit 8c6eb51

Please sign in to comment.