Force a non-x86 ProgramFiles path
This commit is contained in:
@ -86,7 +86,6 @@ public class WinLauncher {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static File selectHome() { //throws Exception {
|
private static File selectHome() { //throws Exception {
|
||||||
if (SystemVersion.isWindows()) {
|
if (SystemVersion.isWindows()) {
|
||||||
File home = new File(System.getProperty("user.home"));
|
File home = new File(System.getProperty("user.home"));
|
||||||
|
@ -416,5 +416,11 @@ SectionEnd
|
|||||||
|
|
||||||
Function LaunchLink
|
Function LaunchLink
|
||||||
#ExecShell "" "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"
|
#ExecShell "" "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"
|
||||||
Exec "$INSTDIR\i2pbrowser.bat"
|
System::Call 'Kernel32::SetEnvironmentVariable(t, t)i ("ProgramFiles", "$PROGRAMFILES64").r0'
|
||||||
|
StrCmp $0 0 error
|
||||||
|
Exec "$INSTDIR\i2pbrowser.bat"
|
||||||
|
Goto done
|
||||||
|
error:
|
||||||
|
MessageBox MB_OK "Can't set environment variable"
|
||||||
|
done:
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
Reference in New Issue
Block a user