Sign in to follow this  
Followers 0
Rick Brewster

How To: Install Paint.NET in a different language

1 post in this topic

These instructions are intended for people who wish to distribute Paint.NET and to make the installer display in a language other than English or German. This came about because someone requested putting Paint.NET on a French training CD-ROM and wanted to make installation as easy as possible.

NOTE: While this allows you to have the installation wizard displayed in another language, it does not install the language pack for use by the application itself. You must still do that as a separate step after installation. It is still possible to automate this, but it takes some extra effort. See below for some guidance on this.

Here is our goal:

pdnsetup_ml.png

Step 1. Download the latest version of Paint.NET from the website, http://www.getpaint.net

Step 2. Double-click on the installer, PaintDotNet.Version.Number.Install.exe

Step 3. Once the installation wizard starts up, do not click on anything!

Step 4. In Windows Explorer, open the following directory: %TEMP%

Step 5. Inside this directory, copy PdnSetup to your desktop.

Step 6. Click "Cancel" in the Setup wizard and close it down.

Step 7. You should now have a directory on your desktop like this:

pdnsetup_step7.png

Step 8. Download the language packs that you are interested in from here: http://forums.getpaint.net/index.php?/forum/5-translation-and-localization/

Step 9. Extract only the strings files to the folder shown in step 7. Let's say we want to add French, Czech, and Chinese (Traditional). We would download those language packs and extract their contents to the folder like so:

pdnsetup_step9.png

Step 10. At this point you can copy this directory on to a CD-ROM or something, and instruct users to double click on SetupShim.exe. To make it easier, feel free to rename that file to just Setup.exe, or provide some type of shortcut to it.

Lastly, this does not install the language pack for use in the application!!! However, you can automate this process as well. I do not have a batch file or script or anything prepared, but the pseudo code for automating the entire setup process would look like this, assuming you have done the steps listed above:

run SetupShim.exe and wait for it to exit

if the return code ("ERRORLEVEL") does not equal 0 (zero), then exit: this indicates an error of some sort, and setup did not complete

get the value of the following registry key: "HKEY_LOCAL_MACHINE\Software\Paint.NET\TARGETDIR"

if the registry key doesn't exist, then exit (this means setup did not complete: the user cancelled, or was not successful)

extract the desired language packs to the directory specified by that registry key

set the value of the following registry key: "HKEY_LOCAL_MACHINE\Software\Paint.NET\LanguageName" to the desired locale name ("fr" for French, "cs" for Czech, "zh-CHT" for Chinese Traditional, etc., although without the quotes). this will set the default language for all users of Paint.NET on the system

done!

This should be simple enough to do in VBScript, but I just don't have anything prepared for it. If someone here on the forums would be willing to provide a script for this, I think people would very much appreciate it :)

0

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0