You are here

Start app w/ different .ini parms

8 posts / 0 new
Last post
siegfre
Offline
Last seen: 5 years 2 weeks ago
Joined: 2006-11-15 22:51
Start app w/ different .ini parms

First off, I did a search & did not come up with an answer (though I suspect that there was one buried in there some where).

I'd like too be able to start Chrome portable with a 1 of 2 .ini's which have different Additional Parameters. I know I can edit GoogleChromePortable.ini with the appropriate parms. But I'd like to void having to do the edit when I want to start the app with different parms.

One way I got around the problem was to have Chrome installed in 2 seeperate directories with 2 separate GoogleChromePortable.ini. BUt that seems like the sledgehammer approach. Is there another way?

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 9 months ago
Developer
Joined: 2008-09-30 19:18
No

However, if you want to use the same data, you can edit one of the INIs to point the the data of your main installation, so that you don't have multiple profiles.

siegfre
Offline
Last seen: 5 years 2 weeks ago
Joined: 2006-11-15 22:51
Thanks

That's what I thought. Thanks for the reply.

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2006-12-29 23:48
Point everything to the other install.

If you place a second GoogleChromePortable install in another folder (e.g. X:\PortableApps\GoogleChromePortable2ndProfile), add a GoogleChromePortable.ini file and edit it as follows:

[GoogleChromePortable]
Google ChromeDirectory=..\GoogleChromePortable\App\Chrome-bin
ProfileDirectory=..\GoogleChromePortable\Data\profile
SettingsDirectory=..\GoogleChromePortable\Data\settings
AdditionalParameters=[InsertYourDesiredParametersHere]

Then You can delete the …2ndProfile\App\Chrome-bin, …2ndProfile\App\DefaultData, …2ndProfile\Data, and …2ndProfile\Other folders, and I think it'll do what you want with minimal overhead (I'm guessing 300-500 KB).

Note: and if you want to use a second profile, then you could leave the ProfileDirectory line as:

ProfileDirectory=Data\profile

Let us know if this works for you.

~3D1T0R

siegfre
Offline
Last seen: 5 years 2 weeks ago
Joined: 2006-11-15 22:51
Works :-)

Thanks 3D1T0R. That is exactly what I wanted to do.

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2006-12-29 23:48
Good, but keep that launcher updated. ☺

Sweet, Glad it worked.
However I don't know how often the GoogleChromePortable Launcher itself actually gets updated, and you're effectively using the launcher from whatever version you copied the GoogleChromePortable.exe from, so I'd recommend copying the GoogleChromePortable.exe over from your standard GoogleChromePortable installation to your 2ndProfile (or whatever you called it) [partial] installation when GoogleChromePortable gets updates.

~3D1T0R

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 2 weeks 1 day ago
DeveloperModerator
Joined: 2008-07-24 18:46
Also App\Appinfo

You also need to update App\Appinfo as well, as the launcher needs that directory to run.

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2006-12-29 23:48
Yes & No; Maybe AppInfo.ini should be edited?

It might be a good idea to keep the App\AppInfo directory up-to-date as well, but AFAICT the Google Chrome Portable launcher doesn't use it, so it shouldn't be necessary; in fact it might be a good idea to change the App\AppInfo\appinfo.ini file to something resembling the following:

[Format]
Type=PortableApps.comFormat
Version=2.0

[Details]
Name=Google Chrome Portable 2nd Profile
AppId=GoogleChromePortable2ndProfile
Publisher=Google & PortableApps.com
Homepage=portableapps.com/apps/internet/google_chrome_portable
Category=Internet
Description=A secondary profile for Google Chrome Portable.
Language=Multilingual

[License]
Shareable=true
OpenSource=false
Freeware=true
CommercialUse=true
EULAVersion=1

[Version]
PackageVersion=0.0.0.1
DisplayVersion=0.0.0.1 DevTest 1

[Control]
Icons=1
Start=GoogleChromePortable.exe

That way if an official GoogleChromePortable2ndProfile ever gets released (and added to the Portable App Directory™) it can be updated to it from the PA.c Platform's Updater. (Never mind, the current Updater exclusively uses the FolderName as the AppID, so changing the appinfo.ini file won't make or break the ability to Update, but you could still change it if you want. [Just 'cause it's cool? maybe?])

~3D1T0R

Log in or register to post comments