diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index aaf9da70..653cecdd 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -1168,7 +1168,7 @@ static int NSISCALL ExecuteEntry(entry *entry_) int rootkey=parm0; char *buf3=process_string_fromparm_tobuf(0x31); exec_errorflag++; - if (parm3) + if (!parm3) { HKEY hKey; if (RegOpenKeyEx((HKEY)rootkey,buf3,0,KEY_ALL_ACCESS,&hKey) == ERROR_SUCCESS) diff --git a/Source/script.cpp b/Source/script.cpp index 3b394272..dcd446d7 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -3309,6 +3309,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char case TOK_DELETEREGKEY: { int a=1; + ent.offsets[3]=0; if (which_token==TOK_DELETEREGKEY) { ent.offsets[3]=1;