Skip to content

Commit

Permalink
feat: Make Windows dir admin only (#1841)
Browse files Browse the repository at this point in the history
* add permissions to product folder

* add guid

* add feature id
  • Loading branch information
dpaasman00 authored Sep 10, 2024
1 parent ac967d5 commit b0882b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions windows/templates/product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@

<Directory Id="$(var.Program_Files)">
<Directory Id="INSTALLDIR" Name="observIQ OpenTelemetry Collector">
<Component Id="ProductFolder" Guid="f8525e78-62c7-4665-81ad-f27e936edc88">
<CreateFolder>
<Permission User="Administrators" GenericAll="yes" />
<Permission User="Users" GenericAll="no" />
</CreateFolder>
</Component>
{{define "FILES"}}
{{range $f := .}}
<Component
Expand Down Expand Up @@ -268,6 +274,7 @@
{{range $i, $e := .Shortcuts}}
<ComponentRef Id="ApplicationShortcuts{{$i}}"/>
{{end}}
<ComponentRef Id="ProductFolder"/>
</Feature>

<UI>
Expand Down

0 comments on commit b0882b6

Please sign in to comment.