The untold mysteries of EA's __Installer folder
Page 1 of 1
Raccoon




Posts: 3160
Location: Poland
PostPosted: Sat, 3rd Nov 2012 23:13    Post subject: The untold mysteries of EA's __Installer folder
This is more a curiosity than any required knowledge, but who knows... Maybe one day it will prove itself useful for some of you.

Every recent game by EA that's been bound to Origin has __Installer folder within its game files. It always holds the following files:

Cleanup.dat
Cleanup.exe <-- uninstaller
installerdata.xml
Touchup.dat
Touchup.exe <-- installer

plus some typical redistributable packages.

Unfortunately, the whole operation doesn't just boil down to simple double clicking the installer file. Touchup.exe is a command line tool. Nonetheless, very easy to use with only few parameters.

Here's how it works:

Code:
Touchup.exe install -locale en_US -installPath "full_game_path" -autologging -startmenuIcon=1 -desktopIcon=1

Where:

-locale - put a valid language code from GDF file here

-installPath - put full path of your game folder here, contained within quotation marks

-startmenuIcon=1 and -desktopIcon=1 are fully optional

Q: What exactly this whole thing does?
A: Some quite useful things actually:
  • automatically creates desktop and Start Menu shortcuts
  • installs GDF library (adds game icon to Vista/7's Game Explorer for those 5 people that need them)
  • creates registry entries
  • sets up deserved language (all locale files are required; defaults to English otherwise)
  • automatically installs all necessary prerequisites (DirectX, Visual++, etc...)
  • adds application to Windows Firewall exception list
  • creates Uninstall entry in 'Programs and Features' (for some reason doesn't work for latest Medal of Honor*)
 Spoiler:
 

Q: Does it interfere with my Origin client/account in any way?
A: None that I would know of.

Q: I want to steal Skidrow/Reloaded/FLT's stuff, repack it, and release as my own. How do I incorporate it into my Inno Setup Script?
A: An example from Mass Effect 3:

Code:
[Run]

Filename: {app}\__Installer\Touchup.exe; Parameters: "install -locale en_US -installPath ""(app)"" -autologging -startmenuIcon=1 -desktopIcon=1"; StatusMsg: "Installing prerequisites..."; Flags: RunAsCurrentUser; Languages: english;

Filename: {app}\__Installer\Touchup.exe; Parameters: "install -locale pl_PL -installPath ""(app)"" -autologging -startmenuIcon=1 -desktopIcon=1"; StatusMsg: "Trwa instalacja wymaganych składników..."; Flags: RunAsCurrentUser; Languages: polish;

Q: Any tutorial?
A: Of course.

Let's say you've downloaded latest Need for Speed: Most Wanted packed into a single zip file, unzipped it and put everything into: "E:\Shitty EA Games\Need for Shit MW".

1) Open __Installer folder.

2) Right click on empty space and create a new text file.

3) Open it, copy/paste:

Code:
Touchup.exe install -locale en_US -installPath "E:\Shitty EA Games\Need for Shit MW" -autologging -startmenuIcon=1 -desktopIcon=1

Save and close.

4) Rename that text file to 'Install.bat'. (Mind the extension!)

5) Double click the batch file. Wait till it has finished (cmd window will close itself).

6) You're done! Smile

Note!

By any circumstances do not delete 'mnfst.txt' from Support folder. It's essential for Uninstall process to complete.


"Anatidaephobia is the fear that somewhere in the world there is a duck watching you."

Fuck Polish government for oppressing women!

"People are such awful conversationalists that they’ll interrupt you when you’re answering a question they asked."


Last edited by Raccoon on Mon, 5th Nov 2012 00:36; edited 7 times in total
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Sat, 3rd Nov 2012 23:25    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:53; edited 1 time in total
Back to top
Raccoon




Posts: 3160
Location: Poland
PostPosted: Sat, 3rd Nov 2012 23:28    Post subject:
garus wrote:
Completely accidentally EA created something useful grinhurt

Yeah, at least for once they did.

garus wrote:
Thanks for sharing Smile

You're welcome! Smile


