FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   WinTB Library_2020_stripped version (https://fileforums.com/showthread.php?t=103871)

ffmla 09-10-2020 21:15

WinTB Library_2020_stripped version
 
2 Attachment(s)
WinTB Library_2020_stripped version

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

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

Code:

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

Quote:

Originally Posted by Cuttlas (Post 488240)
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

Quote:

Originally Posted by ffmla (Post 488244)
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

Strange things
 
Quote:

Originally Posted by Cuttlas (Post 488252)
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

Quote:

Originally Posted by ffmla (Post 488264)
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

1 Attachment(s)
WinTB (3.5 Kb DLL without msvcr110.dll) library for inno setup based on David.D.Rocco
p.s. look example
Quote:

SetupPreview
SetTaskBarProgressValue
SetTaskBarProgressState
SetTaskBarTitle
SetTaskBarThumbnailTooltip
SetTaskBarOverlayIcon

Cesar82 13-10-2020 09:47

@Sergey3695, your script example.
Quote:

// 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.


Code:

const
  GWL_HWNDPARENT = (-8);

function GetWindowLong(hWnd, nIndex: Integer): Longint;
  external '[email protected] stdcall';

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


Sergey3695 13-10-2020 11:31

Quote:

Originally Posted by Cesar82 (Post 488297)
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.
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

Quote:

Originally Posted by Sergey3695 (Post 488746)
New Build added. Deleted SetupHandle. Updated post.

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

Sergey3695 04-11-2020 02:34

Quote:

Originally Posted by Cuttlas (Post 488780)
Do u mean the WinTB v0.2.rar in first POST?

https://fileforums.com/showpost.php?...92&postcount=9

ffmla 04-11-2020 02:35

Quote:

Originally Posted by Cuttlas (Post 488780)
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.


All times are GMT -7. The time now is 22:33.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com