From 163462f9ed47016fb23e1fbbf78683bc3f3c22ec Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 2 Jul 2020 17:13:49 -0700 Subject: [PATCH] Update wasmer.iss --- src/windows-installer/wasmer.iss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/windows-installer/wasmer.iss b/src/windows-installer/wasmer.iss index 5bdc10e9a69..f16458e1065 100644 --- a/src/windows-installer/wasmer.iss +++ b/src/windows-installer/wasmer.iss @@ -16,9 +16,9 @@ DisableWelcomePage=no [Registry] Root: HKCU; Subkey: "Environment"; ValueType:string; ValueName: "WASMER_DIR"; \ - ValueData: "{%USERPROFILE}\.wasmer"; Flags: preservestringtype + ValueData: "{app}"; Flags: preservestringtype Root: HKCU; Subkey: "Environment"; ValueType:string; ValueName: "WASMER_CACHE_DIR"; \ - ValueData: "{%USERPROFILE}\.wasmer\cache"; Flags: preservestringtype + ValueData: "{app}\cache"; Flags: preservestringtype [Files] Source: "..\..\package\bin\*"; DestDir: "{app}\bin" @@ -29,7 +29,7 @@ Source: "..\..\package\ATTRIBUTIONS"; DestDir: "{app}" Source: "wax.cmd"; DestDir: "{app}\bin" [Dirs] -Name: "{%USERPROFILE}\.wasmer" +Name: "{app}\cache" [Code] const EnvironmentKey = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment'; @@ -81,7 +81,7 @@ begin if CurStep = ssPostInstall then begin EnvAddPath(ExpandConstant('{app}') +'\bin'); - EnvAddPath(ExpandConstant('{%USERPROFILE}') +'\globals\wapm_packages\.bin'); + EnvAddPath(ExpandConstant('{app}') +'\globals\wapm_packages\.bin'); end end; @@ -90,6 +90,6 @@ begin if CurUninstallStep = usPostUninstall then begin EnvRemovePath(ExpandConstant('{app}') +'\bin'); - EnvAddPath(ExpandConstant('{%USERPROFILE}') +'\globals\wapm_packages\.bin'); + EnvAddPath(ExpandConstant('{app}') +'\globals\wapm_packages\.bin'); end end;