Installshield keep installer window on top

In "On Before Move Data => OnBegin" section use set window position

SetWindowPos(GetWindowHandle( HWND_INSTALL ) , HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE) ;

On top of the rul script add the following. It may be already declared in windes.h.

#define SWP_NOSIZE 1
#define SWP_NOMOVE 2
#define HWND_TOPMOST -1

If you need to use it for dialogboxes use below code:

hwndDlg = CmdGetHwndDlg( "YourNameForThisDialog" );

SetWindowPos(hwndDlg, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);


Tags: Installshield, Top, Bring Front