You are here

Installer Language Selection Help

8 posts / 0 new
Last post
Magibon
Offline
Last seen: 10 years 11 months ago
Joined: 2011-12-06 07:57
Installer Language Selection Help

Hey guys.. i've been pulling my hair out these past few days attempting my first language selection from the installer.

I've dissected LibreOffice, WinDjView for help.

Im making a PAF launcher/installer for Adobe Photoshop.. im sick of the bloat it comes with.
This is for my own personal use.. so no copyright infringement will be shared here.

But .. here's my custom.nsh, which i have placed in Launcher:
http://pastebay.com/147848

And here's part of my Launcher.ini (the part that's relevant):
http://pastebay.com/147849

Basically.. Photoshop uses the registry to select the language at launch.
I converted PAF language strings into Photoshops'.
Then i checked to see if 'Adobe.reg' is present in Data/settings, if not, create it, then populate it with the registry info. using the language variable.

But nothing is being generated.. no sign of 'Adobe.reg'.

F.Y.I
I have 'Adobe.reg' in DefaultData\settings w/:
REGEDIT4

[HKEY_CURRENT_USER\Software\Adobe\Photoshop\55.0]
"uiLanguageKey CS5.1"="en_US"

Thank you in advance...

david_pi
Offline
Last seen: 1 year 10 months ago
Joined: 2011-03-19 09:44
This is custom.nsh or

This is custom.nsh or PortableApps.comInstallerCustom.nsh?

I think you mix them together, this won't work.

Magibon
Offline
Last seen: 10 years 11 months ago
Joined: 2011-12-06 07:57
You're Right!

that was the problem.. i should have separated the coding for the installer into:
PortableApps.comInstallerCustom.nsh

and put in Other/Source.

It works now!

I just have to tweak the coding a bit so the output file will work as a .reg file Smile
But atleast now.. i can see results !

Thank you kAlug.. your TrimRight/Left helped.

___________________

One more question.. i was contemplating Allowing extra user configuration in AppNamePortable.ini next to AppNamePortable.exe. I would enter '${ReadUserConfig} $0 KeyName' in CustomCode.nsh?

david_pi
Offline
Last seen: 1 year 10 months ago
Joined: 2011-03-19 09:44
It would

It would be:

${ReadLauncherConfig} $0 Section Key

Please read this:
http://portableapps.chrismorgan.info/launcher/manual/advanced/custom/#ad...

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
ReadUserConfig

He asked for the one next to AppNamePortable.exe.

Previously known as kAlug.

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Try this
[Activate]
Registry=true

[RegistryKeys]
Adobe=HKCU\Software\Adobe\Photoshop\55.0

[Language]
Base=%PortableApps.comLocaleName%
CheckIfExists=%PAL:AppDir%\Photoshop\Locales\%PAL:LanguageCustom%
DefaultIfNotExists=English
 
[LanguageStrings]
Czech=cs_CZ
Danish=da_DK
German=de_DE
English=en_US
Spanish=es_ES
SpanishInternational=es_MX
Finnish=fi_FI
French=fr_FR
Hungarian=hu_HU
Italian=it_IT
Japanese=ja_JP
Korean=ko_KR
Norwegian=nb_NO
Dutch=nl_NL
Polish=pl_PL
PortugueseBR=pt_BR
Romanian=ro_RO
Russian=ru_RU
Swedish=sv_SE
Turkish=tr_TR
Ukrainian=uk_UA
SimpChinese=zh_CN
TradChinese=zh_TW
 
[LanguageFile]
Type=INI
File=%PAL:DataDir%\settings\Adobe.reg
Key='"uiLanguageKey CS5.1"'
TrimLeft="
TrimRight="

[FileWrite1]
Type=INI
File=%PAL:DataDir%\settings\Adobe.reg
Section=HKEY_CURRENT_USER\Software\Adobe\Photoshop\55.0
Key='"uiLanguageKey CS5.1"'
Value='"%PAL:LanguageCustom%"'

Previously known as kAlug.

Magibon
Offline
Last seen: 10 years 11 months ago
Joined: 2011-12-06 07:57
Question

Hey kAlug,
i got everything to work .. Photoshop launches with the correct language as selected during the installation...

But.. only if i remove:
[FileWrite1]
Type=INI
File=%PAL:DataDir%\settings\Adobe.reg
Section=HKEY_CURRENT_USER\Software\Adobe\Photoshop\55.0
Key='"uiLanguageKey CS5.1"'
Value='"%PAL:LanguageCustom%"'

If i keep that in .. it changes it back to English?

Would you know what is going wrong ?

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
No, it doesn't make sense

Can you upload your entire launcher.ini and Custom.nsh?

Previously known as kAlug.

Log in or register to post comments