PDA

View Full Version : I Am Alive Installer (Inno setup)


NamelessOne
10-09-2012, 13:01
This is not a conversion just a custom (improved, if I may say so) installer because the original Ubisoft's is pretty cra... Well, you know what I mean :D

EDIT:
I've updated script to CIU 1.0.0.6.

Based on CIU 1.0.0.6 by yener90 (Much obliged for this, man ;))
.bat file and compression method by Peterf1999 and Fabioddq (also, many thanks to these guys ;))
Art: online and ingame
Music: Game main theme
Icon: cKL-Design (http://ckl-design.deviantart.com)
Tested on: Win7 Home Premium 64bit and Win7 Ultimate 32bit
Final size (redist folder included): 2 GB's

1. Install game and update to 1.01 version
2. Extract content archive somewhere on your computer, NOT in game folder.
3. Move support folder from installation folder to your extracted IAA folder along with the Autorun.exe and Setup.exe
4. Start compress.bat, enter game installation path and wait to compile.
5. Make ISO and test before you burn it ;)

7727
7729
7728

senseman
10-09-2012, 14:35
thanks man...Ubisoft installer is really ~censored :D

Fabioddq
10-09-2012, 20:48
Nice conversion namelessOne! I wanted to create an installer, now I don't need anymore! :D

I think you can implement the reg entries for other languages​​, otherwise the game will always be in English no matter which language you install. I'll put as could be if you want to upgrade.
In highlighted (red) the new reg entries for other languages ​​and also for the launcher:

Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive"; ValueName: UninstallString; ValueData: {uninstallexe}; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive"; ValueType: string; ValueName: Language; ValueData: English; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive"; ValueType: string; ValueName: Language; ValueData: French; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: fre;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive"; ValueType: string; ValueName: Language; ValueData: German; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: ger;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive"; ValueType: string; ValueName: Language; ValueData: Italian; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: ita;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive"; ValueType: string; ValueName: Language; ValueData: Spanish; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: esp;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: execPath; ValueData: {app}\src\System\IAmAlive_game.exe; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: installRootDir; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: InstallDir; ValueData: {app}\src\System; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: language; ValueData: us; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: language; ValueData: fr; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: fre;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: language; ValueData: de; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: ger;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: language; ValueData: it; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: ita;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: language; ValueData: es; Flags: uninsdeletevalue uninsdeletekeyifempty; Languages: esp;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\IAmAlive\GameUpdat e"; ValueType: string; ValueName: info; ValueData: 970ce8e57f8740d18ecc59f85052bb61; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\Launcher"; ValueType: string; ValueName: Version; ValueData: 0432 ; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\Launcher"; ValueType: string; ValueName: InstallDir; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty


I tested these new reg entries and works great for other languages. :D
if you want to use the eula.rtf files, they are in the support\Res\License.

Thanks for the conversion! :D

NamelessOne
11-09-2012, 11:20
Thanks for the info, Fabiodq. I completely forgot about other languages :o If I put them in script will the game recognize them if someone choose some language other than English during setup?

Fabioddq
11-09-2012, 11:27
Thanks for the info, Fabiodq. I completely forgot about other languages :o If I put them in script will the game recognize them if someone choose some language other than English during setup?

yes, the game will be the language chosen by the user. My test:

I installed the game in english. After conversion i installed in spanish and the game was in spanish. ;)

NamelessOne
11-09-2012, 11:34
Thanks once again, Fabiodq. I've added updated script in the first post :)

sarmadi
12-09-2012, 15:04
I,Really,did not undrestand.
Where should I put the new files of conversion???

Fabioddq
12-09-2012, 15:10
I,Really,did not undrestand.
Where should I put the new files of conversion???

Delete the word "Updated" leave only InstallerScript.iss and just replace the old InstallerScript.iss ;)

sarmadi
12-09-2012, 22:39
I didn't find any converted bin file.it happened in 5 seconds.

Fabioddq
12-09-2012, 22:48
I didn't find any converted bin file.it happened in 5 seconds.

Delete ";" in the front of #define ProgramFiles "C:\Games\I Am Alive"

and make sure if you indicate the correct path.

sarmadi
12-09-2012, 22:56
Thanks.It works now.

NamelessOne
14-09-2012, 08:32
I've added updated setup files :D

javieracdc
15-09-2012, 09:00
I have this error:

