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
This commit is contained in:
parent
28c2e72073
commit
efce592be4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue