- Fixed uninstaller refusal to start when on the root directory (note that AllowRootDirInstall true is still required)

- Some touch ups regarding NSIS_CONFIG_VISIBLE_SUPPORT


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2896 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-09-10 16:39:06 +00:00
parent aa09b6bdb9
commit 9d7de707ea
5 changed files with 40 additions and 15 deletions

View file

@ -191,10 +191,12 @@ static int NSISCALL ExecuteEntry(entry *entry_)
Sleep(max(x,1));
}
break;
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
case EW_BRINGTOFRONT:
log_printf("BringToFront");
SetForegroundWindow(g_hwnd);
break;
#endif//NSIS_CONFIG_VISIBLE_SUPPORT
case EW_SETFLAG:
g_exec_flags.flags[parm0]=GetIntFromParm(1);
break;
@ -207,10 +209,12 @@ static int NSISCALL ExecuteEntry(entry *entry_)
case EW_GETFLAG:
myitoa(var0,g_exec_flags.flags[parm1]);
break;
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
case EW_CHDETAILSVIEW:
if (insthwndbutton) ShowWindow(insthwndbutton,parm1);
if (insthwnd) ShowWindow(insthwnd,parm0);
break;
#endif//NSIS_CONFIG_VISIBLE_SUPPORT
case EW_SETFILEATTRIBUTES: {
char *buf1=GetStringFromParm(-0x10);
log_printf3("SetFileAttributes: \"%s\":%08X",buf1,parm1);
@ -944,12 +948,16 @@ static int NSISCALL ExecuteEntry(entry *entry_)
{
void (*func)(HWND,int,char*,void*);
func=(void*)funke;
func(g_hwnd,NSIS_MAX_STRLEN,(char*)g_usrvars,
func(
g_hwnd,
NSIS_MAX_STRLEN,
(char*)g_usrvars,
#ifdef NSIS_SUPPORT_STACK
(void*)&g_st);
(void*)&g_st
#else
NULL);
#endif
NULL
#endif//NSIS_SUPPORT_STACK
);
}
}
else