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...
This is custom.nsh or PortableApps.comInstallerCustom.nsh?
I think you mix them together, this won't work.
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
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?
It would be:
${ReadLauncherConfig} $0 Section Key
Please read this:
http://portableapps.chrismorgan.info/launcher/manual/advanced/custom/#ad...
He asked for the one next to AppNamePortable.exe.
Previously known as kAlug.
Previously known as kAlug.
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 ?
Can you upload your entire launcher.ini and Custom.nsh?
Previously known as kAlug.