Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #241  
Old 11-03-2013, 12:39
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by danswano View Post
Thank you, what about the Ready to Install dialog please?
disablereadypage=yes
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
danswano (11-03-2013)
Sponsored Links
  #242  
Old 11-03-2013, 12:43
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
I've tried this one but after clicking Next on the previous dialog it goes directly to installation.
The Next button should turn into Install button before starting installation

Is it possible?
Reply With Quote
  #243  
Old 11-03-2013, 12:53
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by danswano View Post
I've tried this one but after clicking Next on the previous dialog it goes directly to installation.
The Next button should turn into Install button before starting installation

Is it possible?
yes, it's possible. To change button text use curpagechanged and remame button manually.
Code:
if (curpageid=wpselectdir) then wizardform.nextbutton.caption:='Install';
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
danswano (11-03-2013)
  #244  
Old 11-03-2013, 12:59
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
The page that i want to change it's button name is the tasks page, what is the id of that page?
Reply With Quote
  #245  
Old 11-03-2013, 21:31
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by danswano View Post
The page that i want to change it's button name is the tasks page, what is the id of that page?
i'm not sure, maybe "wpSelectTasks"

Last edited by altef_4; 12-03-2013 at 11:40.
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
danswano (12-03-2013)
  #246  
Old 13-03-2013, 06:01
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
It's wpSelectTasks

Quote:
Constants

Here's the list of constants used by these functions:

TSetupStep values
ssInstall, ssPostInstall, ssDone

TUninstallStep values
usAppMutexCheck, usUninstall, usPostUninstall, usDone

PageID values for predefined wizard pages
wpWelcome, wpLicense, wpPassword, wpInfoBefore, wpUserInfo, wpSelectDir, wpSelectComponents, wpSelectProgramGroup, wpSelectTasks, wpReady, wpPreparing, wpInstalling, wpInfoAfter, wpFinished
http://www.jrsoftware.org/ishelp/ind...c=scriptevents

Hello again,
i'm using this parameter to compress my files
Quote:
-msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
But i don't seem to be able to get a compatible precomp compression method to work with ISDone and i get unpacking errors, can you please add a precomp parameter to the above command with best compression and if you can improve my srep parameters for a better compression would be appreciated.

Thank you

Hello razor,
When using unarc.dll you gave me i get invalid password error, how can i unpack passworded arc's using it?

Noob is back again.
I have a question, i was an installshield user before innosetup, installshield used to skip the already installed files and only install the new ones if there is any, is it possible to do that in innosetup?

Last edited by Joe Forster/STA; 15-03-2013 at 00:47.
Reply With Quote
  #247  
Old 15-03-2013, 20:45
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Question

Need help.
The code pat below is for Inno Ansi Version.
I wanted modify to work on inno unicode version.

Code:
function GetDC(HWND: DWord): DWord; external '[email protected] stdcall';
function GetDeviceCaps(DC: DWord; Index: Integer): Integer; external '[email protected] stdcall';
function ReleaseDC(HWND: DWord;DC: DWord): Integer; external '[email protected] stdcall';
function GetDriveType(lpDisk: String): Integer; external '[email protected] stdcall setuponly';
function GetVolumeInformation (lpRootPathName,lpVolumeNameBuffer: PAnsiChar; nVolumeNameSize: longint; lpVolumeSerialNumber,lpMaximumComponentLength: Cardinal; lpFileSystemFlags: Cardinal; lpFileSystemNameBuffer: PAnsiChar; nFileSystemNameSize: dword): longword;
external '[email protected] stdcall setuponly';

function GetScreenHeight(): integer;
var dc: DWord;
begin
 dc:=GetDC(MainForm.Handle);
 Result:=GetDeviceCaps(dc,10);
 ReleaseDC(MainForm.Handle,dc);
end;

function GetScreenWidth(): integer;
 var dc: DWord;
begin
 dc:=GetDC(MainForm.Handle);
 Result:=GetDeviceCaps(dc,8);
 ReleaseDC(MainForm.Handle,dc);
end;

Function GetFixedDrivesInfo(): Array of Tdrive;
Var l:string;
   s,c,n: integer;
   FreeMB, TotalMB: Cardinal;
   Vl: array of AnsiString;
   Fsn: PAnsiChar;
      //
Begin
l:='ABCDEFGHIJKLMNOPQRSTUWXYZ';
for c:=1 to length(l) do begin
if GetDriveType(l[c]+':')=DRIVE_FIXED then
begin
n:=GetArrayLength(Result);
s:=GetArrayLength(Vl);
SetArrayLength(Result,n+1);
SetArrayLength(Vl,s+1);
Vl[s]:=StringOfChar(' ',256);
GetVolumeInformation (l[c]+':\',Vl[s],MAX_PATH,0,0,0,PAnsiChar(Fsn),MAX_PATH);
GetSpaceOnDisk(l[c]+':\', True, FreeMB, TotalMB)
Result[n].Letter:=l[c]+':';
Result[n].VolumeName:=Trim(Vl[s]);
Result[n].FreeSpace:=FreeMB;
Result[n].PSize:=TotalMB;
end;
end;
//MsgBox(Result[n].fileSystemname, mbInformation, mb_Ok);
End;
In inno unicode he does not perform this part.

Code:
if GetDriveType(l[c]+':')=DRIVE_FIXED then
begin
n:=GetArrayLength(Result);
s:=GetArrayLength(Vl);
SetArrayLength(Result,n+1);
SetArrayLength(Vl,s+1);
Vl[s]:=StringOfChar(' ',256);
GetVolumeInformation (l[c]+':\',Vl[s],MAX_PATH,0,0,0,PAnsiChar(Fsn),MAX_PATH);
GetSpaceOnDisk(l[c]+':\', True, FreeMB, TotalMB)
Result[n].Letter:=l[c]+':';
Result[n].VolumeName:=Trim(Vl[s]);
Result[n].FreeSpace:=FreeMB;
Result[n].PSize:=TotalMB;
end;
Can help me?
Reply With Quote
  #248  
Old 16-03-2013, 06:57
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
change PansiChar to PChar

ansi = pansichar
unicode = pchar

IF I remember it correctly, make backup of script, before making changes. test to see if it worked.
Reply With Quote
  #249  
Old 16-03-2013, 13:53
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by pakrat2k2 View Post
change PansiChar to PChar

ansi = pansichar
unicode = pchar

IF I remember it correctly, make backup of script, before making changes. test to see if it worked.
I tested it and Error: Unknown type PChar
Has at the beginning of the code.
Code:
#ifdef UNICODE
    #define A "W"
#else
    #define A "A"  ;// точка входа в SetWindowText, {#A} меняется на A или W в зависимости от версии
#if Ver < 84084736
    PAnsiChar = PChar;  // Required for Inno Setup 5.3.0 and lower. (требуется для Inno Setup версии 5.3.0 и ниже)
#endif
#endif
#if Ver < 84018176
    AnsiString = String; // There is no need for this line in Inno Setup 5.2.4 and above (для Inno Setup версий 5.2.4 и выше эта строка не нужна)
#endif
This is not enough?
Does not pass this line.
Code:
if GetDriveType(l[c]+':')=DRIVE_FIXED then
In image (Depuration Mode Inno) not load driver information. In Inno Setup Ansi Version work.

Note:This script is part of the script of the game The Witcher 2 by peterf1999.
Reply With Quote
  #250  
Old 16-03-2013, 14:09
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
because that script needs ANSI not Unicode.

If your just changing images etc, using peterf's original script modified for your game, then it will compile just fine no errors.
Reply With Quote
  #251  
Old 16-03-2013, 14:33
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by pakrat2k2 View Post
because that script needs ANSI not Unicode.

If your just changing images etc, using peterf's original script modified for your game, then it will compile just fine no errors.
The rest is working fine.
I need a script basic that meets the that need.
Does not have to replace only some details of that part.
Thank You pakrat2k2.
Reply With Quote
  #252  
Old 18-03-2013, 05:56
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
@LuisCйsar82, to display drive info on unicode version change this to
Reply With Quote
  #253  
Old 19-03-2013, 01:32
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,836
Thanks: 20
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
Quote:
Originally Posted by altef_4 View Post
to display drive info on unicode version change this to
Isn't there an automatism to select between the ANSI and Unicode versions of functions?! In a C compiler, you simply use GetDriveType - or whatever function, without a suffix in its name - and it gets automatically expanded to ...A in an ANSI and ...W in a Unicode program (in the system headers, according to whether or not the "UNICODE" symbol is defined). I see something like this at the beginning of one of the scripts above (#define A "A"/"W").

I'm actually experimenting at this moment with some dangerous C macro automatism to be able to turn an ANSI program into a Unicode program by just defining "UNICODE".
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!

Last edited by Joe Forster/STA; 19-03-2013 at 01:34.
Reply With Quote
  #254  
Old 19-03-2013, 07:43
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Joe Forster/STA View Post
Isn't there an automatism to select between the ANSI and Unicode versions of functions?! In a C compiler, you simply use GetDriveType - or whatever function, without a suffix in its name - and it gets automatically expanded to ...A in an ANSI and ...W in a Unicode program (in the system headers, according to whether or not the "UNICODE" symbol is defined). I see something like this at the beginning of one of the scripts above (#define A "A"/"W").

I'm actually experimenting at this moment with some dangerous C macro automatism to be able to turn an ANSI program into a Unicode program by just defining "UNICODE".
maybe i don't correctly understood you, but to auto change u/a functions you can use this code
Code:
#ifdef UNICODE
   #define A "W"
#else
   #define A "A"
#endif
[_code]
function GetDriveType(lpDisk: String): Integer; external 'GetDriveType{#A}@kernel32.dll stdcall setuponly';
Reply With Quote
  #255  
Old 19-03-2013, 22:39
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,836
Thanks: 20
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
Yup, that's what I'm talking about. People should get used to such automatisms as they help porting (ANSI <-> Unicode, 32-bit <-> 64-bit, Windows <-> Unix) without major headaches!
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
Reply


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 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



All times are GMT -7. The time now is 16:44.


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