Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Installer: Make SetEnvironmentVariable also available during uninstall
Browse files Browse the repository at this point in the history
This fixes the "Runtime Error (at 18:1292): Could not call proc." as
reported by Pau Garcia i Quiles <pgquiles@elpauer.org> on the mailing
list.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
  • Loading branch information
sschuberth committed Nov 1, 2011
1 parent 350141a commit 33cc102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/WinGit/helpers.inc.iss
Expand Up @@ -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"
Expand Down

0 comments on commit 33cc102

Please sign in to comment.