Hi there,
first of all I want to say how great the portable solution is.
We plan to develop a CD-ROM that will use Firefox Portable. Via autostart we launch a custom SplashScreen, where the user can choose a language for the content to be shown with FFP.
My question: is it possible to say FFP to have different homepages depending on the language the user chose? Remember, this will be a CD-ROM, so no chance to write any prefs or something...
Thank you and best regards!
joge
although don't quote me on this, that you can pass a file for Portable Firefox to load on open, your program could pass a different page depending on the language and it wouldn't need any writing to CD.
Yours
Steve Lamerton
My Blog
Yep it could be done. You would have to modify the launcher, or create another script to bring up the language prompt and then load the home page data. You need a file that would list each language, and its associated home page.
maybe an ini file in this format:
[LANG]
{Language}=www.somesite.com (NOT A REAL SITE)
replace {Language} with the name of each language, and somesite with a real URL
if you use an external script, it then could launch FirefoxPortable.exe via command line with the selected home page as a parameter. In this case, the splash screen would be displayed AFTER the prompt to select a language. Or the script itself could display the splash, then have no splash used in the FFP launcher.
If modifying the launcher, after the splash is displayed, have it bring up a GUI with language selection, then based on the selected language, read from the ini which home page is correct, pass that home page into a variable, and then that should be added to the launch. Probably in this section:
StartProgramAndExit:
Exec $EXECSTRING
Goto TheEnd
I think, change it to this::
StartProgramAndExit:
StrCpy $EXECSTRING '$EXECSTRING $LANG_SPEC_HOMEPAGE'
Exec $EXECSTRING
Goto TheEnd
Can somebody more familiar with NSIS confirm this please??
The developer formerly known as ZGitRDun8705