Skip to content

Commit bec9bf8

Browse files
authored
agent: update windows installer to update windows path (#417)
* agent: update windows installer to update windows path * set keypath * guid
1 parent 6716484 commit bec9bf8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

cmd/agent_local/package/windows/Package.wxs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@
7878
<File Id="ak_cli"
7979
Source="$(env.ROOT)/bin/cli/ak.exe" />
8080
</Component>
81+
<Component Id="cli_path" Bitness="always64" Guid="b7367ded-3915-4c37-a468-5a58618e37fd">
82+
<Environment Id="PATH"
83+
Name="PATH"
84+
Value="[cli]"
85+
Permanent="yes"
86+
Part="last"
87+
Action="set"
88+
System="yes" />
89+
</Component>
8190
<Component Id="browser_support" Guid="e027d360-a9e1-4bd6-b168-1f56d1fcaf8f" Bitness="always64" Directory="browser_support">
8291
<File Id="ak_browser_support"
8392
Source="$(env.ROOT)/bin/browser_support/ak-browser-support.exe"
@@ -212,6 +221,13 @@
212221
Description="CLI to access applications and services.">
213222
<ComponentRef Id="cli" />
214223
</Feature>
224+
<Feature Id="cli_path"
225+
Title="Include CLI in PATH"
226+
Level="1"
227+
AllowAbsent="yes"
228+
Description="Update the system's PATH variable to enable easier access to the ak CLI.">
229+
<ComponentRef Id="cli_path" />
230+
</Feature>
215231
<Feature Id="browser_support"
216232
Title="Browser support"
217233
Level="1"

0 commit comments

Comments
 (0)