PDA

View Full Version : WinTB Library_2020_stripped version


ffmla
09-10-2020, 21:15
WinTB Library_2020_stripped version

WinTB library for inno setup based on David.D.Rocco

Sergey3695 build https://fileforums.com/showpost.php?p=488292&postcount=9 <<--For a stripped version this build preferred {There is no external dependencies}.


Wintb.dll v 0.1 (2020) -- Need Microsoft VC++ redistributable
Added Functions
; -- SetupPreview
; -- SetTaskBarProgressValue
; -- SetTaskBarProgressState

; -- SetTaskBarTitle
; -- SetTaskBarThumbnailTooltip

Wintb.dll v 0.2 (2020) From WinTB 2.1 by David.D.Rocco

; -- msvcr1XX.dll needed for this,If you are a gamer{Installing MS VC++ runtime will fix this} Then all fine like original WinTB 2.1 by David.D.Rocco...!
; -- Change log -- ;
; -- SetupPreview added,
; -- SetTaskBarProgressValue
; -- SetTaskBarProgressState
; -- SetTaskBarTitle
; -- SetTaskBarThumbnailTooltip
; -- SetTaskBarOverlayIcon

; -- TaskBarAddButton
; -- TaskBarCreateButtons
; -- TaskBarButtonEnabled
; -- TaskBarButtonToolTip
; -- TaskBarButtonImage
; -- Win7TaskBar10(),Win7TaskBar11(),Win7TaskBar12() & Win7TaskBar20() Removed.
; -- Huge Thanks to David.D.Rocco,Krinkels & sergey3695.

Tested in win 10 2004 build all ok.

Huge thanks to David.D.Rocco,sergey3695 & DiCaPrIo for WinTB codes

Please test this library

Cuttlas
09-10-2020, 23:07
The latest version of WinTB by David.D.Rocco was 2.1,
is this one a newer version than 2.1?

ffmla
10-10-2020, 00:36
The latest version of WinTB by David.D.Rocco was 2.1,
is this one a newer version than 2.1?
No it's not.
Only taskbar thumbnail preview added.

Cuttlas
10-10-2020, 00:53
No it's not.
Only taskbar thumbnail preview added.

But I think the taskbar thumbnail preview is currently available in WinTB 2.1

ffmla
10-10-2020, 01:36
^^
Available with some bugs in windows 10.

Cuttlas
10-10-2020, 13:53
When I use this in my project, it will get the setup open in the taskbar even after closing/finishing.

ffmla
11-10-2020, 02:40
When I use this in my project, it will get the setup open in the taskbar even after closing/finishing.
In my system it works well.
could you PM me your source code.:rolleyes:
i think the problem not in the WinTB.:cool:

Cuttlas
11-10-2020, 12:49
In my system it works well.
could you PM me your source code.:rolleyes:
i think the problem not in the WinTB.:cool:

I think If you use SetWindowLong function, you should call it in DeinitializeSetup section also,
You need to restore the original message handler before you unload the DLL that implements your custom handler.

It will solve the problem I told.

Sergey3695
13-10-2020, 05:44
WinTB (3.5 Kb DLL without msvcr110.dll) library for inno setup based on David.D.Rocco
p.s. look example

SetupPreview
SetTaskBarProgressValue
SetTaskBarProgressState
SetTaskBarTitle
SetTaskBarThumbnailTooltip
SetTaskBarOverlayIcon

Cesar82
13-10-2020, 09:47
@Sergey3695, your script example.
// need for SetTaskBar*
SetupHandle(FindWindowByClassName('TApplication')) ;
//
I don't know if this is the best way to get the handle of the taskbar button.
It may be possible to get the handle of another Inno Setup application if run at the same time (I'm not sure).

I think this is the most correct way to avoid getting the handle of another instance of the Inno Setup installer.


const
GWL_HWNDPARENT = (-8);

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

procedure InitializeWizard();
begin
ExtractTemporaryFile('wintb.dll');
// need for SetTaskBar*
SetupHandle(GetWindowLong(MainForm.Handle, GWL_HWNDPARENT));
//
//...

Sergey3695
13-10-2020, 11:31
I don't know if this is the best way to get the handle of the taskbar button.

I'm use Application.Handle (Enhanced Inno Setup Compiler).
GetWindowLong(MainForm.Handle, GWL_HWNDPARENT) or GetWindow(MainForm.Handle, 2) is your way :D
replaced on GetWindowLong(MainForm.Handle, GWL_HWNDPARENT) you right.

DiCaPrIo
13-10-2020, 15:39
SetupHandle(GetWindowLong(GetWindow(WizardForm.Han dle , 4), GWL_HWNDPARENT));

ffmla
20-10-2020, 10:08
^^Added to OP.
New Build added with existing code.
Wintb.dll v 0.2 (2020) From WinTB 2.1 by David.D.Rocco

; -- msvcr1XX.dll needed for this,If you are a gamer{Installing MS VC++ runtime will fix this} Then all fine like original WinTB 2.1 by David.D.Rocco...!
; -- Change log -- ;
; -- SetupPreview added,
; -- SetTaskBarProgressValue
; -- SetTaskBarProgressState
; -- SetTaskBarTitle
; -- SetTaskBarThumbnailTooltip
; -- SetTaskBarOverlayIcon

; -- TaskBarAddButton
; -- TaskBarCreateButtons
; -- TaskBarButtonEnabled
; -- TaskBarButtonToolTip
; -- TaskBarButtonImage
; -- Win7TaskBar10(),Win7TaskBar11(),Win7TaskBar12() & Win7TaskBar20() Removed.
; -- Huge Thanks to David.D.Rocco,Krinkels & sergey3695.:)

Sergey3695
31-10-2020, 05:27
New Build added. Deleted SetupHandle. Updated post.

Cuttlas
03-11-2020, 23:16
New Build added. Deleted SetupHandle. Updated post.

Do u mean the WinTB v0.2.rar in first POST?

Sergey3695
04-11-2020, 02:34
Do u mean the WinTB v0.2.rar in first POST?
https://fileforums.com/showpost.php?p=488292&postcount=9

ffmla
04-11-2020, 02:35
Do u mean the WinTB v0.2.rar in first POST?
No,

Click the link of preferred build by Sergey.or search for the post number #9 in the thread itself.