http://i49.tinypic.com/1z6a7w0.jpg

Fabioddq
15-09-2012, 09:15
I have this error:

http://i49.tinypic.com/1z6a7w0.jpg

If you desire Setup.cab + Setup.ini integration do it:
Extract Setup.cab in a blank Setup folder and Compile LangScript.iss and InstallerScript.iss;

if you not desire this integration:
Put ; in the front #define Internal in InstallerScript.iss and LangScript.iss

Tibi68
15-09-2012, 14:08
The installer works perfect from folder but don't work from ISO or burned dvd. I have Win 7, 32bits.
I have this error:
runtime error (at 307:190):
Access is denied.
Any help, please? Sorry for my english.

NamelessOne
16-09-2012, 01:53
The installer works perfect from folder but don't work from ISO or burned dvd. I have Win 7, 32bits.
I have this error:
runtime error (at 307:190):
Access is denied.
Any help, please? Sorry for my english.

To be honest, this is the first time I hear about this. I've tested it on my Win7 Home Premium 64bit and on Win7 Ultimate 32bit, and it worked fine, in ISO format and from folder.

Kamyk95
16-09-2012, 05:45
Make ISO with which files? I bet that I don't need ALL the files like "InstallerScript.iss" or "Conver_AutorunToDLL.bat"...

NamelessOne
16-09-2012, 07:36
Make ISO with which files? I bet that I don't need ALL the files like "InstallerScript.iss" or "Conver_AutorunToDLL.bat"...

You only need Setup-*.bin files, setup.ini, Setup.cab and Setup.dll. That is if you haven't merged them with setup with #define Internal command. In that case, you only need Setup-*.bin files and Setup.dll.

Kamyk95
16-09-2012, 11:34
You only need Setup-*.bin files, setup.ini, Setup.cab and Setup.dll. That is if you haven't merged them with setup with #define Internal command. In that case, you only need Setup-*.bin files and Setup.dll.
OK, thanks. That's what I wanted to know. Man, the Inno Installer is WAAAAAAY better than Ubisoft's.

Fox22743
18-09-2012, 03:44
Do i have to include the "Support" folder in the iso. Please let me know. I don't want to put extra files for nothing.

Also there is no setup.dll file. Can't find it anywhere. Somebody please help

fireball70
18-09-2012, 06:20
The installer works perfect from folder but don't work from ISO or burned dvd. I have Win 7, 32bits.
I have this error:
runtime error (at 307:190):
Access is denied.
Any help, please? Sorry for my english.

Same problem here.
Setup.exe can be run from folder, but after make iso or burn to dvd, Setup.exe couldn't be run. It said same error like that. Don't know what missing.
Never happen this error before for other convertion :(

yener90
18-09-2012, 06:31
im analyzing this error.

EDIT: no error here O.O

your conversion works good.
only little problem: gdf path is wrong.

its should be:
GDFBinary=src\System\iaa_gameexplorer.dll
;)

Fox22743
18-09-2012, 08:38
Ok. I read through the setup.ini and I see that the support folder has to be included. But still where is the setup.dll file. Keep getting this error "setup could not find neccessary files"

EDIT
------
Since I was not receiving any help here, I decided to use the setup.dll file from the "borderlands 2" REV0 conversion. It seems to be working sort of. Will give feedback as to what is happening exactly.

EDIT 2
-------
Tested now and it's working. Only problem is that it shows the wrong icon for like a second in the task bar.

NamelessOne
18-09-2012, 11:45
After you compile Installer script, compile LangScript and then run Convert_AutorunToDLL to get setup.dll. And no, Support folder is not necessarily needed for game installation. Just delete entire [LauncherSettings] part from setup.ini if you don't want it.

@yener
Thanks for your remark. I overlooked it although I've noticed that dll file. My bad :D

Fox22743
18-09-2012, 12:22
My bad on the whole setup.dll file. Was having a really rough day and did not look properly at what was written. Customers that owe me money refusing to pay and such. They still threatening to take me to the court and that.

My biggest apologies for all that hassle.

Forgive me and thanks a million for the conversion.

Edit
-----
Just some changes I made to your installer. Not neccessary, but looks a bit better i think.

1) Deleted "setup.ico", made a copy of "IAmAlive_game.ico" and renamed it to "setup.ico".
2) In "setup.ini", changed "ProgressBarLabelColor" and "SetupFontColor" values from "$ffffff" to "$0000ff". Basically I made the font red so that it would be easier to read.

