At the and I compile latest snapshot NSIS without installing new SDK, 10ks 😁 for the changes which made it possible:
👍
//---code:
#ifndef DS_SHELLFONT
#define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)
#endif
//---code:
👍
...
one last thing, I changed one line in file "util.c", because "INVALID_FILE_ATTRIBUTES " return undefined error
//--- original code in util.c:
d=GetFileAttributes(dir);
if (d == INVALID_FILE_ATTRIBUTES || !(d&FILE_ATTRIBUTE_DIRECTORY)) dir=0;
//--- original code in util.c:
with
//--- changed code in util.c:
d=GetFileAttributes(dir);
if (d == 0xffffffff || !(d&FILE_ATTRIBUTE_DIRECTORY)) dir=0;
//--- changed code in util.c:
because in old MSDN and SDK:
//---------- from old: Platform SDK: Files and I/O
GetFileAttributes
...
If the function succeeds, the return value contains the attributes of the specified file or directory.
If the function fails, the return value is 0xffffffff. To get extended error information, call GetLastError.
...
//---------- from old: Platform SDK: Files and I/O
and i think that INVALID_FILE_ATTRIBUTES is macro name of 0xffffffff in new SDK, some kind of:
//---code:
#define INVALID_FILE_ATTRIBUTES 0xffffffff
/---code:
May be some piece of code, same solution as DS_SHELLFONT
in "util.c" will be usefull for someone who have not installled SDK yet(or crazy slow SDK downloading like me)
and want to compile NSIS:
//--- offered code:
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES 0xffffffff
#endif
//--- offered code:
I hope "INVALID_FILE_ATTRIBUTES" is same as 0xffffffff, cant be shure untill new SDK arrived from microsoft.com ;-(,
...