Skip to content

Commit

Permalink
set WASMER_CACHE_DIR to user profile cache
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Jul 19, 2021
1 parent 6cd570f commit 6851821
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/windows-installer/wasmer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ DisableWelcomePage=no
[Registry]
Root: HKCU; Subkey: "Environment"; ValueType:string; ValueName: "WASMER_DIR"; \
ValueData: "{app}"; Flags: preservestringtype
Root: HKCU; Subkey: "Environment"; ValueType:string; ValueName: "WASMER_CACHE_DIR"; \
ValueData: "{%USERPROFILE}\.wasmer\cache"; Flags: preservestringtype

[Files]
Source: "..\..\package\bin\*"; DestDir: "{app}\bin"
Expand All @@ -26,6 +28,9 @@ Source: "..\..\package\LICENSE"; DestDir: "{app}"
Source: "..\..\package\ATTRIBUTIONS"; DestDir: "{app}"
Source: "wax.cmd"; DestDir: "{app}\bin"

[Dirs]
Name: "{%USERPROFILE}\.wasmer"

[Code]
const EnvironmentKey = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';
Expand Down

0 comments on commit 6851821

Please sign in to comment.