first version
wants more wait
if someone already compress - give size
========
install game to default path [u can change letter ] but must leave ends 'Brothers in Arms - Hell's Highway'
open empty inno script, copy paste mine and save in the same folder where is 'Brothers in Arms - Hell's Highway' + put icon in the same folder
run compile in inno
after you ends compiling you get new folder 'output'
copy to that folder 'redist' with all subfolders
output\redist\
icon
script
Code:
[Setup]
;VER= 3
AppName=Brothers in Arms: Hell's Highway
appvername=Brothers in Arms: Hell's Highway v1.0
defaultdirname={pf}\Ubisoft\Gearbox Software\Brothers in Arms - Hell's Highway
sourcedir=.\
diskspanning=yes
compression=lzma/ultra64
; compression=none
;compression=lzma
ShowUndisplayableLanguages=yes
ShowLanguageDialog=yes
;LanguageDetectionMethod=locale
compressionthreads=auto
solidcompression=yes
slicesperdisk=1
diskslicesize=736000000
DisableProgramGroupPage=yes
PrivilegesRequired=none
AllowRootDirectory=yes
DefaultGroupName=Ubisoft\Gearbox Software\Brothers in Arms - Hell's Highway
SetupIconFile=.\IconEntry_1.ico
OutputBaseFilename=setup
AppId={{Brothers in Arms - Hell's Highway}}
[files]
source: ".\Brothers in Arms - Hell's Highway\*"; Excludes: "Brothers in Arms - Hell's Highway\SumacGame\Movies\*,*.bik"; DestDir: "{app}" ; Flags: ignoreversion recursesubdirs createallsubdirs
source: ".\Brothers in Arms - Hell's Highway\SumacGame\Movies\*"; DestDir: "{app}\SumacGame\Movies\" ;Flags: ignoreversion nocompression recursesubdirs createallsubdirs
;for other language add before both lines ';' and remove ';' from below line
;source: ".\Brothers in Arms - Hell's Highway\*"; DestDir: "{app}" ; Flags: ignoreversion recursesubdirs createallsubdirs
[languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "pl"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "IT"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "DE"; MessagesFile: "compiler:Languages\German.isl"
Name: "FR"; MessagesFile: "compiler:Languages\French.isl"
Name: "da"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl"
Name: "sv"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "no"; MessagesFile: "compiler:Languages\Norwegian.isl"
[Registry]
;HKEY_CURRENT_USER\Software\UBISOFT
Root: HKCU; Subkey: "Software\UBISOFT\"; Flags: uninsdeletekey
;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\biahh.exe
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\biahh.exe"; ValueType: string; ValueName: ""; ValueData: {app}\Binaries\biahh.exe ;Flags: uninsdeletekey
;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway\"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: DisplayIcon; ValueData: {app}\Binaries\biahh.exe
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: DisplayName; ValueData: Brothers in Arms: Hell's Highway
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: DisplayVersion; ValueData: 1.0.0.0
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: InstallDir; ValueData: {app}
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: NoModify; ValueData: 1
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: NoRepair; ValueData: 1
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: Publisher; ValueData: Ubisoft
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: UninstallString; ValueData: {app}\Binaries\uninst.exe
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: URLInfoAbout; ValueData: http://www.hellshighwaygame.com/
;part for specific language
;check http://documentation.installshield.com/robo/projects/helplibdevstudio9/IHelpGlobLangIdentifiers.htm for language id
;change bolded part of below line to proper number
;english= 1033
;french= 1039
;esp/spanish=1034
;italian= 1040
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway"; ValueType: string; ValueName: InstallLang; ValueData: 1033
[Icons]
Name: "{group}\Brothers in Arms - Hell's Highway"; Filename: "{app}\Binaries\biahh.exe"; WorkingDir: "{app}\"; IconFilename: "{app}\Binaries\biahh.exe"
Name: "{group}\Manual"; Filename: "{app}\Support\Manual\Manual.pdf"; WorkingDir: "{app}\"; IconFilename: "{app}\Support\Manual\Manual.pdf"
Name: "{group}\Readme"; Filename: "{app}\Support\Readme.txt"; WorkingDir: "{app}\"; IconFilename: "{app}\Support\Readme.txt"
;Support\Register\Register.url
Name: "{group}\Register"; Filename: "{app}\Support\Register\Register.url"; WorkingDir: "{app}\"; IconFilename: "{app}\Binaries\uninst.exe"
;Home Page http://www.hellshighwaygame.com/
Name: "{group}\Home Page"; Filename: "http://www.hellshighwaygame.com/"; WorkingDir: "{app}\"; IconFilename: "{app}\Binaries\uninst.exe"
Name: "{group}\{cm:UninstallProgram,Brothers in Arms - Hell's Highway}"; Filename: "{uninstallexe}";IconFilename: "{app}\Binaries\uninst.exe"
Name: "{userdesktop}\Brothers in Arms - Hell's Highway"; Filename: "{app}\Binaries\biahh.exe"; Tasks: "desktopicon"; WorkingDir: "{app}\"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "vcredist_x86"; Description: "{cm:LaunchProgram,Visual C++ Redistributable Package}";
Name: "DXSETUP"; Description: "{cm:LaunchProgram,DirectX 9}";
Name: "PhysX_8"; Description: "{cm:LaunchProgram,PhysX Ageia Driver}";
[Run]
;for future automatic replacing crack
Filename: "{src}\crack\nodvd_brothers.exe"; Parameters:/VERYSILENT /SUPPRESSMSGBOXES ; Description: "Apply NoDVD"; Flags: postinstall unchecked
;Filename: "{src}\Redist\VC80\vcredist_x86.exe"; Parameters:"/q:a /c:""msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log" ;Description: "{cm:LaunchProgram,Visual C++ Redistributable Package}"; Flags: postinstall unchecked
Filename: "{src}\Redist\VC80\vcredist_x86.exe"; Parameters:"/q:a /c:""msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log" ; Tasks: "vcredist_x86";
;Filename: "{src}\Redist\DirectX\DXSETUP.EXE"; Parameters:"/silent"; Description: "{cm:LaunchProgram,DirectX 9}"; Flags: postinstall unchecked
Filename: "{src}\Redist\DirectX\DXSETUP.EXE"; Parameters:"/silent"; Description: "{cm:LaunchProgram,DirectX 9}"; Tasks: "DXSETUP";
;Filename: "{src}\Redist\PhysX\PhysX_8.04.25_SystemSoftware.exe"; Parameters:"/quiet"; Description: "{cm:LaunchProgram,PhysX Ageia Driver}"; Flags: postinstall unchecked
Filename: "{src}\Redist\PhysX\PhysX_8.04.25_SystemSoftware.exe"; Parameters:"/quiet";Tasks: "PhysX_8";
Filename: "{app}\Binaries\biahh.exe"; Description: "{cm:LaunchProgram,Brothers in Arms: Hell's Highway}"; Flags: postinstall unchecked nowait
remember that is first version of script ...
waiting for feedback
Edit
ver 2
fixed run section, fixed languages section - allow to select installer language,
now need to create new exe to auto apply patch, and hide one instances in uninstall panel
- now you can use orginal menu to run installer , add support folder to dvd like on orginal
edit3
addon

auto applier nodvd
Code:
[setup]
AppName=Brothers in Arms - Hell's Highway [nodvd]
AppVerName=Brothers in Arms - Hell's Highway v1.0
AppPublisher=Brothers in Arms - Hell's Highway
DefaultDirName={reg:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway,InstallDir|}
DefaultGroupName=nodvd_brothers
AllowNoIcons=yes
AllowRootDirectory=yes
OutputDir=.\
OutputBaseFilename=nodvd_brothers
Compression=none
RestartIfNeededByRun=no
AppendDefaultDirName=yes
;Uninstallable=no
PrivilegesRequired=none
;ShowLanguageDialog=no
;LanguageDetectionMethod=none
UsePreviousAppDir=yes
CreateUninstallRegKey=no
UpdateUninstallLogAppName=no
SetupIconFile=IconEntry_1.ico
AppId={{Brothers in Arms - Hell's Highway}}
[languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "pl"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "IT"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "DE"; MessagesFile: "compiler:Languages\German.isl"
Name: "FR"; MessagesFile: "compiler:Languages\French.isl"
Name: "da"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl"
Name: "sv"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "no"; MessagesFile: "compiler:Languages\Norwegian.isl"
[Files]
Source: {app}\Binaries\biahh.exe ; DestDir: {app}\Binaries\biahh.exe.bak; Flags: external skipifsourcedoesntexist ignoreversion
Source: {src}\biahh.exe ; DestDir: {app}\Binaries; Flags: external skipifsourcedoesntexist ignoreversion
put that into inno script, save in any place and add IconEntry_1.ico from first post into the same place - compile
on dvd put in \crack\ folder with biahh.exe and that new exe nodvd_brothers.exe
NOTE
need to activate in main script in run section that line
Code:
Filename: "{src}\crack\nodvd.exe"; Parameters:/VERYSILENT /SUPPRESSMSGBOXES ; Description: "Apply NoDVD"; Flags: postinstall unchecked
must be without ';'
compiled autoapplier
edit rev3
app paths added
rebuild task section - now selecting install additional drivers before copy game not on the ends