|
#242
|
|||
|
|||
|
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?
|
|
#243
|
||||
|
||||
|
Quote:
Code:
if (curpageid=wpselectdir) then wizardform.nextbutton.caption:='Install'; |
| The Following User Says Thank You to altef_4 For This Useful Post: | ||
danswano (11-03-2013) | ||
|
#244
|
|||
|
|||
|
The page that i want to change it's button name is the tasks page, what is the id of that page?
|
|
#245
|
||||
|
||||
|
Quote:
Last edited by altef_4; 12-03-2013 at 11:40. |
| The Following User Says Thank You to altef_4 For This Useful Post: | ||
danswano (12-03-2013) | ||
|
#246
|
|||
|
|||
|
It's wpSelectTasks
Quote:
Hello again, i'm using this parameter to compress my files Quote:
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. |
|
#247
|
||||
|
||||
|
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; 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;
|
|
#248
|
||||
|
||||
|
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. |
|
#249
|
||||
|
||||
|
Quote:
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
Does not pass this line. Code:
if GetDriveType(l[c]+':')=DRIVE_FIXED then ![]() Note:This script is part of the script of the game The Witcher 2 by peterf1999. |
|
#250
|
||||
|
||||
|
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. |
|
#251
|
||||
|
||||
|
Quote:
I need a script basic that meets the that need. Does not have to replace only some details of that part. Thank You pakrat2k2. |
|
#252
|
||||
|
||||
|
@LuisCйsar82, to display drive info on unicode version change this
Code:
[email protected] Code:
[email protected] |
|
#253
|
||||
|
||||
|
Quote:
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. |
|
#254
|
||||
|
||||
|
Quote:
Code:
#ifdef UNICODE
#define A "W"
#else
#define A "A"
#endif
[_code]
function GetDriveType(lpDisk: String): Integer; external 'GetDriveType{#A}@kernel32.dll stdcall setuponly';
|
|
#255
|
||||
|
||||
|
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! |
![]() |
|
|
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 |