From 68518213bc57b6a2b94dedea1cad96d938a72914 Mon Sep 17 00:00:00 2001 From: yukang Date: Mon, 19 Jul 2021 20:39:47 +0800 Subject: [PATCH] set WASMER_CACHE_DIR to user profile cache --- scripts/windows-installer/wasmer.iss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/windows-installer/wasmer.iss b/scripts/windows-installer/wasmer.iss index b6b0f6c6711..753c259ba6c 100644 --- a/scripts/windows-installer/wasmer.iss +++ b/scripts/windows-installer/wasmer.iss @@ -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" @@ -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';