From efce592be4e5b20ab895abdc4dabf793f7afd30c Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 24 Sep 2004 12:58:43 +0000 Subject: [PATCH] use RegCreateKeyEx instead of RegCreateKey to hopefully solve the 64-bit Windows 2003 Server problem with WriteRegStr git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3661 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index 85005a35..eacaafdd 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -1166,7 +1166,7 @@ static int NSISCALL ExecuteEntry(entry *entry_) char *buf0=GetStringFromParm(0x02); char *buf1=GetStringFromParm(0x11); exec_error++; - if (RegCreateKey((HKEY)rootkey,buf1,&hKey) == ERROR_SUCCESS) + if (RegCreateKeyEx((HKEY)rootkey,buf1,0,0,REG_OPTION_NON_VOLATILE,KEY_SET_VALUE,0,&hKey,0) == ERROR_SUCCESS) { LPBYTE data = (LPBYTE) buf2; DWORD size = 0;