View Full Version : INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup
Please do NOT ask Questions in this thread, you can ask your INNO Questions HERE (http://fileforums.com/showthread.php?t=93193)
This thread will contain all possible solutions, tutorials, and problems regarding INNO Setup, which we're using these days. Before opening any help thread about something, check this thread for response or help about it.
CONTENTS:
I. INTRODUCTION: History and Features of INNO Setup (http://fileforums.com/showpost.php?p=404997&postcount=1)
II. VISUALIZATION: Using Photoshop, Tips about the work, Creating PNG logos (http://fileforums.com/showpost.php?p=404998&postcount=2)
III. INTERFACE 1: Meaning of Used Values in Setup.ini (http://fileforums.com/showpost.php?p=404999&postcount=3)
III. INTERFACE 2: Editing Setup.cab contents (http://fileforums.com/showpost.php?p=405001&postcount=4)
III. INTERFACE 3: Internal External Setups, Registry Keys (http://fileforums.com/showpost.php?p=405002&postcount=5)
IV. COMPRESSION - When lzma is not enough (http://fileforums.com/showpost.php?p=405003&postcount=6)
V. TROUBLESHOOT - Questions/Problems and Solutions (http://fileforums.com/showpost.php?p=405006&postcount=7)
IA. INTRODUCTION
http://img38.imageshack.us/img38/714/innosetup.png
Inno Setup is a free script-driven installation system created in CodeGear Delphi by Jordan Russell. The first version was released in 1997.
Since Jordan Russell wasn't satisfied with InstallShield Express which he had received upon purchase of Borland Delphi, he decided to make his own installer. At first, Inno Setup was little known. The first public version was 1.09
IB. Capacity of INNO Setup (What you can do with it)
-Supports Windows 7, Windows Vista, Windows Server 2003, Windows XP (including x64 editions)
-Extensive support for installation of 64-bit applications on Windows XP and Windows Server 2003. Both the x64 and IA-64 architectures are supported.
-Multiple platforms (IA-32, x64 and IA-64) in a single binary
-Prior versions supported Windows NT 3.51 (Before v3.0) and Windows 3.X (Before v1.3)
-Supports creation of a single EXE to install programs for easy online distribution.
-Supports disk spanning.
-Customizable setup types, e.g. Full, Minimal, Custom.
-Complete uninstall capabilities.
-Integrated support for “deflate”, bzip2, and 7-Zip LZMA file compression. The installer has the ability to compare file version info, replace in-use files, use shared file counting, register DLL/OCXs and type libraries, and install fonts.
-Creation of shortcuts, including in the Start Menu and on the desktop.
-Creation of registry and INI file entries.
-Integrated Pascal scripting engine.
-Support for multilingual installs.
-Support for passworded and encrypted installs.
-Silent install and uninstall.
-Full source code is available (Borland Delphi 2.0-5.0).
-Supports Unicode and right-to-left languages.
IC. Unicode
As you all know, INNO Setup has 2 versions; ANSI and Unicode. Unicode is the most used and universal one.
Unicode is a computing industry standard for the consistent encoding, representation and handling of text expressed in most of the world's writing systems. Developed in conjunction with the Universal Character Set standard and published in book form as The Unicode Standard, the latest version of Unicode consists of a repertoire of more than 110,000 characters covering 100 scripts, a set of code charts for visual reference, an encoding methodology and set of standard character encodings, an enumeration of character properties such as upper and lower case, a set of reference data computer files, and a number of related items, such as character properties, rules for normalization, decomposition, collation, rendering, and bidirectional display order (for the correct display of text containing both right-to-left scripts, such as Arabic and Hebrew, and left-to-right scripts).As of 2012, the most recent version is Unicode 6.1.
History:
V1.00 - 08.07.2012: Actual Thread
V1.01 - 08.07.2012: Added PNG logo tutorial
V1.02 - 08.09.2012: Added Compression tutorial and some fixes on it.
IIA. VISUALIZATION
Creating unique setups by using yener's CI
-Before discovering Unicode and yener's CI, we were using ANSI version of INNO. However today, thanks to yener's script, we can change and create unique conversions for games.
But to create good looking setup you need more than INNO Setup. You need second tools.
Corel X5, Adobe Photoshop (the one i'm using) and GIMP are good examples for creating different and unique looking buttons and background for your setup.
http://img191.imageshack.us/img191/1707/64216727.jpg
Example background work for 'Dishonored' - Photoshop CS5
IIB. Hints and Tips
I'll give you some advises about graphics (I'll talk on PS)
1. You may use different sized of backgrounds. In this case, work on fullscreen and resize the background you'll use in Photoshop. By doing this, you will see how background will look on %100.
2. Do not pass 720 resolution since it's the smallest monitor size and still selling global. Oversized Installer will create problems.
3. PNG is your friend during setups. By working without a background will create more possibilities about setups and in the end you'll get nicer setups.
4. Know the contrast. If you have dark texts in the setup, use light images so people can read them. If you have light text use the dark images instead. Same goes for button layouts.
http://img140.imageshack.us/img140/5238/2345n.png
TDU2 conversion with button which have PNG extension.
4. When you're creating buttons, apply the rule number 1 and work on background itself, so you can see how buttons will look over installer.
5. After applying rule number4, use Crop Tool and separate button from installer. Now you can work on buttons directly and all your buttons will have same size.
IIC. SPLASH.PNG/CREATING .PNG LOGOs
Most of the game have transparent logo. And since we're using Splash.png aka logos in conversion, you may need this tut.
There are couple of solutions for this. The most basic one is; search. Type the game's name and add 'logo' word on google search. Eventually, you'll find nice and one big logo for your work. (I have 8000x5000 logo for Shogun2) If you're not default person and want to be creative, search again. Since it has png extension, you can do literally everything. Change fonts, add additional pictures, grunge it etc.
But if you cant find a png logo, you'll have create your own.
A) Via Photoshop
Photoshop have Magic Wand function which will help you. Use Magic Wand (the wizard icon on toolbox of PS) and start to select your logo. Hold down shift key and repeat the process. You'll pretty much cover your logo. Then press Ctrl+J and you'll have your logo on second/different layer.
Couple of tips:
If your logo is dark, find the image which has light background. If it's light logo, find with dark background, this will make selection easier.
B) Irfanview
Load the picture into IrfanView, press S for "Save as...", set the image type (PNG), enable "Save Transparent Color" and the program will ask you to click on the color that should be turned into transparent.
Thanks to Joe Forster/STA for this tip.
C) GIMP
No additional info since i'm not using it.
TIP V2:
If you're heavy converter, i really recommend Photoshop, it's your savior in visual stuff ;)
IIIA - INTERFACE]
-Once you've created buttons, backgrounds and other stuff, it's time to add them to setup.
If you worked on exactly same size on existing setup, you can simply overwrite them by opening Setup.cab with Winrar and drag elements over current ones.
However generally every game and setup is different so still, you may have to edit some values in Setup.ini.
IIIB. Meaning of Used Values in Setup.ini
There's no need to re-discover America so i'm taking this part from yener's thread:
InstallOptions => this part defines main game info
ApplicationName => Name of the game
Publisher => Publisher name of the game
MyExecutableName => main executable of the game (this will have .exe extension)
MyExecutablePath => define this if the main executable is not in root folder, but in subfolder
example gamefolder\bin32\yener90.exe you need to define like this:
MyExecutableName=yener90
MyExecutablePath=bin32
#######
if you have two executables, you need following lines:
MyExecutableIconName2 => Name of the shortcut and autorun menu of the second executable
MyExecutableName2 => secobd executable of the game
MyExecutablePath2 => define this if the second executable is not in root folder, but in subfolder
#######
SaveGameFolder => define here the folder of the savegames
GameSize => Size of the game in MB
Lang => supported languages
LangUI => if you enable this (by using worth 1), language selector will be disabled and windows language will be used automaticly
PrecompVer => defines the version of precomp, if you used it
Editor => if you edited my source, you can put your name here.
Install Settings
InstallSettings => this part defines gdf binaries
GDFBinary => name of the gdf binary
only required if your games needs two gdf binaries:
GDFBinary2 => name of the second gdf binary
You can also define language specific gdf binaries:
just take from Language Info your language and add it to the end of GDFBinary.
Example for a Turkish and Greek gdf binary
GDFBinaryTR=GDF_Turkish.dll
GDFBinaryGR=GDF_Greek.dll
Extract Settings
ExtractSettings => this part defines files for extracting
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1; PrecSrep:0;Lang:de
FreeArcFile2={src}\Data2.cab;DestDir:{app};Disk:1
Data1.cab => name of the archive that should be extracted
DestDir:{app} => folder where the game should be extracted ({app} is game folder)
Disk => number of, on which disk the archive is
Precsrep => use extreme decompression method
for this you need to compress the archive this way:
Example if you want to name your archive Data.cab
Compress all files in Data.arc
-> Compress Data.arc in Data.pcf
-> Compress Data.pcf in Data.srep
-> Compress Data.srep in Data.cab
Lang => defines for which language the archive should be extracted (look for available languages to "Language Info")
FreeArcFile1 number of archive which should be extracted
FreeArcFile = Defines the file header. Possible values FreeArcFile, 7zFile and RarFile
1 = defines number of archive which should be extracted
if you want to extract one FreeArcFile one 7z file you need to define like this:
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1; PrecSrep:0;Lang:de
7zFile1={src}\Data2.cab;DestDir:{app};Disk:1
Interface
InterfaceSettings => this part defines interface settings of the installer
BackgroundWidth => set the background image width => it should be the width of 1.jpg or flash.swf
BackgroundHeight => set the background image height => it should be the height of 1.jpg or flash.swf
ButtonWidth => set the button image width => it should be the width of button.png
ButtonHeight => set the button image height => it should be the height of button.png (not the whole height -> only one button height)
ButtonLabelX => move the buttons text to left/right (standard = 0) positive value moves right/negative left
ButtonLabelY => move the buttons text to up/down (standard = 0) positive value moves down/negative up
Button1Left => set the button position left (next / standard installation button)
Button1Top => set the button position top (next / standard installation button)
Button2Left => set the button position left (back / custom installation button)
Button2Top => set the button position top (back / custom installation button)
Button3Left => set the button position left (cancel button)
Button3Top => set the button position top (cancel button)
Button4Left => set the button position left (music button)
Button4Top => set the button position top (music button)
FinishPosBackPos => set where the finish button should be placed => 1 = place of back button 0 = place of nextbutton
ButtonFont => set the button font
ButtonFontBold => set if the button font should be bold
ButtonFontSize => set the button font size
this part only works if you used button.png
ButtonFontColor => set the button font color => color need to be reversed => exchange first two values with the last two values
ButtonFontColorOnMouse => set the button font color, if you move the mouse on it => color need to be reversed => exchange first two values with the last two values
ButtonFontColorMouseDown => set the button font color, if you click on it => color need to be reversed => exchange first two values with the last two values
ButtonFontColorDisabled => set the button font color, if button is disabled => color need to be reversed => exchange first two values with the last two values
ButtonOneLiner => set if the button text should be wrapped or not
EnableAutorunMenu => enable this if you want to use Autorun menu feature
EnableFastInstall => enable/disable standard installation/custom installation button
FlashLeft => set the flash animation position left in installer
FlashTop => set the flash animation position top in installer
FlashWidth => set the flash animation position widthin installer
FlashHeight => set the flash animation position height in installer
InstallerWidth => set the width of the installer = it should have the width of installer.jpg
InstallerHeight => set the height of the installer = it should have the height of installer.jpg
LogoLeft => set the logo position left in installer
LogoTop => set the logo position top in installer
LogoWidth => set the width of the logo = it should have the width of logo.jpg
LogoHeight => set the height of the logo = it should have the height of logo.jpg
ProgressBarHeight => set the width of progressbar
SetupFont => set the setup font
SetupFontColor => set the setup font color, if you click on it => color need to be reversed => exchange first two values with the last two values
ShowLogoInBG => enable/disable logo in background
SmallButtonWidth => set the small button image width => it should be the width of smallbutton.png
SmallButtonHeight => set the small button image height => it should be the height of smallbutton.png
SmallInstallerFontColor => define the color of setup font in small installer => if not defined, setup will use SetupFontColor
SmallInstallerWidth => set the small installer image width => it should be the width of smallinstaller.jpg
SmallInstallerHeight => set the small installer image height => it should be the height of smallinstaller.jpg
TextCenter => enable/disable center alignment of the text in installer
TextPositionLeft => set the texts left position
TextPositionTop => set the texts top position
TextPositionWidth => set the texts width => it should be the width of TextBG.png if you use it
TextPositionHeight => set the texts height => it should be the height of TextBG.png if you use it
TextSpaceFromBorder => set the space between the text and the border of the text file
Autorun
This part AutorunSettings is only required, if you enabled EnableAutorunMenu=1
AutorunSettings => options for autorunmenu
AutorunWidth => set the width of the Autorun= it should have the width of Autorun.jpg
AutorunHeight => set the height of the Autorun = it should have the height of Autorun.jpg
ButtonLabelX => move the buttons text to left/right (standard = 0) positive value moves right/negative left
ButtonLabelY => move the buttons text to up/down (standard = 0) positive value moves down/negative up
ButtonWidth => set the button image width => it should be the width of button.png
ButtonHeight => set the button image height => it should be the height of button.png (not the whole height -> only one button height)
ExitLeft => set the button position left (exit button)
ExitTop => set the button position top (exit button)
InstallLeft => set the button position left (install/uninstall button)
InstallTop => set the button position top (install/uninstall button)
PlayLeft => set the button position left (play button)
PlayTop => set the button position top (play button)
ButtonFont => set the button font
ButtonFontBold => set if the button font should be bold
ButtonFontSize => set the button font size
this part only works if you used button.png
ButtonFontColor => set the button font color => color need to be reversed => exchange first two values with the last two values
ButtonFontColorOnMouse => set the button font color, if you move the mouse on it => color need to be reversed => exchange first two values with the last two values
ButtonFontColorMouseDown => set the button font color, if you click on it => color need to be reversed => exchange first two values with the last two values
ButtonFontColorDisabled => set the button font color, if button is disabled => color need to be reversed => exchange first two values with the last two values
DisableWindowBorder => Enable/disable window border in autorun
LangBoxCenter => center language box in autorun
if LangBoxCenter enabled then you dont need to set LangBoxLeft
LangBoxLeft => set the language box position left
LangBoxTop => set the language box position top
RoundedCornerX => will give you rounded corner in autorun (Standard = 0)
RoundedCornerY => will give you rounded corner in autorun (Standard = 0)
for perfect math RoundedCornerX and RoundedCornerY should have the same values
example if you set both to 200
http://img195.imageshack.us/img195/4082/examplesi.jpg
RoundedCorner applied Deux Ex Autorun example
Launcher
LauncherSettings => install additional files
InstallRedist => enable/disable additional installations
Launch1 => set the name of the application which should be installed
Launch164 => if you enable this, this application will be only installed on X64 systems
Launch1BeforeInstall => if you enable this, this application will be installed before the installation begins
LaunchCom1 => type the path of executable including it's name
LaunchArg1 => set the command line of the application (if you launch it silent then its required)
you can max execute 8 applications
ADDITIONAL: If Additional installations exist in another folder such as 'redist' then you'll start with this folder name, for example: redist\program.exe
IIIC. Editing of Used Files in Setup.CAB
Taken from yener90
Autorun folder:
Required files:
Autorun.jpg => Autorun background image
Optional files:
Button.png => Button background image (not selected)
ButtonSelected.png => Button background image (selected)
ButtonClicked.png => Button background image (clicked)
ButtonDisabled.png => Button background image (disabled)
Button.wav => sound if you clicked the button
for getting the next work you need button.png:
ButtonOnMouse.wav => sound if you move the mouse to a button
Background folder: (optional)
1 - unlimited.jpg => background image for installer
example 4 background images Background folder:
1.jpg, 2.jpg, 3.jpg, 4.jpg
OR
you can also use Flash files as background image
flash.swf => flash file for background
KNOWN BUG: Backgrounds supported 10 images, putting more than 10 images will cause instant skip to latest image.
Setup folder:
Required files:
Installer.jpg => Installer background image
Optional files:
Button.png => Button background image for the big buttons (not selected)
ButtonSelected.png => Button background image for the big buttons (selected)
ButtonClicked.png => Button background image for the big buttons (clicked)
You can also use for the 4 big buttons CUSTOM buttons -> not necessary.
names should be for button2 for example:
Button2.png => Button background image for the big buttons (not selected)
Button2Selected.png => Button background image for the big buttons (selected)
Button2Clicked.png => Button background image for the big buttons (clicked)
Button.wav => sound if you clicked the button
for getting the next work you need button.png:
ButtonOnMouse.wav => sound if you move the mouse to a button
Checkbox.png => checkbox image
Edit.png => image for the background of your game path selection
Flash.swf => Flash animation in setup
logo.png => logo image for installer (and background => look at the options)
logo2.png => logo image for background
music.mp3 => installer music
ProgressBackground.png => progressbar background image
ProgressImg.png => progressbar image
SmallButton.png => Button background image for the small buttons (not selected)
SmallButtonSelected.png => Button background image for the small buttons (selected)
SmallButtonClicked.png => Button background image for the small buttons (clicked)
SmallInstaller.jpg => background of the installer while installing
SmallInstaller.png => dark base for the installer while installing
Splash.png => logo image while starting
TextBg.png => background of the text part of installer
Main - Inside setup.cab
font.ttf => custom font for setup's writings
font2.ttf => custom font for buttons
setup.cjstyles => isskin for setup
cursor.cur => custom cursor for setup
IIID. Internal-External Setups, Registry Keys
a) Internal Installation
This is activated by removing semicolon ( ; ) from following line in script:
;#define ProgramFiles "F:\Program Files (x86)\Atari\TDU2"
By removing semicolon from this, you will 'authorize' INNO setup to create it's own .bin files according to diskspan(not spam) and compression ratio.
INNO Setup will compress files in given path (in this example; TDU2). It will compress them regardless the content or anything else, so using internal setups in conversions is easy and effective solution.
b) External Installation
By keeping semicolon, you'll create only base files (setup.exe, .ico, trasferring of any changing to exe)
This type of installation will give converter more possibilites about compressions. Since you cant do precomp+srep+lzma at the same time in INNO, using external inst. is more logic. You can compress files better than INNO's compression, however beware; it'll take more time to create conversion and also install the game.
For example, converting MaxPayne 3 with all types of compressions took 12 hours and more than 1 hour to install.
c) Registry Keys:
Another important feature of INNO Setup. No matter how you install the game, you will need registry keys. Adding them may look complicated, however it's easy as other stuff in INNO.
First of all find your game in your Registry Editor. (In our example we'll work on Test Driver Unlimited 2):
http://img839.imageshack.us/img839/9416/81015131.png
Once you found your data, open INNO script and found registry section. Normally you will find default uninstall registry key in there. Copy it, paste it, and edit it along adding regkeys. However DO NOT delete it.
In your registry editor, you will find 3 columns; Name, Type, Data.
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: UninstallString; ValueData: {uninstallexe}; ValueType: string; Flags: UninsDeleteKey;
Subkey corresponds the path of registry key, so we will not touch it.
ValueName corresponds 'Name' in your registry editor. You will edit this according to your registry key in OS. 'Exepath, InstallDir' are our ValueNames in here.
ValueData corresponds 'Data' in Registry Editor. According to conversion, this can be numbers, game path, or simply a command. If you're working on multiple language supported game, it's better to add all possible languages to it.
If you need to add number or letter, you'll type it directly without these ' {} '
ValueType is generaly remains same, so i'll pass this, same goes for Flags.
So in the end, our Registrykeys about TDU2 will look like this (Attention to multiple language keys and how they're looking):
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: UninstallString; ValueData: {uninstallexe}; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: ExePath; ValueData: {app}\{code:GetMyAppExePath}\{code:GetMyAppExeName }; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: InstallDir; ValueData: {app}\{code:GetMyAppExePath}; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: LanguagePack; ValueData: EU; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: LauncherPath; ValueData: {app}\{code:GetMyAppExePath}\UpLauncher.exe; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: Language; ValueData: en; ValueType: string; Flags: UninsDeleteKey; Languages: eng;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: Language; ValueData: fr; ValueType: string; Flags: UninsDeleteKey; Languages: fre;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: Language; ValueData: de; ValueType: string; Flags: UninsDeleteKey; Languages: ger;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: Language; ValueData: it; ValueType: string; Flags: UninsDeleteKey; Languages: ita;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: Language; ValueData: sp; ValueType: string; Flags: UninsDeleteKey; Languages: esp;
IV. COMPRESSION
http://img836.imageshack.us/img836/134/fatgirlposter129625.jpg
Like our poster said, when lzma is not enough for our needs, external installation enters the business.
INNO's internal compression supports up to lzma2/ultra64. Don't be deceived to it's title, there's a slight difference between lzma and ultra64, in some content. Compression takes longer, however the gain might be couple of megabytes.
To use external compression, first of all you need a setup. But attention, this one's compression system must be disabled. To do this, add semicolon on second line of INNO, which there's game's path lies.
After this, re-compile the script and you got external-ready setup.exe.
Currently, you can use cmd/bat file to automate everything. You only need to edit compression level etc. in bat file and then you're good to go.
Regardless what you're going to do with compression, if you are using external methods, you will need to add, PrecompVer=inside in InstallOptions in setup.ini.
Bamse clearly explained these values;
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8
means definition of compression method
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8
means compressing with precomp (with parameters defined in arc.ini under [External compressor:precomp] section)
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8
means additional parameter for precomp (which is not defined in arc.ini), in this case it's -v parameter
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8
means compressing with srep (with parameters defined in arc.ini under [External compressor:srep] section), also here you can add parameters separated by ":"
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8
means compression with lzma
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8
means additional parameters for lzma, in this case -a1 -mfbt4 -d256m -fb128 -mc1000 -lc8
Once you edit these values (or you can leave them unchanged - attention do not use the values above they're just examples) Click the bat file and let the cmd run and do the compressing for you.
Here's the example of Bamse's Prototype 2 conversion (I'm testing something different)
echo off
arc a -ep1 -r -w.\ .\data1.cab
[email protected] -mlzma:a1:mfbt4:d256m:fb128:mc1000:lc8
arc a -ep1 -r -ed -w.\ .\data2.cab
[email protected] -x".\audio\*" -x".\movies\*" -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 ".\*"
arc a -ep1 -r -w.\ .\data3.cab -mlzma:a1:mfbt4:d256m:fb128:mc1000:lc8 ".\movies\#converted\*"
This cmd works with 2 data.txt files which contains which files will be compressed or excluded. '-n' value means cmd will compress files inside .txt and '-x' value means they'll be excluded. '-r' value means, bat file will compress everything in that folder, including sub-folders and their contents.
V. TROUBLESHOOT - TUTORIALS
Q: I'm having TGUID error during Compile. It says 'Error: Unknown type 'TGUID'
S: You're not using correct version of INNO Setup. You must use/download Unicode version and compile the conversion with it.
Q: I'm having TGUID errror during Compile. It says 'Duplicate identifier 'TGUID'
S: You're not using correct version of INNO Setup. You must use/download ANSI version and compile the conversion with it.
Q: I downloaded the conversion, edited path of the game and clicked Compile. It completed in a second and it's not installing the game.
S: Delete the semicolon ( ; ) in front of second line aka #define ProgramFiles and re-compile.
Q: I downloaded the setup and backgrounds/buttons are missing.
S: This is a known bug, i also have this issue time to time. There are multiple solutions:
a) Rename the folder. (Chance of success 75%)
b) Create another folder on desktop, move the content to this folder (Chance of success 100%)
Q: Where can i put video.avi and how to play it ?
S: You will place video.avi/flv in Setup.cab/Setup folder. But beware, current CI doesnt support video-backgrounds and music at the same time, so you will watch the same video over and over again during install.
Q: I'm having 'Insert next disk' error in conversion, what should i do ?
S: If you have bin files in conversion and getting this error, open Setup.ini and delete [ExtractSettings] and it's contents.
Q: I'm having 'Insert Disk1 to continue' error, in fact Disk1 is already inserted ?
S: That's because you put 2 or less bin files in the folder. In general every conversion needs 3bin files for each DVDs. You can put 4 or more if you're making DVD9 however, putting less bin files, will result this error.
I know it might have been answered but have not seen it. I'm making an installer for Dos Box running an old Dos game called 007 License to Kill, using Inno-Setup and would like to set a shortcut in the start menu and on the desktop using an icon I made.
Lets say the icon name is myicon.ico, after I made the script using Inno-Setup, under the heading [Icons] this is what it looks like;
[Icons]
Name: {group}\007 License to Kill; Filename: C:\Games\007LicensetoKill\dosbox.exe; IconFilename: C:\Games\007LicensetoKill\dosbox.exe; IconIndex: 0
Name: {commondesktop}\007 License to Kill; Filename: C:\Games\007LicensetoKill\dosbox.exe; IconFilename: C:\Games\007LicensetoKill\dosbox.exe; IconIndex: 0; Tasks: desktopicon
What I want to add or change is, instead of the DosBox.exe showing up as the desktop or start menu icon I wanted it to show myicon.ico I already have the .ico file placed in the DosBox directory and the game in a separate folder in the DosBox directory. I tried to do it but it seems I'm doing the wrong thing. After compiling the game and DosBox I either end up with no icon to display or end up with the DosBox icon. I've attached the Iss file I made and if someone can please give me a working example or even modify my Iss file I would really appreciate it very much. Thank you.
Razor12911
04-04-2013, 04:06
check post 293 and 294 in this thread (http://fileforums.com/showthread.php?t=93193&page=20)
Thank you Razor but somehow it still does not work for me. Take a look at the first three pictures and then look at the fourth picture the first one I click on the desktop "properties" no target.
The second picture I click on "open file location" Third picture shows you where its linked to.
4th picture is after installing using the Dosbox.exe as the destop shortcut icon and when clicked it opens DosBox and launches the game immediately.
http://img684.imageshack.us/img684/9484/snap1dk.jpg http://img850.imageshack.us/img850/1017/snap2t.jpg http://img683.imageshack.us/img683/9848/snap3qd.jpg http://img109.imageshack.us/img109/4683/snap4e.jpg
So the thread you referred me to, I tried it and it just does not work.
Razor12911
04-04-2013, 10:28
you have to include the icon in [Files] and set destination to {app}
Thank you Razor. That fixed it. I saw the mistake I made after you pointed it out .
mausschieber
05-04-2013, 23:08
the error is in both versions
I have read many treads
but no solution found
so I hope you can help me
oh and my system is win7 64bit
my video card has 4GB
Thanks in advance
http://i.imagebanana.com/img/re9fabob/ErrorInno.jpg
[Code]
#define processor "2000"
#define videoram "255500000"
#define ram "2047"
#define pagefile "756"
[Setup]
AppName=System Check
AppVerName=System Check
DefaultDirName={pf32}\System Check
[Files]
Source: C:\Program Files (x86)\Inno Setup 5\get_hw_caps.dll; Flags: dontcopy
[Code]
function GetVideoCardName(): PansiChar; external 'hwc_GetVideoCardName@files:get_hw_caps.dll stdcall';
function GetSoundCardName(): PansiChar; external 'hwc_GetSoundCardName@files:get_hw_caps.dll stdcall';
function DetectHardware(): Integer; external 'hwc_DetectHardware@files:get_hw_caps.dll stdcall';
function GetHardDriveFreeSpace(hdd: integer): Integer; external 'hwc_GetHardDriveFreeSpace@files:get_hw_caps.dll stdcall';
function GetHardDriveName(hdd: integer): PansiChar; external 'hwc_GetHardDriveName@files:get_hw_caps.dll stdcall';
function GetHardDriveTotalSpace(hdd: integer): Integer; external 'hwc_GetHardDriveTotalSpace@files:get_hw_caps.dll stdcall';
function GetHardDrivesCount(): Integer; external 'hwc_GetHardDrivesCount@files:get_hw_caps.dll stdcall';
function GetSoundCards(): Integer; external 'hwc_GetSoundCards@files:get_hw_caps.dll stdcall';
function GetSystemPage(): Integer; external 'hwc_GetSystemPage@files:get_hw_caps.dll stdcall';
function GetSystemPhys(): Integer; external 'hwc_GetSystemPhys@files:get_hw_caps.dll stdcall';
function GetVidMemLocal(): Integer; external 'hwc_GetVidMemLocal@files:get_hw_caps.dll stdcall';
function GetVidMemNonLocal(): Integer; external 'hwc_GetVidMemNonLocal@files:get_hw_caps.dll stdcall';
function GetVideoCardDev(): Integer; external 'hwc_GetVideoCardDev@files:get_hw_caps.dll stdcall';
function GetVideoCardVen(): Integer; external 'hwc_GetVideoCardVen@files:get_hw_caps.dll stdcall';
function CheckSystemPage(PreviousPageId: Integer): Integer;
var
Page: TWizardPage;
ProcessorName:string;
Processor,ProcessorNamePanel,VideoCardNamePanel,Vi deoCardPanel,AudioCardNamePanel,RAMTotalPanel,Page FileTotalPanel,AudioCardPanel,RAMPanel,PageFilePan el: TMemo;
ProcessorMHZ: Cardinal;
StaticText,StaticText2:TNewStaticText;
oneGhz,oneMB,Rest:Integer;
begin
RegQueryStringValue(HKLM, 'HARDWARE\DESCRIPTION\System\CentralProcessor\0',' ProcessorNameString', ProcessorName);
RegQueryDWordValue(HKLM, 'HARDWARE\DESCRIPTION\System\CentralProcessor\0',' ~MHz', ProcessorMHZ);
GetVidMemLocal;
GetSoundCards;
oneGhz:=1000;
Rest:=ProcessorMHZ - oneGhz;
oneMB:=1024*1024;
Page := CreateCustomPage(PreviousPageId,'Hardware','Setup hat die folgenden Voraussetzungen erkannt');
StaticText:=TNewStaticText.Create(Page);
with StaticText do begin
Parent:=Page.Surface;
Caption:='Alle Komponenten erfüllen die Anforderungen des Spiels.';
Left:=0;
Top:=5;
AutoSize:=True;
end;
StaticText2:=TNewStaticText.Create(Page);
with StaticText2 do begin
Parent:=Page.Surface;
Caption:='Wenn Sie bereit sind fortzufahren, klicken Sie auf "Weiter"'
Left:=0;
Top:=220;
AutoSize:=True;
end;
Processor := TMemo.Create(Page);
with Processor do begin
Parent := Page.Surface;
Lines.Add(ExpandConstant(' Prozessor'));
Color := -16777194;
Left := ScaleX(0);
Top := ScaleY(32);
Width := ScaleX(104);
Height := ScaleY(21);
ReadOnly := True;
Cursor := crArrow;
end;
ProcessorNamePanel := TMemo.Create(Page);
with ProcessorNamePanel do begin
Parent := Page.Surface;
Lines.Add(' '+ProcessorName+' '+IntToStr(ProcessorMHZ/oneGhz)+','+IntToStr(Rest)+'GHz'+' '+'@'+IntToStr(ProcessorMHZ)+'MHz');
Left := ScaleX(109);
Top := ScaleY(32);
Width := ScaleX(304);
Height := ScaleY(21);
Color := $CCFFCC;
ReadOnly := True;
Cursor := crArrow;
end;
//CPU-Geschwindigkeit//
if ProcessorMHZ<{#processor} then begin
ProcessorNamePanel.Color:=clred;
StaticText.Caption:='Komponenten in rot erfüllen nicht die Anforderungen des Spiels.';
end;
VideoCardPanel:=TMemo.Create(Page);
with VideoCardPanel do begin
Parent := Page.Surface;
Lines.Add(ExpandConstant(' Grafikkarte'));
Color := -16777194;
Left:=ScaleX(0);
Top:=Processor.Top+27;
Width:=ScaleX(104);
Height:=ScaleY(21);
ReadOnly := True;
Cursor := crArrow;
end;
VideoCardNamePanel:=TMemo.Create(Page);
with VideoCardNamePanel do begin
Parent:=Page.Surface;
Lines.Add(' '+GetVideoCardName+' '+IntToStr(GetVidMemLocal/oneMB)+' MB');
Left:=ScaleX(109);
Top:=VideoCardPanel.Top;
Width:=ScaleX(304);
Height:=ScaleY(21);
Color := $CCFFCC;
ReadOnly := True;
Cursor := crArrow;
end;
//Video Memory//
if GetVidMemLocal<{#videoram} then begin
StaticText.Caption:='Komponenten in rot erfüllen nicht die Anforderungen des Spiels.';
VideoCardNamePanel.Color:=clred;
end
; AudioCardPanel:=TMemo.Create(Page);
with AudioCardPanel do begin
Parent := Page.Surface;
Lines.Add(ExpandConstant(' Soundkarte'));
Color := -16777194;
Left := ScaleX(0);
Top:=VideoCardPanel.Top+27;
Width := ScaleX(104);
Height := ScaleY(21);
ReadOnly := True; Cursor := crArrow;
end;
AudioCardNamePanel:=TMemo.Create(Page);
with AudioCardNamePanel do begin
Parent:=Page.Surface;
Lines.Add(' '+GetSoundCardName);
Left:=ScaleX(109);
Top:=AudioCardPanel.Top;
Width:=ScaleX(304);
Height:=ScaleY(21);
Color := $CCFFCC;
ReadOnly := True;
Cursor := crArrow;
end;
//Audio//
if GetSoundCards=0 then begin
StaticText.Caption:='Komponenten in rot erfüllen nicht die Anforderungen des Spiels.';
with
AudioCardNamePanel do begin
Color:=clred;
Lines.Add('nicht gefunden');
ReadOnly := True; Cursor := crArrow;
end;
end;
RAMPanel:=TMemo.Create(Page);
with RAMPanel do begin
Parent := Page.Surface;
Lines.Add(ExpandConstant(' RAM'));
Color := -16777194;
Left := ScaleX(0);
Top:=AudioCardPanel.Top+27;
Width := ScaleX(104);
Height := ScaleY(21);
ReadOnly := True;
Cursor := crArrow;
end;
RAMTotalPanel:=TMemo.Create(Page);
with RAMTotalPanel do begin
Parent:=Page.Surface;
Lines.Add(' '+IntToStr(GetSystemPhys+1) +' MB');
Left:=AudioCardNamePanel.Left;
Top:=RAMPanel.Top;
Width:=AudioCardNamePanel.Width;
Height:=ScaleY(21);
Color := $CCFFCC;
ReadOnly := True;
Cursor := crArrow;
end;
//RAM//
if GetSystemPhys+1<{#ram} then begin
RAMTotalPanel.Color:=clred;
StaticText.Caption:='Komponenten in rot erfüllen nicht die Anforderungen des Spiels.';
end;
PageFilePanel:=TMemo.Create(Page);
with PageFilePanel do begin
Parent := Page.Surface;
Lines.Add(ExpandConstant(' Auslagerungsdatei'));
Color := -16777194;
Left := ScaleX(0);
Top:=RAMPanel.Top+27;
Width := ScaleX(104);
Height := ScaleY(21);
ReadOnly := True;
Cursor := crArrow;
end;
PageFileTotalPanel:=TMemo.Create(Page);
with PageFileTotalPanel do begin
Parent:=Page.Surface;
Lines.Add(' '+IntToStr(GetSystemPage)+' MB');
Left:=RAMTotalPanel.Left;
Top:=PageFilePanel.Top;
Width:=RAMTotalPanel.Width;
Height:=ScaleY(21);
Color := $CCFFCC;
ReadOnly := True; Cursor := crArrow;
end;
//Auslagerungsdatei//
if GetSystemPage<{#pagefile} then begin
PageFileTotalPanel.Color:=clred;
StaticText.Caption:='Komponenten in rot erfüllen nicht die Anforderungen des Spiels.';
end;
Result:=Page.ID;
end;
procedure InitializeWizard();
begin
CheckSystemPage(wpWelcome);
end;
[LangOptions]
LanguageName=German
LanguageID=$0407
pakrat2k2
06-04-2013, 00:45
problem statement ?
#define videoram "255500000" > bytes
#define ram "2047" > 2MB = 2048
Razor12911
06-04-2013, 09:52
The Problem is that the integer produced by get_hw_caps.dll is a negative value. you can even see the -42MB which is false information.
Therefore I came up with something to fix but I don't know if it work. I want you to test this installer system req. if the problem is solved then I will tell you what to do. if not, tough luck.
you must report back results.
mausschieber
06-04-2013, 16:12
The Problem is that the integer produced by get_hw_caps.dll is a negative value. you can even see the -42MB which is false information.
Therefore I came up with something to fix but I don't know if it work. I want you to test this installer system req. if the problem is solved then I will tell you what to do. if not, tough luck.
you must report back results.
http://i.imagebanana.com/img/ssvncmbj/Error2.jpg
Razor12911
07-04-2013, 01:53
hmm, I see, it fails, trying the last method, if this fails then I got no clue or solution.
try this
mausschieber
07-04-2013, 02:39
hmm, I see, it fails, trying the last method, if this fails then I got no clue or solution.
try this
http://i.imagebanana.com/img/zmanojsa/Error3.jpg
Razor12911
07-04-2013, 02:53
hmm, I'm out of Ideas, will ask someone.
mausschieber
07-04-2013, 10:54
hmm, I'm out of Ideas, will ask someone.
my ideas are also at the end
but thanks anyway for your toil
andrei222
10-04-2013, 04:08
What i need to copy from this to my iss ?and how to export this as reg file?
https://lh5.googleusercontent.com/-VdSV0_65Nfk/UWVHn-CcDlI/AAAAAAAAAFI/mzBXbAnWIQg/s758/Image.jpg
Who know please help me becouse i so beginner !!!
Thanks
spawniectes
10-04-2013, 04:35
What i need to copy from this to my iss ?and how to export this as reg file?
https://lh5.googleusercontent.com/-VdSV0_65Nfk/UWVHn-CcDlI/AAAAAAAAAFI/mzBXbAnWIQg/s758/Image.jpg
Who know please help me becouse i so beginner !!!
Thanks
you need to export all, just push right click over the folder and export, then download this REG to INNO Converter (http://fileforums.com/showpost.php?p=410165&postcount=2) open the program it will ask you for your .reg file and it will convert it to INNO script, then just open the script copy and paste to your installer script. that's all.
andrei222
10-04-2013, 04:50
Thanks man
Now i need to know if need to change something
or i paste in my iss script
https://lh5.googleusercontent.com/-0C6eHH5FleU/UWVRgwJ8xdI/AAAAAAAAAFc/y5t1IaA0HR0/s646/Imag543e.jpg
spawniectes
10-04-2013, 05:16
Thanks man
Now i need to know if need to change something
or i paste in my iss script
https://lh5.googleusercontent.com/-0C6eHH5FleU/UWVRgwJ8xdI/AAAAAAAAAFc/y5t1IaA0HR0/s646/Imag543e.jpg
if you want send me the reg and I will modify for you.
pakrat2k2
10-04-2013, 05:21
you dont need :
cd drive line
Folder line
install from line
change Install Dir line to "Install Dir"="{app}"
locale & language lines will need to be changed for which language the user has game installed in if not english.
andrei222
10-04-2013, 06:12
if you want send me the reg and I will modify for you.
here is
spawniectes
10-04-2013, 09:27
here is
Here is the script, just add to your installerscript.iss under [registry] section. :D
pakrat2k2
10-04-2013, 11:15
spawniectes error is reg.iss script
Root: HKLM; SubKey: SOFTWARE\Electronic Arts\Need for Speed SHIFT; ValueType: string; ValueName: Install Dir; ValueData: {app}\Need for Speed SHIFT\; Flags: uninsdeletevalue uninsdeletekeyifempty
BOLD doesn't need to be there. ( users can choose what to name it, also its specified in setup.ini too.
huavancuong098
10-04-2013, 23:31
When I change the icon in Inno Setup. Why the output retains the old icon icon even though I've replaced all with new icons. Hope you can help me!
pakrat2k2
11-04-2013, 05:06
bofore or after compiling the script
When I change the icon in Inno Setup. Why the output retains the old icon icon even though I've replaced all with new icons. Hope you can help me!
try to move setup.exe to other folder and check
huavancuong098
11-04-2013, 07:22
although I tried to remove it and place a new icon or delete setup.exe file so it still, nothing changed
although I tried to remove it and place a new icon or delete setup.exe file so it still, nothing changed
do you use yener90 CI/CIU or your own script?
huavancuong098
11-04-2013, 07:55
yes, I use them, add 1 problem when CI is used in the installation process runs too fast image unlike the yener90. I do not understand why this is so, is there a way to make late than never!
Razor12911
11-04-2013, 08:41
Answer (http://fileforums.com/showpost.php?p=417020&postcount=321)
yes, I use them, add 1 problem when CI is used in the installation process runs too fast image unlike the yener90. I do not understand why this is so, is there a way to make late than never!
about your icon problem, i think that when you change your icon, windows explorer just no refresh thumbs in folder with script(if setup.exe have any icon, not standart) try to change icon, compile, and restart system, if problem will be solved, then you will know where is problem ;) ,and try to change icon name and compile script, if will be error during compilation, then icon file is used in script.
amin fear
22-04-2013, 04:26
Inno Setup Tutorial : Splash Video with InnoMediaPlayer Library
Ok guys...hope to be helpful
There was a little bug in previous version of Inno MediaPlayer library that prevents taking ownership of video frame by mouse click...
so I asked the @TLama ( author of Inno MediaPlayer library ) for splash video sample and then he/she noticed of underlying DLL bug and revised Inno MediaPlayer DLL and sample script...then credits goes to TLama...
so for some of you guys that want to have a video file as the SPLASH screen of your Inno Setup projects , without any need to external codec like CodecPack to be installed on user system ( it only needs DirectX to be installed , nothing more ) , follow this tutorial :
01 : Encode your favorite splash video with .WMV extension...doesnt matter which encoding tool...
02 : Download the attachment here...extract it & open the .iss script with UNICODE version of Inno Setup...this is mandatory , because Inno MediaPlayer library ONLY works with unicode version of Inno Setup...
03 : Script is very straightforward...you only need to change video file name or extension...YES ! it supports other video formats ( Based on DirectShow Technology ) , but in my personal touch , I strongly suggest you to use WMV for not having any specific trouble...but final decision is taken by you :D not me:D
04 : Also you can change VideoForm.Caption And MsgBox to explain your branding :D
05 : Both script & DLL library are revised recently to fully support video skip ability...Thanks to @TLama.
06 : If you want to embed this code into your personal script , you only need to handle code segments in " procedure InitializeWizard; " & " procedure DeinitializeSetup; " VERY carefully...:D
Goodluck guys & hope you enjoy it !
Razor12911
22-04-2013, 22:14
although I tried to remove it and place a new icon or delete setup.exe file so it still, nothing changed
I also came across this kind of problem which is not really a problem at all.
your system is now used to the icon, that's all.
copy and paste icon, open icon using any graphic program like windows photo viewer to verify whether icon has changed or not, or just check file size using properties.
:D
or restart pc to refresh icons.
danswano
24-04-2013, 04:02
Hello Razor, do you know if it's possible to use MM (http://encode.ru/threads/835) compression with srep?
Razor12911
24-04-2013, 04:11
sure, that is if arc.ini is set correctly.
I've seen it before, just search for mm in arc.ini and you'll find it. Freearc has many compression libraries :D
danswano
24-04-2013, 06:58
I did the exact search term and didn't find any :/
Can you point me?
Razor12911
24-04-2013, 08:43
hmm, maybe I saw mmzip. gimme the program and maybe I can figure out how it works.
danswano
24-04-2013, 11:56
hmm, maybe I saw mmzip. gimme the program and maybe I can figure out how it works.
It's made by the same freearc dev by the way.
I have 2 probrem with my code
1. I can't show license page before welcome page & ready page before installing page
2. I using StatusLabel.SetBounds but i don't see status in installing page
Please help myyyyy. Sr for my english bad @@
nicola16
30-05-2013, 16:41
Razor12911 I know you recommend a support site for InnoSetup?
here I have not had much practical advice.
Razor12911
30-05-2013, 21:45
what kind of advice?
Thanks to pakrat for reminding me on this thread.
But still I have some questions:
How do you create exact game buttons.
- I'm sure you capture those buttons from the game, right, but which program is good for that; what if I catch cursor also, how to remove it then.
Some users are able to use game cursor in conversions. How?
- Are you using some program to extract game files, which one, but if you can't extract it where do you find it then.
Almost the same question regarding Fonts. Also How?
- Or does PS maybe contains already that kind of the font.
Compression methods?
- How do you know when to use some compression method, when you will use srep, precomp, or no compression at all.
DVD size question?
- When you are using external compression, is it possible to define the size of the "compressed" files i.e. size of the .bin or Data.cab file or whatever:
- e.g. I don't want my DVD to be 3,7GB or 3,27GB or 3,6GB in size, I want to be e.g. 4GB + autorun+setup files..........
Also:
Is it possible if someone could do some basic tutorial about PS - only what is used for conversion.
Or just to post list of tools used in PS needed.
I hope someone is Willing to answer me. :)
Thank You
spawniectes
31-05-2013, 03:36
Thanks to pakrat for reminding me on this thread.
But still I have some questions:
How do you create exact game buttons.
- I'm sure you capture those buttons from the game, right, but which program is good for that; what if I catch cursor also, how to remove it then.
It's possible, you capture a screenshot from the menu that contains the button and then edit on PS
Some users are able to use game cursor in conversions. How?
I do it the same way above
- Are you using some program to extract game files, which one, but if you can't extract it where do you find it then.
Dont know, if I want i.e. Sound from main menu I google it and if not find I capture a video from the main menu and then extract the sound
Almost the same question regarding Fonts. Also How?
Google it
- Or does PS maybe contains already that kind of the font.
Compression methods?
- How do you know when to use some compression method, when you will use srep, precomp, or no compression at all.
It's matter of test, test and guess what, more test
DVD size question?
- When you are using external compression, is it possible to define the size of the "compressed" files i.e. size of the .bin or Data.cab file or whatever:
- e.g. I don't want my DVD to be 3,7GB or 3,27GB or 3,6GB in size, I want to be e.g. 4GB + autorun+setup files..........
Same answer above
Also:
Is it possible if someone could do some basic tutorial about PS - only what is used for conversion.
Or just to post list of tools used in PS needed.
Google it, are plenty tutorials of PS, just need the basics
I hope someone is Willing to answer me. :)
Thank You
Hope you find it usefull
@spawniectes
Thank you for your answers....
What program you use to Extract sound from video file.
Thank You once again.
Cheers
spawniectes
31-05-2013, 05:36
@spawniectes
Thank you for your answers....
What program you use to Extract sound from video file.
Thank You once again.
Cheers
Virtualdub or Vegas 12
nicola16
31-05-2013, 07:48
what kind of advice?
I would like to create two pages and browse the readme file to insert this code in here, but I'm not good: (.
Or resize these pages
Welcome, Dir, License, and Finish.
my project some parts of the code are of black box
help me.
Project1 (http://fileforums.com/attachment.php?attachmentid=6362&stc=1&d=1370011283)
Razor12911
31-05-2013, 08:37
attachment link dead. :D
But everything you need is in documentation.
pakrat2k2
31-05-2013, 08:49
link isn't dead, but I've reuploaded it here
nicola16
31-05-2013, 12:03
Any idea how to resize or move the buttons of the various windows?
I do not know all the codes and do not know where to find them.
I'm a little studying but I'm still beginner.
Razor12911
31-05-2013, 12:40
hmm, okay, this is how you do it,
Create a button or use existing button.
this is how you set up a new button
[Code]
var
Button1: TButton;
procedure InitializeWizard;
begin
Button1:= TButton.Create(WizardForm);
with Button1 do
begin
Left:=Number Here
Top:=Number Here
Width:=Number Here
Height:=Number Here
Parent:= WinControl Here
Caption:= Text Here
end;
RoundedCornerX = 0
RoundedCornerY = 0
This only works in the script but in version 8.5.7.4
1.0.0.6 also can be put on or not.
sentinelks
08-06-2013, 08:01
how can I integrate the setup.exe file setup.cab, so you only have one file and not 2 please
Razor12911
08-06-2013, 08:17
@sentinelks
extract the setup.cab
open the installer and lang script,
Remove semi colon from internal at the beginning and compile.
nicola16
08-06-2013, 09:03
I can not find the values of this image TextBG.png in the ini file and the source setup.cab 1.0.0.6??
how do I use it if you do not reference, guidance and incomplete, and even the source.
these are the values
/ / / / / / / / / / / / / / / / / / / / / / SETUP INTERFACE DESIGN / / / / / / / / / / / / / / / / / / / / / /
[Flash1]
Left = 55
Top = 0
Width = 714
Height = 106
[Logo]
LogoLeft = 400
LogoTop = 90
LogoWidth = 178
LogoHeight = 80
[TextStage]
Top = 100
Left = 397
Width = 498
Height = 310
SpaceFromBorder = 10
Center = 1
Font = Edo
FontSize = 3
FontColor = $ 000,000
[InterfaceSettings]
ChangeFrame = 0
InstallerWidth = 900
InstallerHeight = 500
BackgroundWidth = 1280
BackgroundHeight = 720
ShowBGFullscreen = 0
ProgressBarLabelColor = $ FFFFFF
ProgressBarHeight = 12
MoveProgressBarLabel = 0
MoveDirectoryInfo = 15
MoveProgressBar = 4
how to use these values do not write anything specific??
TextCenter => enable/disable center alignment of the text in installer
TextPositionLeft => set the texts left position
TextPositionTop => set the texts top position
TextPositionWidth => set the texts width => it should be the width of TextBG.png if you use it
TextPositionHeight => set the texts height => it should be the height of TextBG.png if you use it
TextSpaceFromBorder => set the space between the text and the border of the text file
reference to the guide (http://fileforums.com/showpost.php?p=404999&postcount=3)
Razor12911
08-06-2013, 10:21
@sentinelks
hmm, to leave setup.exe only do
Internal and set Debug True.
danswano
12-06-2013, 06:50
Hello,
I have a game with 2 languages and each languages separated in one arc file
How to make 2 radio options inside the installer to allow users to choose what language want to install (the selection must be limited to one language only not both)?
data.arc
english.arc
french.arc
Thanks.
Razor12911
12-06-2013, 07:10
use components section and use the default isdone script for this.
danswano
13-06-2013, 06:27
Hello,
Precomp 0.3.8 crashes on some file extensions, is it normal?
Razor12911
13-06-2013, 08:05
yea and nah, precomp is kinda unpredictable.
Use precomp 040 is 038 fails.
danswano
13-06-2013, 08:21
Thanks, on slow mode who win between those 2 versions or it's unpredictable as well?
Razor12911
13-06-2013, 09:08
the thing is that when I use precomp038 and precomp040, I get better results than when I use precomp042
danswano
14-06-2013, 14:39
Hello,
Is it possible to detect the operating system arch 32 or 64 bit and depend on what detects it extracts a specific arc file?
Thanks.
Razor12911
14-06-2013, 14:51
yep, just use 'ISWin64' or 'not ISWin64'
danswano
14-06-2013, 15:55
aren't these flags just for reg entries? how to use them with ISArcExtract?
Razor12911
14-06-2013, 16:08
Example
if ISWin64 then
ISArcExtract.....
if not ISWin64 then
ISArcExtract......
Think fast. they are flags for reg entries and the also work in code section
danswano
14-06-2013, 16:13
Dude, i can't think as fast as you :D
Just saw the example on the inno docs
http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_iswin64
Thanks, i will try it right now. :)
danswano
14-06-2013, 16:18
I'm using this flag for VC++ Redist 64bit Install Task
Flags: SkipIfDoesntExist 64bit
on XP i get this is not a 64bit app error, is it because of the flag or because of XP?
Should i use with ISDone:
Flags: SkipIfDoesntExist 64bit
or
Flags: SkipIfDoesntExist IsWin64
pakrat2k2
14-06-2013, 16:23
just use 'ISWin64' or 'not ISWin64' dont add the skipifdoesntexist
IE
[Files]
Source: x64 \ File.exe; DestDir: {app}; Check: IsWin64
Source: x32 \ File.exe; DestDir: {app}; Check: not IsWin64
danswano
14-06-2013, 16:29
I didn't mean the SkipIfDoesntExist, i meant "64bit"
I've added SkipIfDoesntExist flag just increase i forgot to include the redist file.
So which flag is really functional for tasks "64bit" or "ISWin64" ??
pakrat2k2
14-06-2013, 16:31
added additional info.. its just the iswin64 / not iswin64
dont need the SkipIfDoesntExist because if inno doesnt find the file it just jumps over that part..
someone correct me if im wrong
Kurutucu
16-06-2013, 09:40
Can anyone give me max payne 3 black box repack inno setup script.Thankyou in advance
Use this for compression(compress.bat). http://fileforums.com/showpost.php?p=403201&postcount=1
Then download http://fileforums.com/showpost.php?p=416587&postcount=1 . Open main.iss and edit appnames etc. Then edit images, splash, music and logo. Don't forget edit Archives.ini. Finaly compile main.iss.
If you need help send me PM.
Razor12911
16-06-2013, 10:13
@Kurutucu
I think he wants this one.
nicola16
16-06-2013, 15:14
help problem my conversion file bat
Creating ISO files, please wait ...
(Your new ISO's will be in: C: \ TEMP)
Conversion by Nicola16. Based on Peterf1999's method.
""C:\Program Files (x86)\ImgBurn"" is not recognized as an internal command or east
ernment,
* operable program or batch file.
""C:\Program Files (x86)\ImgBurn"" is not recognized as an internal command or east
ernment,
* operable program or batch file.
Finished!
Press any key to continue. . .
my file bat help!
pakrat2k2
16-06-2013, 16:59
look at any of Fabioddq's conversions that use compress.bat the proper instructions are there for ImgBurn.
sentinelks
17-06-2013, 13:47
help problem my conversion file bat
meglio usare un compressore generale che va per tutti
better to use a bat that works on everything that used batteries only for that game
please pass me the script Valeron
:o :rolleyes: :p
nicola16
18-06-2013, 02:32
look at any of Fabioddq's conversions that use compress.bat the proper instructions are there for ImgBurn.
pakrat2k2 one last help what's right for dvd2??
Launch2=Physx
Launch264=0
Launch2BeforeInstall=0
LaunchCom2={sys}\msiexec.exe
LaunchArg2=/qr /i {src}\3rd\PhysX_10.05.12_9.10.0512_SystemSoftware. msi
Launch2=Physx
Launch264=0
Launch2BeforeInstall=0
LaunchCom2={src}\3rd\PhysX_10.05.12_9.10.0512_Syst emSoftware.msi
LaunchArg2=/q:a
AHRIMANSEFID
21-06-2013, 03:40
Hi
I made the inno Setup program with the program.
Not to allow the finished unpacking.
spawniectes
22-06-2013, 09:32
Hi guys, can anyone tell how can i do to have music only in the installer and not in autorun.
I want music start to play after a push the install button
Razor12911
23-06-2013, 04:33
you can make the file unavailable in autorun script then make it available in setup script.
spawniectes
23-06-2013, 08:26
you can make the file unavailable in autorun script then make it available in setup script.
can you tell how to do that.
Razor12911
23-06-2013, 09:55
open script. lets say for example, you are using yener90's script.
Internal
find InitializeSetup
Under that section, find ExtractTemporaryFile('Music.mp3');
change string to //ExtractTemporaryFile('Music.mp3');
compile done.
Internal Off
Press Ctrl + H to replace
Change Music.mp3 to Music1.mp3
compile done.
danswano
23-06-2013, 13:50
How to rip the GOG.com inno theme? i've extracted the iss and the files using innounp.exe app but when i compile it i get the default skin instead.
Razor12911
23-06-2013, 13:51
you can't :rolleyes:
danswano
23-06-2013, 14:03
I can't what?
here is a screenshot.
Razor12911
23-06-2013, 14:07
hmm, impressive.
you can't extract it the original script.
I think designer has to wait. I'mma create that.
danswano
23-06-2013, 14:08
Do you need the files?
Razor12911
23-06-2013, 14:12
yeah.
danswano
23-06-2013, 14:17
I see in each custom installer temp a file called botva2.dll, how do i use it to create a custome theme?
Here is the files:
mausschieber
11-07-2013, 07:42
how can i insert hompage and browse button
in autorunscript
thanks for help me
pakrat2k2
11-07-2013, 13:35
I see in each custom installer temp a file called botva2.dll, how do i use it to create a custome theme?
Here is the files:
look thru this site for skins, see if the have that information listed
http://isskin.codejock.com/
edit: they do > getting started
http://isskin.codejock.com/gettingstarted.asp
Hi.
1.
How can i set that some files will be installed and the end? I need some MOD to be installed after all files will be installed.
So Inno will create folders and install files but folder and files for MOD will be installed after all this.
2.
When i want to uninstall my game i will say "The uninstall log file ......unins00.dat is in a format not recognized by this version of the uninstaller. Cannot uninstall.
Check attached file for Inno Setup scrips.
Thank you for help.
varma1993
06-11-2013, 22:03
How to use -z161 -d0 these parameters in compression method to speedup the compression
Razor12911
07-11-2013, 09:45
Depends on that particular file. Else just put the command in the method along with your current switches and commands
Hey there People,
I've made a own Conversion from Silent Hill 3 but got Problems with the Regkeys.
The Original Game was Installed on Drive E:\ the Conversion later to Drive H:\, the Game won't Start from Conversion because the most Strings still stands on E:\
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Konami\Sil ent Hill 3]
"Path"="H:\\Program Files (x86)\\Konami\\Silent Hill 3\\"
"Version"="1.0.0"
@=""
"save"="E:\\Program Files (x86)\\KONAMI\\SILENT HILL 3\\savedata\\"
"data"="E:\\Program Files (x86)\\KONAMI\\SILENT HILL 3\\"
"movie"="E:\\Program Files (x86)\\KONAMI\\SILENT HILL 3\\"
"installdir"="E:\\Program Files (x86)\\KONAMI\\SILENT HILL 3\\"
"sound"="E:\\Program Files (x86)\\KONAMI\\SILENT HILL 3\\"
The Question is, what I have to do that my Installer correct the E:\ Strings automaticly to any other Driveletter?
With this "Bug" I can't Share the Installer, anybody help please. :(
y_thelastknight
24-12-2013, 15:17
Hey there People,
I've made a own Conversion from Silent Hill 3 but got Problems with the Regkeys.
The Original Game was Installed on Drive E:\ the Conversion later to Drive H:\, the Game won't Start from Conversion because the most Strings still stands on E:\
The Question is, what I have to do that my Installer correct the E:\ Strings automaticly to any other Driveletter?
With this "Bug" I can't Share the Installer, anybody help please. :(
i hope this works :)
#define Appname "Silent Hill 3"
#define Publisher "Konami"
#define Ver "1.0.0"
[Registry]
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; ValueName: Path; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; ValueName: Version; ValueData: {#Ver}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; ValueName: save; ValueData: {app}\savedata\; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; ValueName: data; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; ValueName: movie; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; ValueName: installdir; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\{#Publisher}\{#Appname}; ValueType: string; ValueName: sound; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
pakrat2k2
24-12-2013, 21:51
only thing I see incorrect is
ValueName: Path; ValueData: {src}; > that too should be {app};
sentinelks
25-12-2013, 00:24
these keys are useless .. all default
Thanks, Guys. Setting the Value data to {app} has solved the problem. Everything works fine now.:D
reiji777
21-02-2014, 13:03
these keys are useless .. all default
please explain in detail why? and whats right?
currently I'm trying to make trilogy conversion and I'm stuck on registries. when I check on regedit. the entries are in many places :confused:
I try to help you reiji :D.. sorry for my poor english vocabulary.. for my experience is better to change only the ValueName part in registrys, and let the other parts in the original ways.
There are many games ( in my case a lot of old games), with registrys in HCKU and HKLM, that change lenguajes in the wrong way, stuck in certain parts of installation, or simply, doesnt work. its normal (in some games), that there is registry keys in two or three places, generally, publisher and developers parts :D. (see for example the registry keys in GOG games installations, they have developers, publishers, and GOG registry entries, in three of four diferent places).
reiji777
24-02-2014, 09:14
I try to help you reiji :D.. sorry for my poor english vocabulary.. for my experience is better to change only the ValueName part in registrys, and let the other parts in the original ways.
There are many games ( in my case a lot of old games), with registrys in HCKU and HKLM, that change lenguajes in the wrong way, stuck in certain parts of installation, or simply, doesnt work. its normal (in some games), that there is registry keys in two or three places, generally, publisher and developers parts :D. (see for example the registry keys in GOG games installations, they have developers, publishers, and GOG registry entries, in three of four diferent places).
thanks for the help bro :)
btw currently i'm looking at the sims 3 AIO conversion registry lines.
it contain hundreds of keys :confused::eek:
should I put it all or if I just want to have 1 language what line should I erase?
y_thelastknight
24-02-2014, 10:02
thanks for the help bro :)
btw currently i'm looking at the sims 3 AIO conversion registry lines.
it contain hundreds of keys :confused::eek:
should I put it all or if I just want to have 1 language what line should I erase?
If u cant find what is important then post the reg. Someone will help you.
Reiji, most of the reg entries in the sims 3, are the settings that you have in the game,, this entries (not all) can be deleted.. post the reg and i try to help you if you want.
pakrat2k2
24-02-2014, 17:53
thanks for the help bro :)
btw currently i'm looking at the sims 3 AIO conversion registry lines.
it contain hundreds of keys :confused::eek:
should I put it all or if I just want to have 1 language what line should I erase?
there is a conversion already done by Kaktor > http://fileforums.com/showthread.php?t=95327
which lists & explains the reg keys / entries. download the file & read his notes in the archive.
If you want help then PM the person who said they'd help you. DONT post further discussions regarding the reg entries in this topic, please. The entries themselves takes up hundreds of lines & would clutter up this topic too much.
reiji777
03-03-2014, 11:47
how to install font before setup page show or font for my installer?
I want to pre install the fonts for inno setup. I have made a custom inno setup installer with font Century Gothic.Now when i run my inno setup for the first time on a client machine. The design is not coming proper due to fonts.. but when installer is run once again then design comes proper.
Just to make it more clear,this font is used in the design of my installer,and not in the application which is deployed using this installer. I just need a way to install the fonts on the client machine before installer executable opens the welcome page,so that design i made for custom setup is proper.
Razor12911
03-03-2014, 20:05
Ansi Version
[CODE]
function AddFontResource(lpszFilename:string;fl:dword;pdv:i nteger): Integer; external '
[email protected] stdcall';
function RemoveFontResource(lpszFilename:string;fl:dword;pd v:integer): boolean; external '
[email protected] stdcall';
function InitializeSetup:Boolean;
begin
AddFontResource(ExpandConstant('{src}\font.ttf'),F R_PRIVATE,0);
Result:=True;
end;
procedure DeinitializeSetup;
begin
RemoveFontResource(ExpandConstant('{src}\font.ttf' ),FR_PRIVATE,0);
end;
Unicode Version
[CODE]
function AddFontResource(lpszFilename:string;fl:dword;pdv:i nteger): Integer; external '
[email protected] stdcall';
function RemoveFontResource(lpszFilename:string;fl:dword;pd v:integer): boolean; external '
[email protected] stdcall';
function InitializeSetup:Boolean;
begin
AddFontResource(ExpandConstant('{src}\font.ttf'),F R_PRIVATE,0);
Result:=True;
end;
procedure DeinitializeSetup;
begin
RemoveFontResource(ExpandConstant('{src}\font.ttf' ),FR_PRIVATE,0);
end;
you are very pro in inno setup Razor12911
Razor12911
03-03-2014, 20:25
Still learning some stuff.
dear sir,
please tell me how to add directx and music button on INNO setup...
[CODE]
Unicode Version
function InitializeSetup:Boolean;
begin
AddFontResource(ExpandConstant('{src}\font.ttf'),F R_PRIVATE,0);
Result:=True;
end;
Compiler error!
Unknown indentifier "FR_PRIVATE"
I do not understand why!
Inno Setup 5.5.4 (u)
oh..
Sorry resolved, I missed a signal ...
Rev0 posted hiw to use yeners CI but not where we could get it, can someone post a Link?
I Have This Problem!!!
http://i56.fastpic.ru/big/2014/0504/ee/d33e949f6810b7a69bf452dff904d6ee.jpg
I Compiled Inno Setup,But When I Finished My RePack's Install. After Finish It Showed Me This Problem.How Can I Fix It? Please Help Me.
Dheeraj88
20-06-2014, 06:56
Hello Everyone here
I want to know some best and powerfull compression switches for precomp v3.8 srep 3.0 and arc
I am repacking a game and I want to use best and powerfull compression for that game.
And I want to know that what compression method that R.G Mechanics use for there repacks.
Please Help me
I will great thankful to u all.
y_thelastknight
20-06-2014, 14:25
need a code for actual running clock in inno setup.
plz help me :(
mystikal242
14-09-2014, 07:50
I want to know how can I change the game's shortcut after the installation using the setup.ini, like the icon and stuff???
pcblizzard
25-09-2014, 02:08
Hello,
I have a problem with the "CI_Converted_To_CIU" to-Script and the "internal installation":
The setup did not start on the "setup.exe". I will setup indeed appear in the taskbar, but I can not open the window (in the task manager itself stands "Inactive"). Although the "autorun.exe" works but when I press and "Install" button and the "setup.exe" should become active, the game starts again from the beginning.
Overall, the project is almost 45 GB in size and the disc clamping has been made in 8 GB (individual * bin files are 1.59 GB in size and the "Setup.cab" has a size from 11 MB).
How can I now so the "setup.exe" to bring me the installation menu display?
Regards
pakrat2k2
10-02-2015, 09:56
Hello,
i compressed my Game using free arc.I created two self extracting archives of the game's file. Data1.bin & Data2.bin.How to use inno setup to extract the files from these two files ? I use IStool to create script for INNOSETUP.
you've asked your question, no wait for an answer. Don't create a separate topic asking same thing. I'll delete it again.
WankaWanka
13-03-2016, 16:17
I am using the CI and everything worked normally, but now all installers I created do not work anymore, I'm using Windows 7 x64, images (autorun.jpg, installer.jpg, ...) no longer appear, the sound does not work . I have attached pictures of the problem. Strange that on another PC with Windows 7 x64 installers work. Any idea what could be wrong?
Thanks for help...
WankaWanka
13-03-2016, 18:39
Solved ... I restored Windows to an earlier point and my installers back to work ... Now it's trying to figure out what caused this failure ...
pratikpatel8982
21-05-2021, 04:55
how do I execute a bat file after installation of game. the bat file is located inside {app} directory???
GaMEr_2077
21-05-2021, 04:58
Use this code
[Run]
Filename: "{app}\delete.bat"; Parameters: "install"; Flags: hidden/visible
Thanks @ :(Sad8669 for this
:( Sad8669
21-05-2021, 05:38
But make sure that the .bat file delete itself after completing the task, by adding the code in your .bat file in the end :
del %0
pratikpatel8982
21-05-2021, 05:51
Use this code
[Run]
Filename: "{app}\delete.bat"; Parameters: "install"; Flags: hidden/visible
Thanks @ :(Sad8669 for this
I already found that, but thanks.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.