#16
|
|||
|
|||
there it is
Last edited by seventhorama; 31-12-2011 at 22:33. |
Sponsored Links |
#17
|
||||
|
||||
just a couple things need changing under the [setup] in main iss script
DefaultDirname={pf}..... change to {pf32}..... ( this is so that if using X64 windows it will install in the correct path NOT place it in program files ( like {pf} states. look in help under inno program ) also under [registry] section change the language valuedata en to {code:GetLngID} that way if someone installs in language other then english, the correct value gets written in the registry. missed changing EXE under #ifdef AddToFireWallList in main iss section. the autorun.iss also had quite a few changes as you had Install Folder, but game had no Install Folder Registry entry so those were changed to InstallPath ( like the entry in reg setion of main iss script) The last couple things you need to do is change the images in the wizard_res folder to match your game, and change the autorun.inf in compiled folder(s) to match your game. I've made the corrections as noted above and added a comment for what was changed ( starts with //, so you should easily spot them ) & reuploaded the corrected files ( ISS script files ) oh... HAPPY NEW YEAR !!! Last edited by pakrat2k2; 31-12-2011 at 23:44. |
#18
|
|||
|
|||
happy new year too
play button and uninstall button works now thx mate |
#19
|
|||
|
|||
can i make patcher using innosetup with silent parameter? so it install directly to game installation folder without configure patcher path first
i still havent found a way to do it |
#20
|
||||
|
||||
just add the patch to source files, then in run section add the exe and any switches needed to have it run silently
|
#21
|
|||
|
|||
i have a problem
the patcher cant automatically detect the game installation folder i put this in [Setup] section [Setup] AppName={#MyAppName} AppVerName={#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={app}\ DefaultGroupName={#MyAppName} InfoBeforeFile=ReadMe.txt OutputDir=E:\Installer OutputBaseFilename=setup Compression=none DiskSpanning=yes SlicesPerDisk=3 DiskSliceSize=1400000000 when i run it, it shows this error "internal error: an attempt was made to expand the "app" constant before it was initialized" do i need something? like registry section or something? about the patcher, i need it separated from original installer. this one is kind of old games that have 2 disk and needed disk 2 to do the patch, so i get some files in the game installation folder that changes and put them in some folder. then i try to make this patcher automatically detects the game installation folder and move needed files to replace the old files. and i need it to run silently (without user need to browse game installation folder). is it possible? where do i put silent parameter for this installer? |
#22
|
||||
|
||||
the defaultdirname must be set first. then after the [setup] section you use the {app}
try using the help in inno as everything youve asked is in there. |
#23
|
|||
|
|||
need help to get this install dir thing works
Last edited by seventhorama; 14-01-2012 at 23:47. |
#24
|
||||
|
||||
[Files]
Source: D:\TS2_ISOS\The Sims 2 Exp1 University\Patchfiles\*; DestDir: {code:GetAppPath}; Flags: ignoreversion recursesubdirs Code:
var installDir : string; function InitializeSetup(): Boolean; Begin // Checking running application if FindWindowByWindowName('The Sims 2 University') <> 0 then begin MsgBox('The Sims 2 University is running.'#10'Please close the application first.', mbInformation, MB_OK); exit; end; if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\EA GAMES\The Sims 2 University', 'Install Dir', installDir) then MsgBox('The Sims 2 University is not installed on this computer..'#10'Cancelling Update.', mbInformation, MB_OK) else Result := True End; function GetAppPath(Param: string): string; begin Result := installDir; end; |
#25
|
|||
|
|||
Quote:
thx mate |
#26
|
|||
|
|||
How can I make Inno install certain files at some other location?
Example: You have files in folder A that need to be installed like anything else, C:\Program Files\A But, in folder B, you have files that should go to System32 folder. How can I set that up? |
#27
|
||||
|
||||
while in inno script click on help > constants
but be very careful installing into system fodler as can make a user's system unbootable if writing files into system folder, that are not for that version of windows. just generally not a good idea to force install those types of files ( usually dll's ), safer to run a main exe ( in run section ) that will install the proper files for that OS. |
#28
|
|||
|
|||
Quote:
I do not know what Inno Setup Compiler (with the letter (a) or (u) use to properly ran your language in the installer. I always thought that Unicode is correct because it has built-in ANSI, according to the author of Inno setup according to this information: "Unicode Inno Setup Beginning with Inno Setup 5.3.0, there are two versions of Inno Setup available: Non Unicode Inno Setup and Unicode Inno Setup. Key features of Unicode Inno Setup are its ability to display any language on any system regardless of the system code page, and its ability to work with Unicode filenames. One could consider Unicode Inno Setup as the new standard Inno Setup and Non Unicode Inno Setup as an old special Inno Setup for those who still need to support NT/9x or who want the very smallest size possible. If you don't remember which version you installed, click the "Inno Setup Compiler" shortcut created in the Start Menu. If the version number displayed in its title bar says "(a)" you are running Non Unicode Inno Setup. If it says "(u)" you are running Unicode Inno Setup. For the most part the two versions are used identically, and any differences between them are noted throughout the help file. However, the following overview lists the primary differences: •Unicode Inno Setup uses the existing ANSI .isl language files and you should not and may not convert these to Unicode or anything similar since it does so automatically during compilation using the LanguageCodePage setting of the language. However, you do need to convert existing [Messages] and [CustomMessages] entries in your .iss files to Unicode if the language used a special LanguageCodePage. •The automatic conversion is also done for any language specific plain text ANSI LicenseFile, InfoBeforeFile, or InfoAfterFile used so you should not convert these either (but you may do so if you wish anyway, unlike ANSI .isl language files). •The [Setup] directive ShowUndisplayableLanguages is ignored by Unicode Inno Setup. •Unicode Inno Setup is compiled with Delphi 2009 instead of Delphi 2 and 3, leading to slightly larger files. The source code however is still compatible with Delphi 2 and 3, and a non Unicode version will remain available. •Unicode Inno Setup and installers created by it require Windows 2000/XP or newer. The non Unicode version still works on NT/9x. •Existing installations of your programs done by non Unicode installers can be freely updated by Unicode installers, and vice versa. •Unicode Pascal Scripting notes: ◦The Unicode compiler sees type 'String' as a Unicode string, and 'Char' as a Unicode character. Its 'AnsiString' type hasn't changed and still is an ANSI string. Its 'PChar' type has been renamed to 'PAnsiChar'. ◦The Unicode compiler is more strict about correct ';' usage: it no longer accepts certain missing ';' characters. ◦The new RemObjects PascalScript version used by the Unicode compiler supports Unicode, but not for its input source. This means it does use Unicode string types as said, but any literal Unicode characters in the script will be converted to ANSI. This doesn't mean you can't display Unicode strings: you can for example instead use encoded Unicode characters to build Unicode strings (like S := #$0100 + #$0101 + 'Aa', or load the string from a file using LoadStringsFromFile. ◦Some support functions had their prototype changed: some parameters of CreateOutputMsgMemoPage, RegQueryBinaryValue, RegWriteBinaryValue, OemToCharBuff, CharToOemBuff, LoadStringFromfile, SaveStringToFile, and GetMD5OfString are of type AnsiString now instead of String. ◦Added new SaveStringsToUTF8File, and GetMD5OfUnicodeString support functions. ◦If you want to compile an existing script that imports ANSI Windows API calls with the Unicode compiler, either upgrade to the 'W' Unicode API call or change the parameters from 'String' or 'PChar' to 'AnsiString'. The 'AnsiString' approach will make your [Code] compatible with both the Unicode and the non Unicode version. •Unicode Inno Setup supports UTF-8 encoded .iss files (but not UTF-16). •Unicode Inno Setup supports UTF-8 and UTF-16LE encoded .txt files for LicenseFile, InfoBeforeFile, and InfoAfterFile. Note: Unicode Inno Setup can only create Unicode installers and like wise the non Unicode version can only create non Unicode installers. If you want to be able to create both Unicode and non Unicode installers on one computer, you have to install both versions of Inno Setup into different folders." http://www.jrsoftware.org/ishelp/ind...?topic=unicode Please write what version you use, and dispel my doubts ... Thank you! |
#29
|
|||
|
|||
Depends the conversion.
a is ANSI and u is Unicode, and you have to use one of them according to conversion. For example old yener setup bases (which i was using) needed ansi version of INNO setup, however after 1.8 version yener changed the codes and now you have to use Unicode version of INNO setup. Regardless you'll know which one you'll have to use, it'll be described in conversion thread. |
#30
|
|||
|
|||
@ REV0
For now, thank you for the information and best regards |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 06:51 |
yener90's Inno Project Source Codes | yener90 | Conversion Tutorials | 1475 | 21-10-2014 10:50 |