Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1471  
Old 17-06-2021, 12:18
:( Sad8669 :( Sad8669 is offline
Registered User
 
Join Date: Oct 2020
Location: -
Posts: 203
Thanks: 97
Thanked 187 Times in 101 Posts
:( Sad8669 is on a distinguished road
Damn, any idea where should i start to learn basic inno setup functions and stuff?
Reply With Quote
The Following 2 Users Say Thank You to :( Sad8669 For This Useful Post:
GaMEr_2077 (17-06-2021), pratikpatel8982 (17-06-2021)
Sponsored Links
  #1472  
Old 17-06-2021, 15:48
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,035
Thanks: 1,743
Thanked 2,220 Times in 759 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
There was a plugin for Inno Setup that allowed for bat file / console application output to be redirected to the inno Setup memo window instead of producing a cmd window.

The name seems to have slipped my mind - can anyone help?
I know and have public versions there is "ISUtils.dll" (by Peterf1999) and also "Memo Console for Inno Setup" (Console.dll) (by BLACKFIRE69).
It has other libraries like cmdout.dll (by Ele) but I don't know if it's public.
I've also attached here an example using version without libraries.
Attached Files
File Type: 7z CaptureConsoleOutput.7z (4.6 KB, 49 views)
Reply With Quote
The Following 5 Users Say Thank You to Cesar82 For This Useful Post:
GaMEr_2077 (17-06-2021), Gehrman (24-06-2021), Harsh ojha (02-07-2021), Masquerade (18-06-2021), pratikpatel8982 (17-06-2021)
  #1473  
Old 17-06-2021, 21:26
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
I know and have public versions there is "ISUtils.dll" (by Peterf1999) and also "Memo Console for Inno Setup" (Console.dll) (by BLACKFIRE69).
It has other libraries like cmdout.dll (by Ele) but I don't know if it's public.
I've also attached here an example using version without libraries.
okay so this will run cmd commands in inno console
RIGHT??
Reply With Quote
  #1474  
Old 17-06-2021, 23:47
Ele's Avatar
Ele Ele is offline
Registered User
 
Join Date: Nov 2020
Location: Near Mars
Posts: 93
Thanks: 77
Thanked 92 Times in 37 Posts
Ele is on a distinguished road
Question

Quote:
Originally Posted by Cesar82
It has other libraries like cmdout.dll (by Ele) but I don't know if it's public.
Yes, it wasn't a public Lib. I only use it on my personal projects. If anyone finds it useful, here it is.
Tested with: Inno 5.5.1.ee2(unicode) Enhanced and Inno 6.2.0(unicode).

Note: There're two separate libraries here. One is for Inno and the other is for Delphi.


Preview:
Attached Images
File Type: png cmdout-prev01.png (24.5 KB, 197 views)
File Type: png cmdout-prev02.png (24.5 KB, 194 views)
File Type: png cmdout-prev03.png (22.3 KB, 196 views)
Attached Files
File Type: 7z cmdout.dll + Inno Example.7z (51.2 KB, 43 views)
__________________
- All life is an experiment. The more experiments you make the better. -
Reply With Quote
The Following 10 Users Say Thank You to Ele For This Useful Post:
:( Sad8669 (18-06-2021), Carldric Clement (26-07-2021), Cesar82 (17-06-2021), ffmla (18-06-2021), GaMEr_2077 (18-06-2021), Gehrman (24-06-2021), Grumpy (18-06-2021), Harsh ojha (02-07-2021), Masquerade (18-06-2021), oo7 (18-09-2021)
  #1475  
Old 02-07-2021, 10:29
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,172
Thanks: 284
Thanked 1,370 Times in 618 Posts
Masquerade is on a distinguished road
@Ele, thanks your plugin works great in my tests. I tried the dll by BLACKFIRE69 however I could not get it to work.

Is there a way to stop my memo from echoing the same thing twice?

Currently I have it set to echo the file currently being extracted however this means it echoes the same file over and over again until it moves onto the next file.

Here's the current code:

Code:
function ProgressCallback(OveralPct, CurrentPct: Integer; CurrentFile, TimeStr1, TimeStr2, TimeStr3: PAnsiChar): LongWord;
var
  CurTick: DWORD;
begin
    Memo.Lines.Add('Unpacking: ' + CurrentFile);
I thought maybe I could make a temporary string variable and comparing it with the current file and if so, skip echoing the current file, I am interested if anyone has any thoughts on this.
Reply With Quote
  #1476  
Old 02-07-2021, 12:00
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,419
Thanks: 1,078
Thanked 7,034 Times in 2,663 Posts
KaktoR is on a distinguished road
Yes it it possible the way you thought on it. I remember this was the case in all your repacks and I wondered why you made it this way

However, I think there is a more easier way to do this. I guess one of our experts will answer you on this
__________________
Haters gonna hate
Reply With Quote
  #1477  
Old 02-07-2021, 12:28
DiCaPrIo DiCaPrIo is offline
Registered User
 
Join Date: Apr 2017
Location: Don't Know
Posts: 48
Thanks: 90
Thanked 49 Times in 30 Posts
DiCaPrIo is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
@Ele, thanks your plugin works great in my tests. I tried the dll by BLACKFIRE69 however I could not get it to work.

Is there a way to stop my memo from echoing the same thing twice?

Currently I have it set to echo the file currently being extracted however this means it echoes the same file over and over again until it moves onto the next file.

Here's the current code:

Code:
function ProgressCallback(OveralPct, CurrentPct: Integer; CurrentFile, TimeStr1, TimeStr2, TimeStr3: PAnsiChar): LongWord;
var
  CurTick: DWORD;
begin
    Memo.Lines.Add('Unpacking: ' + CurrentFile);
I thought maybe I could make a temporary string variable and comparing it with the current file and if so, skip echoing the current file, I am interested if anyone has any thoughts on this.
if not Memo.Lines.IndexOf('Unpacking: ' + CurrentFile) > -1 then
Memo.Lines.Add('Unpacking: ' + CurrentFile);
Reply With Quote
The Following 3 Users Say Thank You to DiCaPrIo For This Useful Post:
Cesar82 (02-07-2021), KaktoR (02-07-2021), Masquerade (02-07-2021)
  #1478  
Old 02-07-2021, 16:15
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,035
Thanks: 1,743
Thanked 2,220 Times in 759 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
Code:
function ProgressCallback(OveralPct, CurrentPct: Integer; CurrentFile, TimeStr1, TimeStr2, TimeStr3: PAnsiChar): LongWord;
var
  CurTick: DWORD;
begin
    Memo.Lines.Add('Unpacking: ' + CurrentFile);
I thought maybe I could make a temporary string variable and comparing it with the current file and if so, skip echoing the current file, I am interested if anyone has any thoughts on this.
Another option is to use it this way.
I don't know if the filenames are partially cut off or not.
Let's say you have 2 files with same names in somewhat similar paths then the second file will also be displayed.

Example:
1) Data1.bin destination {app}\bin
FileName = Bin32\File1.txt
FileName = Bin32\File2.txt
2) Data2.bin destination {app}\
FileName = Bin\Bin32\File1.txt
FileName = Bin\File3.txt

In this case there are similar names as long as it is not the same name as the previous line, it will be added.
Code:
if (Memo.Lines.Count = 0) or (CompareText(Memo.Lines.Strings[Memo.Lines.Count - 1], 'Unpacking: ' + CurrentFile) <> 0) then
  Memo.Lines.Add('Unpacking: ' + CurrentFile);
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
DiCaPrIo (03-07-2021), GaMEr_2077 (03-07-2021), Masquerade (03-07-2021)
  #1479  
Old 26-07-2021, 05:51
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 579
Thanks: 579
Thanked 632 Times in 227 Posts
Carldric Clement is on a distinguished road
Quote:
Originally Posted by Ele View Post
Yes, it wasn't a public Lib. I only use it on my personal projects. If anyone finds it useful, here it is.
Tested with: Inno 5.5.1.ee2(unicode) Enhanced and Inno 6.2.0(unicode).

Note: There're two separate libraries here. One is for Inno and the other is for Delphi.


Preview:
Idk if it works with Delphi XE 10 I guess. But my problem is the ISCmdInit doesn't support the latest version of Delphi XE because I'm using FMX.

Last edited by Carldric Clement; 26-07-2021 at 09:26.
Reply With Quote
  #1480  
Old 30-07-2021, 14:15
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,172
Thanks: 284
Thanked 1,370 Times in 618 Posts
Masquerade is on a distinguished road
Is there an inno library that support blake3 hashings? ISHash does MD5 but not Blake3.
Reply With Quote
  #1481  
Old 30-07-2021, 15:45
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,419
Thanks: 1,078
Thanked 7,034 Times in 2,663 Posts
KaktoR is on a distinguished road
Something like this?
https://github.com/namazso/OpenHashTab

Edit: Scratch it, it's just a shellext installer...

Maybe ask peterf if he got some spare time to add it into ishash
__________________
Haters gonna hate

Last edited by KaktoR; 30-07-2021 at 15:48.
Reply With Quote
  #1482  
Old 02-08-2021, 07:15
no.safe no.safe is offline
Registered User
 
Join Date: Aug 2020
Location: Indonesia
Posts: 8
Thanks: 4
Thanked 0 Times in 0 Posts
no.safe is on a distinguished road
Can Help Me ?

Reply With Quote
  #1483  
Old 12-08-2021, 09:34
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 579
Thanks: 579
Thanked 632 Times in 227 Posts
Carldric Clement is on a distinguished road
I didn't expect it before. the newest version of Inno Setup 6 was no longer code of Application.ProcessMessanges; Is there any similar this code?
Reply With Quote
  #1484  
Old 12-08-2021, 10:01
DiCaPrIo DiCaPrIo is offline
Registered User
 
Join Date: Apr 2017
Location: Don't Know
Posts: 48
Thanks: 90
Thanked 49 Times in 30 Posts
DiCaPrIo is on a distinguished road
Quote:
Originally Posted by Carldric Clement View Post
I didn't expect it before. the newest version of Inno Setup 6 was no longer code of Application.ProcessMessanges; Is there any similar this code?
function PeekMessage(var lpMsg: TMsg; hWnd: HWND; wMsgFilterMin, wMsgFilterMax, wRemoveMsg: UINT): BOOL; external '[email protected] stdcall';
function TranslateMessage(const lpMsg: TMsg): BOOL; external '[email protected] stdcall';
function DispatchMessage(const lpMsg: TMsg): Longint; external '[email protected] stdcall';

procedure AppProcessMessages;
var
Msg: TMsg;
begin
while PeekMessage(Msg, 0, 0, 0, 1) do
begin
TranslateMessage(Msg);
DispatchMessage(Msg);
end;
end;
Reply With Quote
The Following User Says Thank You to DiCaPrIo For This Useful Post:
Carldric Clement (12-08-2021)
  #1485  
Old 12-08-2021, 10:12
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 579
Thanks: 579
Thanked 632 Times in 227 Posts
Carldric Clement is on a distinguished road
Quote:
Originally Posted by DiCaPrIo View Post
function PeekMessage(var lpMsg: TMsg; hWnd: HWND; wMsgFilterMin, wMsgFilterMax, wRemoveMsg: UINT): BOOL; external '[email protected] stdcall';
function TranslateMessage(const lpMsg: TMsg): BOOL; external '[email protected] stdcall';
function DispatchMessage(const lpMsg: TMsg): Longint; external '[email protected] stdcall';

procedure AppProcessMessages;
var
Msg: TMsg;
begin
while PeekMessage(Msg, 0, 0, 0, 1) do
begin
TranslateMessage(Msg);
DispatchMessage(Msg);
end;
end;
almost but there is one thing was unknown type: TMsg;
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 06:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 07:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 10:48



All times are GMT -7. The time now is 01:06.


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