You are here

Silent installation with language selection

7 posts / 0 new
Last post
A-d-r-i
Offline
Last seen: 3 years 7 months ago
Joined: 2020-09-18 08:56
Silent installation with language selection

Hello all,
A quick question: is it possible to install the platform silently on the command line?
Small contextualization: I am creating a chocolatey package for this software. It is therefore necessary to install the application without any window appearing. However, installing PortableApps.com Platform requires selecting the user's language.
Is it possible to select the language beforehand on the command line? using, for example, the LCID of windows (in powershell: (get-culture).LCID).

Thanks in advance for any informations,

A-d-r-i

John T. Haller
John T. Haller's picture
Offline
Last seen: 13 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Environment Variable?

Can you set an environment variable? If not, I can update the installer to allow something like this.

You can set the location to install to using /DESTINATION= on the command line. The other NSIS strings might work, but are not recommended.

Sometimes, the impossible can become possible, if you're awesome!

A-d-r-i
Offline
Last seen: 3 years 7 months ago
Joined: 2020-09-18 08:56
it works!

Hi,
Thank you for your reply ! This is exactly what I was looking for !
It seems to have worked!

Are there other environment variables that I can use?

Thanks for your help!

John T. Haller
John T. Haller's picture
Offline
Last seen: 13 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
One Internal One, I'll Add One

The installer uses the environment variable PortableApps.comLocaleID_INTERNAL set by the PA.c Platform to know what language to use as it installs. This maps to LCID for I think all languages NSIS supports at present. Unfortunately, this is an internal use only variable so other things may step on it at some point. You can use this for a package for now for the 17.1.1 release and I'll add a command line switch for the next release for chocalatey to make things easier and more consistent.

I've added it to the upcoming features list and will update here on release as well: https://portableapps.com/node/28593

Sometimes, the impossible can become possible, if you're awesome!

A-d-r-i
Offline
Last seen: 3 years 7 months ago
Joined: 2020-09-18 08:56
Perfect!

Thank you for your investment!

John T. Haller
John T. Haller's picture
Offline
Last seen: 13 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
String in 18 Beta 1

I've implemented the new env var I'd mentioned for you to test in the 18 Beta 1 release. It's called PortableApps.comLocaleID_PlatformInstaller and it works the same way as the internal string.

Sometimes, the impossible can become possible, if you're awesome!

John T. Haller
John T. Haller's picture
Offline
Last seen: 13 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Now Released

This is now in the 18.0 stable release, so you can implement it.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments