FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   INNO TROUBLESHOOT - Questions Here (https://fileforums.com/showthread.php?t=93193)

altef_4 11-03-2013 12:39

Quote:

Originally Posted by danswano (Post 415252)
Thank you, what about the Ready to Install dialog please? :)

disablereadypage=yes

danswano 11-03-2013 12:43

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? :)

altef_4 11-03-2013 12:53

Quote:

Originally Posted by danswano (Post 415254)
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';

danswano 11-03-2013 12:59

The page that i want to change it's button name is the tasks page, what is the id of that page?

altef_4 11-03-2013 21:31

Quote:

Originally Posted by danswano (Post 415256)
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" :D

danswano 13-03-2013 06:01

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?

Cesar82 15-03-2013 20:45

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?

pakrat2k2 16-03-2013 06:57

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.

Cesar82 16-03-2013 13:53

Quote:

Originally Posted by pakrat2k2 (Post 415454)
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.
http://i.imgur.com/NnkKUWm.jpg
Note:This script is part of the script of the game The Witcher 2 by peterf1999.

pakrat2k2 16-03-2013 14:09

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.

Cesar82 16-03-2013 14:33

Quote:

Originally Posted by pakrat2k2 (Post 415471)
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.

altef_4 18-03-2013 05:56

@LuisCésar82, to display drive info on unicode version change this to

Joe Forster/STA 19-03-2013 01:32

Quote:

Originally Posted by altef_4 (Post 415550)
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". :)

altef_4 19-03-2013 07:43

Quote:

Originally Posted by Joe Forster/STA (Post 415564)
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';


Joe Forster/STA 19-03-2013 22:39

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!

huavancuong098 23-03-2013 07:12

Hello, i have some question about compress game in inno setup. When i see some videos in the internet, they use free arc and inno setup to compress game. Can you show me how to use free arc in inno setup. Thanks!

Razor12911 23-03-2013 07:19

they use the freearc script by freearc owner or isdone script by profrager.

spawniectes 25-03-2013 16:17

http://img19.imageshack.us/img19/3138/errorzm.jpg
can anyone tell what this error means, I make the conversion for RE 6 and when I install gives that error

pakrat2k2 25-03-2013 17:03

you've uninstalled from original version first?

spawniectes 25-03-2013 18:58

Quote:

Originally Posted by pakrat2k2 (Post 415898)
you've uninstalled from original version first?

Nop.

pakrat2k2 25-03-2013 20:20

always uninstall original version, before trying to install conversion. ( Unless you rename folder & change reg entries ), but always easier to uninstall original version first.

spawniectes 26-03-2013 03:32

Quote:

Originally Posted by pakrat2k2 (Post 415908)
always uninstall original version, before trying to install conversion. ( Unless you rename folder & change reg entries ), but always easier to uninstall original version first.

I uninstall but the problem persist, perhaps is time to re-install my windows 'cause is not the first conversion that give me troubles :mad:

Joe Forster/STA 27-03-2013 01:48

Please, quote error messages 1) as text 2) in English!

spawniectes 27-03-2013 03:34

Quote:

Originally Posted by spawniectes (Post 415895)
http://img19.imageshack.us/img19/3138/errorzm.jpg
can anyone tell what this error means, I make the conversion for RE 6 and when I install gives that error

Exception EOSError in module Setup.tmp at 00013541.
System Error. Code: 1400
The windows indentifier is not valid.

peterf1999 27-03-2013 03:51

Quote:

Originally Posted by spawniectes (Post 415978)
Exception EOSError in module Setup.tmp at 00013541.
System Error. Code: 1400
The windows indentifier is not valid.

It means "Invalid window module"

Type to check the integrity (missing or corrupted) of Windows system files:

Code:

sfc /scannow

spawniectes 27-03-2013 06:04

Quote:

Originally Posted by peterf1999 (Post 415980)
It means "Invalid window module"

Type to check the integrity (missing or corrupted) of Windows system files:

Code:

sfc /scannow

Thanks man, I performing the scan right now.

spawniectes 27-03-2013 07:37

Quote:

Originally Posted by spawniectes (Post 415983)
Thanks man, I performing the scan right now.

I finish with the scan and repair (missing or corrupted files) but the problem persist, I guess re-install windows it's the only solution.

Andre Jesus 29-03-2013 08:43

2 Attachment(s)
Quote:

Originally Posted by Andre Jesus (Post 415244)
Thank you for your help altef_4.
Work fine!

Attachment 5801


Hi.

How can i use the same font on the buttons?
Attachment 5923


This is my script.
Attachment 5922

Razor12911 29-03-2013 09:35

1 Attachment(s)
@Andre Jesus

Here is the script.

Andre Jesus 29-03-2013 15:36

Quote:

Originally Posted by Andre Jesus (Post 416201)
Thanks Razor12911, work fine.

Hi again, i have a question about the font color, i don´t know change the color on the example below:

Code:

BtnSetFontColor(hCancelBtn,$DAE369,$DAE369,$DAE369,$B6B6B6);
If i want to change the button color to yellow, how can i do this?
Usually i use the clYellow, clRed, but this don´t work in this code.

danswano 29-03-2013 17:42

1 Attachment(s)
What parameter has been used on this file to achieve all this?

Razor12911 29-03-2013 22:00

Quote:

Originally Posted by Andre Jesus (Post 416210)
Hi again, i have a question about the font color, i don´t know change the color on the example below:

Code:

BtnSetFontColor(hCancelBtn,$DAE369,$DAE369,$DAE369,$B6B6B6);
If i want to change the button color to yellow, how can i do this?
Usually i use the clYellow, clRed, but this don´t work in this code.

write the color code in reverse

Razor12911 29-03-2013 22:03

Quote:

Originally Posted by danswano (Post 416212)
What parameter has been used on this file to achieve all this?

-mx

Andre Jesus 30-03-2013 03:31

Quote:

Originally Posted by Razor12911 (Post 416216)
write the color code in reverse

Hi Razor12911.

Thank you for your response, however, this time i don't understand what you told. If you can, please clarify.

danswano 30-03-2013 03:52

Quote:

Originally Posted by Razor12911 (Post 416217)
-mx

dude i meant the lines above the like dict and grzip

FatalError 30-03-2013 07:43

Why?

http://murl.kz/JMyrs

Razor12911 30-03-2013 08:09

Quote:

Originally Posted by FatalError (Post 416245)

There is an error somewhere in script.

Razor12911 30-03-2013 12:31

Quote:

Originally Posted by Andre Jesus (Post 416229)
Hi Razor12911.

Thank you for your response, however, this time i don't understand what you told. If you can, please clarify.

Color codes are written in this manner #/$RRGGBB right?, Inno Setup uses then in reverse like this #/$BBGGRR

Razor12911 30-03-2013 12:39

Quote:

Originally Posted by danswano (Post 416230)
dude i meant the lines above the like dict and grzip

they are compressions used by freearc to compress files even further but some backfire.

How to use them:
Same way you add methods, -mgrzip+ppmd+dict.

Dict: Compression for text files(reducing them up to 10%)
ppmd: I think this compression method is useless to include, besides, the sizes increase.

How to find other compression methods which freearc uses:
open arc.ini in the freearc directory, you'll see compression method
[External compressor:??????]

Razor12911 31-03-2013 01:47

Hi Fileforum Users, Can you please me in translating this to French, Spanish, German, Serbian, Italian, Portuguese, Polish, Croatian, Czech, Danish, Finnish, Greek, Hungarian, Swedish and Romanian.

Code:

eng.WelcomeMessage1_1=Welcome
eng.WelcomeMessage2_1=Welcome to the %1 Setup Wizard
eng.WelcomeMessage2_2=This will install %1 on your computer.%n%nIt is recommended that you close all other applications before continuing.%n%nSelect installtion type to continue, or Cancel to exit Setup.
eng.LicenseMessage1_1=License
eng.LicenseMessage2_1=Please read the following License Agreement. You must accept the terms of this agreement before continuing with the installation.
eng.LicenseMessage3_1=I accept the license agreement
eng.SystemMessage1_1=System
eng.SystemMessage2_1=The following hardware has been detected on your system%nUse the Key below as a guide for your system
eng.SystemMessage3_1=Processor
eng.SystemMessage3_2=Video
eng.SystemMessage3_2_1=Unavaliable
eng.SystemMessage3_3=Memory
eng.SystemMessage3_4=Operating System
eng.SystemMessage3_4_1=Unknown
eng.SystemMessage3_5=Key
eng.SystemMessage3_5_1=Critical
eng.SystemMessage3_5_2=Bad
eng.SystemMessage3_5_3=Average
eng.SystemMessage3_5_4=Good
eng.SystemMessage3_5_5=Excellent
eng.SystemMessage3_5_6=Required
eng.SystemMessage3_6=Rating Score
eng.SystemMessage3_7=Requirements
eng.SelectDirMessage1_1=Destination
eng.InformationMessage1_1=Information
eng.InformationMessage2_1=Please read the following important information before continuing.
eng.SelectComponentMessage1_1=Components
eng.SelectComponentMessage2_1=Select the components you want to install, clear the components you do not want to install.%nClick Next when you are ready to continue.
eng.SelectComponentMesesge3=Install %1
eng.SelectDirMessage2_1=Setup will install %1 into the following folder. To continue, click Next.%nIf you would like to select a different folder, click Browse.
eng.SelectDirMessage4_1=Total Space:
eng.SelectDirMessage4_2=Free Space:
eng.SelectDirMessage4_3=Recommeneded Space:
eng.SelectDirMessage4_4=Required Space:
eng.SelectGroupMessage1_1=Group
eng.SelectGroupMessage2_1=Setup will create the program's shortcuts in the following Start Menu folder.%nIf you would like to select a different folder, click Browse.
eng.SelectGroupMessage4_1=Don't create a Start Menu folder
eng.SelectGroupMessage4_2=Create a desktop icon
eng.SelectPriorityMessage1_1=Performance
eng.SelectPriorityMessage2_1=Select the priority you would like Setup to use while installing.%nSelecting priority will affect system perfomance.
eng.SelectPriorityMessage3_1=Low Priority
eng.SelectPriorityMessage3_2=Below Normal Priority
eng.SelectPriorityMessage3_3=Normal Priority
eng.SelectPriorityMessage3_4=Above Normal Priority
eng.SelectPriorityMessage3_5=High Priority
eng.SelectPriorityMessage3_6=Realtime Priority
eng.SelectTaskMessage1_1=Tasks
eng.SelectTaskMessage2_1=Select the additional tasks you would like Setup to perform while installing, then click Install.
eng.SelectTaskMesesge3=Install %1
eng.ReadyMessage1_1=Ready
eng.ReadyMessage2_1=Setup is now ready to begin installing %1 on your computer.%n%nClick Install to continue with the installation, or click Back if you want to review or change any settings.
eng.InstallMessage1_1=Install
eng.InstallMessage2_1=Please wait while Setup installs %1 on your computer.
eng.InstallMessage2_2=Please insert disc: %1
eng.InstallMessage3_1=Elapsed:
eng.InstallMessage3_2=Remaining:
eng.InstallMessage3_3_1=Copying %1 ...
eng.InstallMessage3_3_2=Installing %1...
eng.InstallMessage3_3_3=Rolling back changes...
eng.InstallMessage3_4=%1 Complete
eng.InstallMessage3_5=Please insert disc: %1
eng.FinishMessage1_1=Finish
eng.FinishMessage2_1=Setup has finished installing %1 on your computer.%n%nClick Finish to close Setup.
eng.FinishMessage2_2=Setup has encountered an error while installing, please re-run installation.
eng.UninstallMessage1_1=Uninstall
eng.UninstallMessage2_1=Please wait while Setup uninstalls %1 from your computer.
eng.UninstallMessage3_1=%1 Complete
eng.UninstallMessage3_2=Uninstalling...
eng.OtherMessage1_1=Setup failed to intialize.
eng.OtherMessage1_2=Error Code:
eng.OtherMessage2_1=Setup Initializing...
eng.OtherMessage2_2=Application:
eng.OtherMessage2_3=Publisher:
eng.OtherMessage3_1=%1 - Uninstallation
eng.OtherMessage3_2=%1 - Installation
eng.OtherMessage4_1=Music: Off
eng.OtherMessage4_2=Music: On
eng.OtherMessage4_3=Video: Off
eng.OtherMessage4_4=Video: On
eng.OtherMessage5_1=Quick Installation
eng.OtherMessage5_2=Custom Installation
eng.OtherMessage6_1=Launcher
eng.OtherMessage6_2=Configuration
eng.OtherMessage6_3=Uninstall
eng.OtherMessage7_1=ATI/nVidia Integrated Graphics
eng.OtherMessage7_2=Intel Integrated Graphics
eng.OtherMessage7_3=SiS/VIA Integrated Graphics
eng.ConversionUnit1_1=second
eng.ConversionUnit1_2=seconds
eng.ConversionUnit2_1=minute
eng.ConversionUnit2_2=minutes
eng.ConversionUnit3_1=hour
eng.ConversionUnit3_2=hours
eng.ConversionUnit4_1=MB
eng.ConversionUnit4_2=GB
eng.ConversionUnit4_3=TB
eng.ConversionUnit5_1=MHz
eng.ConversionUnit5_2=GHz
eng.ConversionUnit6_1=Bit

engAutorunMessage1_1=%1 - Installation
engAutorunMessage2_1=Launch
engAutorunMessage2_2=Install
engAutorunMessage2_3=Uninstall
engAutorunMessage2_4=Configuration
engAutorunMessage2_5=Close



All times are GMT -7. The time now is 07:40.

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