Like I said just some changes I made for myself.

khokhan
18-10-2012, 23:30
If you desire Setup.cab + Setup.ini integration do it:
Extract Setup.cab in a blank Setup folder and Compile LangScript.iss and InstallerScript.iss;

if you not desire this integration:
Put ; in the front #define Internal in InstallerScript.iss and LangScript.iss

his mean: right click "setup.cab" -> Extract to Setup/ (With Winrar or Winzip installed in your OS) -> then Run again "LangScript.iss"

p/s: Thanks Fabioddq... conversation work OK..

prudislav
21-12-2012, 13:41
have problems with updating to v1.01
it sais Failed to Complete instalation :-(
not sure what cause this - ptobably some registry things

Fabioddq
21-12-2012, 13:58
have problems with updating to v1.01
it sais Failed to Complete instalation :-(
not sure what cause this - ptobably some registry things

Where you get this patch 1.01? Link please... :D

prudislav
21-12-2012, 14:03
Where you get this patch 1.01? Link please... :D
IAmAlive_1.01.exe (http://static3.cdn.ubi.com/i_am_alive/IAmAlive_1.01.exe)
changelog:
ug Fixes:
- XBox wireless controller support.
- AZERTY layout keyboard and key remapping has been fixed.
- Bloom effect has been tuned to avoid over bright areas.
- Validation System:
- Removed warning/error message about wrongly unsupported detected video hardware.
- the window is now resizable to prevent issues with player not being able to see the OK/Next buttons.
- Validation System will only be launched once, the first time the game is launched.
- To force the Validation System to run again, you'll need to edit the UserSettings.ini file and set "RunValidation=True"

Known issues:
- Using long path name for installation might result in a crash when launching the game, so keep installation path as short as possible (<50).
- If Wireless pad still doesn't work for you, you will have to delete your profile(profile.sav) and savegame(game.sav) BUT you will LOOSE your game progression doing so!!!
but cant get it to patch on this istaller (and the ubi one is horrible)

Fabioddq
21-12-2012, 19:36
Ubisoft always sucks with updates. I advise you always keep the original installers by Ubisoft for future updates.

jackstuff
21-12-2012, 21:33
Ubisoft always sucks with updates. I advise you always keep the original installers by Ubisoft for future updates.

This happens because of registry, i damm sure that a correct one of registry is needed for installing the future updates

prudislav
21-12-2012, 23:54
so we need to find that problematic registry key.
This time original installer is something really stupit - it extrcat itself 3 times to system disk anad takes my computer hostage ;-)

pakrat2k2
22-12-2012, 01:18
installed original game > NO crack installed. took reg shot...
installed v1.01 update installed fine, again took reg shot.

only difference is an 'info' line

reg file before 1.01 update

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ubisoft\IA mAlive]
"Language"="English"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ubisoft\IA mAlive\GameUpdate]
"execPath"="C:\\Program Files (x86)\\Ubisoft\\I Am Alive\\src\\SYSTEM\\IAmAlive_game.exe"
"installRootDir"="C:\\Program Files (x86)\\Ubisoft\\I Am Alive\\"
"InstallDir"="C:\\Program Files (x86)\\Ubisoft\\I Am Alive\\src\\SYSTEM"
"language"="us"
"info"="970ce8e57f8740d18ecc59f85052bb61"

after v1.01 update


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ubisoft\IA mAlive]
"Language"="English"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ubisoft\IA mAlive\GameUpdate]
"execPath"="C:\\Program Files (x86)\\Ubisoft\\I Am Alive\\src\\SYSTEM\\IAmAlive_game.exe"
"installRootDir"="C:\\Program Files (x86)\\Ubisoft\\I Am Alive\\"
"InstallDir"="C:\\Program Files (x86)\\Ubisoft\\I Am Alive\\src\\SYSTEM"
"language"="us"
"info"="a1e6f2494ac64cae9177ee36b8ae9b9e"

prudislav
22-12-2012, 02:08
I just cant install update on this conversion - dont know what the problem is - reg. entries seems to be fine. Maybe some Uninstall one like with FC3 and AC3
I have Uplay version of this game but it still uses that horrible installer so thats why i want better one

Fabioddq
22-12-2012, 06:52
Try update to 1.01 from original game and make the conversion again.

