PDA

View Full Version : How to Hide Inno Setup in Taskbar?


Gehrman
29-02-2020, 06:52
Please Help
https://www.upload.ee/image/11202746/2020-02-29_181838.jpg

shazzla
29-02-2020, 07:26
I dont think its possible by innosetup.

Oh. My mistake ? :)

Cesar82
29-02-2020, 22:08
try


[ code]
const
GWL_HWNDPARENT = (-8);
GWL_EXSTYLE = (-20);
WS_EX_TOOLWINDOW = $80;

function GetWindowLong(hWnd, nIndex: Integer): Longint;
external 'GetWindowLongW@user32 stdcall delayload';

function SetWindowLong(hWnd: HWND; nIndex: Integer; dwNewLong: Longint): Longint;
external '[email protected] stdcall delayload';

function ShowWindow(hWnd: Integer; uType: Integer): Integer;
external '[email protected] stdcall delayload';

procedure InitializeWizard();
var
hWindow: HWND;
begin
hWindow := GetWindowLong(MainForm.Handle, GWL_HWNDPARENT);
SetWindowLong(hWindow, GWL_EXSTYLE, GetWindowLong(hWindow, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);
ShowWindow(hWindow, SW_HIDE);
end;