diff --git a/Contrib/Makensisw/makensisw.cpp b/Contrib/Makensisw/makensisw.cpp index 82370e90..a80e014f 100644 --- a/Contrib/Makensisw/makensisw.cpp +++ b/Contrib/Makensisw/makensisw.cpp @@ -128,6 +128,7 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { SendDlgItemMessage(hwndDlg,IDC_LOGWIN,WM_SETFONT,(WPARAM)hFont,0); SendDlgItemMessage(hwndDlg,IDC_LOGWIN,EM_SETBKGNDCOLOR,0,GetSysColor(COLOR_BTNFACE)); RestoreWindowPos(g_sdata.hwnd); + g_sdata.compressor = (NCOMPRESSOR)-1; RestoreCompressor(); CompileNSISScript(); return TRUE; diff --git a/Contrib/Makensisw/makensisw.h b/Contrib/Makensisw/makensisw.h index 321d7f27..d12de807 100644 --- a/Contrib/Makensisw/makensisw.h +++ b/Contrib/Makensisw/makensisw.h @@ -44,7 +44,7 @@ #define REGSEC HKEY_LOCAL_MACHINE #define REGKEY "Software\\NSIS" #define REGLOC "MakeNSISWPlacement" -#define REGCOMPRESSOR "Compressor" +#define REGCOMPRESSOR "MakeNSISWCompressor" #define REGDEFSUBKEY "Defines" #define REGDEFCOUNT "MakeNSISWDefinesCount" #define REGMRUSUBKEY "MRU" @@ -77,7 +77,7 @@ typedef enum { COMPRESSOR_DEFAULT, COMPRESSOR_ZLIB, COMPRESSOR_BZIP2, - COMPRESSOR_BEST + COMPRESSOR_BEST, } NCOMPRESSOR; // Extern Variables