prudislav
22-12-2012, 07:15
it solves nothing :-(
but its probably my only choice since even more skilled people doesnt khow

Fabioddq
22-12-2012, 08:46
Yep, here update normally with original installer. I will try search for missing reg entries. But I think are the only entries posted by pakrat. ;)

pakrat2k2
22-12-2012, 09:12
went thru namelessone's reg entries in ISS script ONLY lines that are there that i dont see are the 2 Root: HKLM; SubKey: "SOFTWARE\Ubisoft\Launcher"; ones...

remove those 2 entries from your registry and see if update will then install.

prudislav
22-12-2012, 10:21
still: Error 1628: Failed to complete installation
EDIT: ok seems like that problem is not with conversion but with the patch itself

pakrat2k2
22-12-2012, 15:42
still: Error 1628: Failed to complete installation
EDIT: ok seems like that problem is not with conversion but with the patch itself

no i installed the game, then updated it from ubisoft ( static3.... link )
http://static3.cdn.ubi.com/i_am_alive/IAmAlive_1.01.exe
it updated without issue.

prudislav, tried using launcher.exe to update game directly?
unblock it from firewall if was blocked with game's exe too..

prudislav
23-12-2012, 03:23
From what i saw the patching method is pretty similar to the normall installer , which needs for whatever reasons 6GB on system disk(pretty insane for 2GB game). Dont know why devs choosed this sick method of installing/patching.

So I just did repack once again on v1.01 version in the end

HellRazor
23-12-2012, 03:56
From what i saw the patching method is pretty similar to the normall installer , which needs for whatever reasons 6GB on system disk(pretty insane for 2GB game). Dont know why devs choosed this sick method of installing/patching.

That's because we got used to the "classic" file replacement Updates. Updates contained changed files and we pretty much needed just to install the Update were Update just replaced old files with updated ones.

From your words, this Update is actually a Patcher update.
It Patches the original files and to do that, it needs to back up the original ones so that, if there is a f*ck-up in the patching, it can easily revert the changes back to the original version in case of corrupted installation due to internet mess-ups.

I don't know if @NamelessOne will update the installer to support further updates but it would be nice if someone can make new conversion with proper reg entries in case OP does not do it... :)

prudislav
23-12-2012, 04:31
the patch is trying to patch the installer itself(a copy of the I Am Alive.msi its stored on a special location on the hard drive) that was used to install the game, after that it will use the new patched I Am Alive.msi to install the game again, its a really idiotic system ;-)
(changed files have 30MB)
- so the problem are not reg entries but original installer/patcher

NamelessOne
23-12-2012, 07:54
I will update the conversion. I would do it earlier but I just saw that there is an update for the game :D

prudislav
18-04-2013, 08:31
The installer works perfect from folder but don't work from ISO or burned dvd. I have Win 7, 32bits.
I have this error:
runtime error (at 307:190):
Access is denied.

Seems like this games conversion is cursed for me :-D Now i am getting this error while running it from ISO :-D
and it was working fine when i tried months ago on same machine :-D
so in the end i just made simple generic installer :-D

reiji777
24-11-2013, 09:47
Seems like this games conversion is cursed for me :-D Now i am getting this error while running it from ISO :-D
and it was working fine when i tried months ago on same machine :-D
so in the end i just made simple generic installer :-D

same here :(

pakrat2k2
24-11-2013, 21:06
Seems like this games conversion is cursed for me :-D Now i am getting this error while running it from ISO :-D
and it was working fine when i tried months ago on same machine :-D
so in the end i just made simple generic installer :-D

same here :(

IF Either of you took the time to actually read the entire thread you'd have found the reason it doesn't work from ISO, but did from HD.

You both have a file in the ISO that shouldn't be there!! Setup.ini is the guilty file. Look at BOTH ISS scripts, #define Internal which means that, that file will be compressed into setup.exe, along with the files from extracted setup.cab.

Just re-did conversion & installed perfectly from ISO without that file. IF I included it in ISO, generated that runtime error> access denied.

prudislav
25-11-2013, 01:26
nobody is perfect :-D but thx for info

NamelessOne
25-11-2013, 05:35
I've finally managed to install the damn game and update it to 1.01 version. Curse upon you, Ubicrap and your registry entries :D So, I've updated the conversion to CIU 1.0.0.6, changed the look of the installer a bit (looks better to me now :D) and changed the game version to 1.01. Enjoy ;)