fixed bug #1766268 - $SMPROGRAMS incorrect on Windows 98
use shfolder.dll only on ME and for all users's $APPDATA for which it was introduced git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5237 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7d17167053
commit
b55ecee8cd
1 changed files with 7 additions and 1 deletions
|
@ -628,8 +628,14 @@ char * NSISCALL GetNSISString(char *outbuf, int strtab)
|
|||
LPITEMIDLIST idl;
|
||||
|
||||
int x = 2;
|
||||
DWORD ver = GetVersion();
|
||||
BOOL all_users_9x_capable = !(
|
||||
(ver & 0x80000000) && // 9x
|
||||
(LOWORD(ver) != 0x5A04) && // not ME
|
||||
(fldrs[2] != CSIDL_COMMON_APPDATA) // not all users's appdata
|
||||
);
|
||||
|
||||
if (g_exec_flags.all_user_var)
|
||||
if (g_exec_flags.all_user_var && all_users_9x_capable)
|
||||
{
|
||||
x = 4;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue