FileForums

FileForums (https://fileforums.com/index.php)
-   PC Games - CD/DVD Conversions (https://fileforums.com/forumdisplay.php?f=39)
-   -   Need for Speed - The Run (2DVD9 to 3 DVD5) * INNO Setup* (https://fileforums.com/showthread.php?t=92331)

REV0 23-11-2011 14:11

Quote:

Originally Posted by andersondj (Post 399066)
Revo i have improve your code!
A Change autorum script and need Run Script If you want test!
http://www.megaupload.com/?d=GG6JKHRB


Changelog
AUTORUM
The butons Play and Uninstal it's works now!
RUN
add GDF binary to the game explorer For Win Vista or 7 32,64!
desktop icon it's only created on win XP

sorry for my bad English i am brazilian.

edit:

It's not working, it compiled 84 mb of content and setup finished.

REV0 24-11-2011 10:38

Update:

I tested andersondj's autorun and RUN script they didnt work, however i took reg entries from his iss, and changed with mines, now it's working, i updated script to v1.4 thank you friend :)

braveheart280 24-11-2011 11:26

salut
my prob is that it compil just the executable and stop !!!!!!!!!!!!!! plzzzz help me

REV0 24-11-2011 11:29

Quote:

Originally Posted by braveheart280 (Post 399161)
salut
my prob is that it compil just the executable and stop !!!!!!!!!!!!!! plzzzz help me

option 1: try v1.4
option 2: check your game directory
option 3: check your installation content, otherwise it cant just pack exe

braveheart280 24-11-2011 12:03

i solved the prob and thanks very much
i forgot the second "\" in "..\Games\Need for Speed The Run"

andersondj 24-11-2011 12:40

Quote:

Originally Posted by REV0 (Post 399160)
Update:

I tested andersondj's autorun and RUN script they didnt work, however i took reg entries from his iss, and changed with mines, now it's working, i updated script to v1.4 thank you friend :)

I created my installer with my modified version and i have no problem!

REV0 24-11-2011 13:00

Quote:

Originally Posted by andersondj (Post 399165)
I created my installer with my modified version and i have no problem!

interesting indeed then, cause it made an exe and 80 of bin file then it's finished. :confused: Nevermind, already exist setup + your regkeys = works like a charm :D

andersondj 24-11-2011 13:18

Quote:

Originally Posted by REV0 (Post 399166)
interesting indeed then, cause it made an exe and 80 of bin file then it's finished. :confused: Nevermind, already exist setup + your regkeys = works like a charm :D

Thank's for the Work Looks Great!

amdddd 24-11-2011 14:25

Hey!! I install Inno ANSI version,but it's problem of unknown languege
Help me Please.
http://i407.photobucket.com/albums/p...rdeg/error.png

http://i407.photobucket.com/albums/p...ordeg/lang.png

KillerOh 24-11-2011 15:30

2 Attachment(s)
Quote:

Originally Posted by amdddd (Post 399171)
Hey!! I install Inno ANSI version,but it's problem of unknown languege
Help me Please.
http://i407.photobucket.com/albums/p...rdeg/error.png

See the file named "L?eme.es-mex.txt" located in the (Game Folder)\\Support\\Readme folder (And NOT in any of innoSetup folders) and rename it, for, por example, "Léeme.es-mex.txt"

Inno Setup cannot reconize one of the "letters" in "L?eme.es-mex.txt" file (That is, the 2nd character, between "L" and "e", and that should be an "é"), so that's why you got this error.
If the error still persist, we can either:
  • Rename it to Leeme.es-mex.txt
  • Make the "Support" folder as external in the script itself before compile. To do it, follow these steps:
    1. Open the script with InnoSetup as usual.
    2. Search for THIS line. It's in the very beginning of the code:
      Code:

      LZMAUseSeparateProcess=yes
    3. Now, ADD this line BELOW "LZMAUseSeparateProcess=yes" (Yes, cursor in the end of the line, then ENTER. XD):
      Code:

      ReserveBytes=13000000
      The ReserveBytes parameter will save about 13mbytes of "free" space, so you can add the "Support" folder (About 10 mbytes) in the Disk 1 without overflowing it.
    4. Now, find THIS line of the code:
      Code:

      Source:{#SourcePath}*; DestDir: {app}; Flags: ignoreversion recursesubdirs
    5. ... and REPLACE ONLY THIS LINE for these two:
      Code:

      Source:{src}\Support\*; DestDir: {app}\Support; Flags: external ignoreversion recursesubdirs
      Source:{#SourcePath}*; Excludes:{#SourcePath}\Support\*; DestDir: {app}; Flags: ignoreversion recursesubdirs

      The first line added will make the entire "Support" folder as an external file, so Inno Will NOT compress it, thus removing this nasty compile error FOREVER.
      In the 2nd line, the "Excludes:{#SourcePath}\Support\*" will "force" InnoSetup to compress all files//folders EXCEPT the "Support" folder, as it'll be external to the installer.
    6. After compile, copy the "Support" folder from the game folder to the "RUN_1" folder, as described by REV0 in his conversion.
      That is:
      • Setup.exe,
      • Setup-1a.bin. Setup-1b.bin, Setup-1c.bin
      • autorun.in/ico
      • AND the "Support" folder from the game folder
      will be the contents of your Disk 1
      Disks 2 and 3 will be the same as usual.

BTW, the code changing should be recommended to the REV0's main script, if you wanna know...
If you're THAT lazy, then use THIS "run.iss" inside the attatchment
Attachment 2936
And replace by the one done by REV0 in his original script.

Another tip: I've noticed that my custom setup took A HELL OF time just to LOAD it.
We can reduce this "loading time" to almost zero by adding "nocompression" flag in all these lines:
Code:

Source: .\Wizard_Res\BGI*.bmp; DestDir: {tmp}; Flags: dontcopy nocompression
Source: .\Wizard_Res\SplashScreen.bmp; DestDir: {tmp}; Flags: dontcopy nocompression
#ifdef Autorun
Source: .\Wizard_Res\AutorunBGI.bmp; DestDir: {tmp}; Flags: dontcopy nocompression
#endif
#ifdef ISSkin
Source: .\Wizard_Res\{#StylesName}; DestDir: {app}; Flags: ignoreversion nocompression
#endif
#ifdef InstallMusicLoop
Source: .\Wizard_Res\{#mp3filename}; DestDir: {tmp}; Flags: dontcopy nocompression
#endif
#ifdef Autorun
#ifdef AMusicLoop
Source: .\Wizard_Res\{#Autorunmp3filename}; DestDir: {tmp}; Flags: dontcopy nocompression
Source: .\Wizard_Res\mute_on_off.bmp; DestDir: {tmp}; Flags: dontcopy nocompression
#endif
#endif
#ifdef Autorun
Source: .\Wizard_Res\{#ClickSoundfilename}; DestDir: {tmp}; Flags: dontcopy nocompression
#endif
Source: .\Libraries\InnoCallback.dll; DestDir: {tmp}; Flags: dontcopy nocompression
Source: .\Libraries\get_hw_caps.dll; DestDir: {tmp}; Flags: dontcopy nocompression
#ifdef AddToGameExplorer
Source: .\Libraries\GameuxInstallHelper.dll; DestDir: {app}; Flags: ignoreversion nocompression
#endif
#ifdef AddToFireWallList
Source: .\Libraries\FirewallInstallHelper.dll; DestDir: {app}; Flags: ignoreversion nocompression
#endif
#ifdef FreeArc
Source: .\Libraries\unarc.dll; DestDir: {tmp}; Flags: dontcopy nocompression
#endif
#ifdef ISSkin
Source: .\Libraries\ISSkin.dll; DestDir: {app}; Flags: ignoreversion nocompression
#endif

While this will increase the final size in about 50 mbytes, the installer will load faster.
For the lazy ones, here's a run.iss with BOTH changes (Support folder as external and "nocompression" flag for all "cosmetical" files):
Attachment 2937

EDIT: All the "run.iss" were modified from the "version 4" of the setup.

KillerOh 24-11-2011 16:28

Sorry for floooding, but the UNINSTALL button don't work. I doesn't run the uninstaller FROM THE AUTORUN, but uninstalls fine from the uninstaller itself.

andersondj 24-11-2011 19:33

Quote:

Originally Posted by KillerOh (Post 399175)
Sorry for floooding, but the UNINSTALL button don't work. I doesn't run the uninstaller FROM THE AUTORUN, but uninstalls fine from the uninstaller itself.

Download this file http://www.megaupload.com/?d=GG6JKHRB and modifie your source path
OR Edit in autorun.iss this!
begin
PlaySound(expandConstant('{tmp}\Click.wav'),0,SND_ OPT);
if TLabel(sender).caption=ExpandConstant('{cm:AInstal l}') then begin
HForm.Close
Install:=True;
end else begin
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Electronic Arts\Need for Speed The Run',
'Install_Path', appath)
if not Exec(appath+'\Need For Speed The Run.exe', '', '', SW_SHOW,
ewNoWait, ResultCode) then MsgBox(SysErrorMessage(ResultCode)+': Need For Speed The Run.exe', mbCriticalError, MB_OK)
else begin
HForm.Close;
Install:=False;
end;
end;
end;

In Install_Path Change for Install Dir in all of the parts of the Scripts,or if your script is diferent change from InstallFolder to Install Dir

JeDra 28-11-2011 04:11

At the end I got Line:
Warning: Line 777, Column 15: [Hint] Variable 'N' never used
Is this something important or wrong?
Maybe autorun.inf in Run_1 should be?:
[autorun]
open=Setup.exe
icon=RUN.ico

Working perfectly on win7 32bit

dani_ell 28-11-2011 04:25

thanks, work in W7 64bits, v1.4

tritbvn 29-11-2011 08:03

pls help me error "the filename directory name or volume label syntax is incorrect"


All times are GMT -7. The time now is 08:27.

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