"Anatidaephobia is the fear that somewhere in the world there is a duck watching you."

Fuck Polish government for oppressing women!

"People are such awful conversationalists that they’ll interrupt you when you’re answering a question they asked."
Back to top
ixigia
[Moderator] Consigliere



Posts: 65039
Location: Italy
PostPosted: Sun, 4th Nov 2012 00:31    Post subject:
Another epic Raccoon guide® !

Fun fact of the day: this afternoon I've spent 50 minutes trying to figure out why FIFA 13 (Origin of course) kept looping the "Ready to install" button instead of showing the "Play" one. Turns out that Origin auto-derped and changed the path in the registry adding a completely useless "\" at the end which screwed up everything. Laughing
Back to top
human_steel




Posts: 33269

PostPosted: Sun, 4th Nov 2012 11:45    Post subject:
ixigia wrote:
Another epic Raccoon guide® !

There are more?
Back to top
Hfric




Posts: 12017

PostPosted: Sun, 4th Nov 2012 14:29    Post subject:
EA just created they own self made full rips tool .. LOL


Back to top
ixigia
[Moderator] Consigliere



Posts: 65039
Location: Italy
PostPosted: Sun, 4th Nov 2012 17:35    Post subject:
human_steel wrote:
ixigia wrote:
Another epic Raccoon guide® !

There are more?

Yes http://www.nfohump.com/forum/viewtopic.php?p=2000569#2000569 Smile
Back to top
Raccoon




Posts: 3160
Location: Poland
PostPosted: Sun, 4th Nov 2012 18:44    Post subject:
@ ixigia Smile


Driven by curiosity I decided to investigate that missing uninstall entry for MoH Warfighter issue further. At first I thought the fault lies entirely on my side, that I'm doing something wrong. But no! Guess what. Very Happy

I dug up the registry entry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1040143F-FEFB-4B90-8E51-E47D40E14C4E}]

(Wow6432Node is a "junction" for mapping 32-bit registry on 64-bit Windows versions. So on 32-bit Windows is has to be omitted.)

And here's what it looks like:



Are You Serious
EA's quality assurance at its best. Have they even tested it?

UPDATE: Nah, my bad! Sad EA's innocent. Sorry!

To fix it either manually type something in DisplayName string or use this. Appropriate entry will appear in "Programs and Features" right away. Smile


"Anatidaephobia is the fear that somewhere in the world there is a duck watching you."

Fuck Polish government for oppressing women!

"People are such awful conversationalists that they’ll interrupt you when you’re answering a question they asked."


Last edited by Raccoon on Mon, 5th Nov 2012 00:31; edited 1 time in total
Back to top
JBeckman
VIP Member



Posts: 34863
Location: Sweden
PostPosted: Sun, 4th Nov 2012 19:17    Post subject:
It shows up as "Medal of Honor™ Warfighter" when I checked via Regedit, maybe something with using that tool stand-alone?
(Unsure where that info is supplied from, I knew that those two exe files were command line utilities but I didn't know much else other than what Origin logged about them, in any case this is a nice guide.)
Back to top
human_steel




Posts: 33269

PostPosted: Sun, 4th Nov 2012 19:21    Post subject:
Aren't the missing Start Menu/Uninstall entries due to the FLT release? They have a custom installer (like in other past situations) which only extracts the Origin content into a folder of choice. Nothing else is created anywhere.
Back to top
Raccoon




Posts: 3160
Location: Poland
PostPosted: Mon, 5th Nov 2012 00:26    Post subject:
@ human_steel & JBeckman

I have finally figured out what's the cause for this missing uninstall entry. FLT installer doesn't just unpack the whole stuff, it also modifies some registry keys which prevent Touchup.exe from operating properly. When registry is perfectly clear, everything works like it should. Smile

So sorry EA, it indeed was not your fault. Very Happy


"Anatidaephobia is the fear that somewhere in the world there is a duck watching you."

Fuck Polish government for oppressing women!

"People are such awful conversationalists that they’ll interrupt you when you’re answering a question they asked."
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - PC Games - Technical
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group