From 33cc102ca9e3833aec8d3325c698f23791add6f0 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 1 Nov 2011 13:21:45 +0100 Subject: [PATCH] Installer: Make SetEnvironmentVariable also available during uninstall This fixes the "Runtime Error (at 18:1292): Could not call proc." as reported by Pau Garcia i Quiles on the mailing list. Signed-off-by: Sebastian Schuberth --- share/WinGit/helpers.inc.iss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/WinGit/helpers.inc.iss b/share/WinGit/helpers.inc.iss index 2f9379ca..41180481 100644 --- a/share/WinGit/helpers.inc.iss +++ b/share/WinGit/helpers.inc.iss @@ -91,9 +91,9 @@ end; // Sets the contents of the specified environment variable for the current process. function SetEnvironmentVariable(lpName,lpValue:String):Boolean; #ifdef UNICODE -external 'SetEnvironmentVariableW@Kernel32.dll stdcall delayload setuponly'; +external 'SetEnvironmentVariableW@Kernel32.dll stdcall delayload'; #else -external 'SetEnvironmentVariableA@Kernel32.dll stdcall delayload setuponly'; +external 'SetEnvironmentVariableA@Kernel32.dll stdcall delayload'; #endif // Sets the environment variable "VarName" to the concatenation of "DirStrings" -- 2.11.4.GIT