Install4j shows wrong language at startup - install4j

i created an installer with install4j which has 8 languages. The default language is english. According to the manual of install4j the first screen will be displayed in the default system language. But at some systems i get the first "preparing the Install4j assisant..." screen with an different language.
At the logfile i get the informations :
user.language=en
[INFO] System language 'en'
There is also english as default language in the registry of the system (HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Nls\Language).
Can someone help me with this issue. Why i get a different language at the first screen of the installation.

The initial progress dialog is created by the native part of the installer, the installer wizard is created by the Java part of the installer. They have different ways of detecting the default language. You can get more information about the native part of the installer by starting the installer with the argument /create-i4j-log. A separate log file will then be created and shown in the explorer.

Related

Adding Environment Variables to Eclipse shortcut

Is it possible to set an environment variable for the current run of Eclipse ( RAD )?
Here is my situation
I have RAD 8.5 and RAD 9.0 installed on my box. It stopped working all of a sudden last week. It wouldn't even come up. When I checked the logs, both the versions had below error in the logs
java.lang.NoClassDefFoundError: com.mercury.ftjadin.hooks.interfaces.WToolkitHookQTJA
After some research I also found out that it is caused by HP's product that was installed on my box ( It was done as a corporate push and I wasn't even aware of it ).
Further research also revealed that there are about 4 environment variables that have a conflict with Eclipse and should be removed / blanked out for RAD to work. This will of course cause the HP product to not work.
So, I was wondering if there is a way to set these to blank in eclipse.ini file for each of the RADs or as part of the shorcut of RAD which is
C:\Software\RAD90\eclipse.exe -product com.ibm.rational.rad.product.v9.ide -showlocation -nosplash -clean
but not blank them out in the Environment Variables definition
This way, I will be able to use both the products without having to save the variable values between RAD and HP Mercury product usages and do not have to do a copy / paste every time which is prone to user errors / mistakes.
Hope the question makes sense. Please let me know, if I need to clarify anything.
You can start eclipse (for example RAD) from eclipse (for example a minimal Java plugin development) and in that case, you have the option to set the environment variables you want to use.
You have to set the target environment to the RAD instance and create a run configuration with the proper environment.
I know, this is less than ideal, but should work.
Another option would be the unsetting env variables (locally) in a batch file:
set var=
Though I do not know whether it would work or not.
This page helped my situation
Instead of playing with registry I took an option of batch
These suggestions will allow to work around this situation even with the environment variables in place and with corresponding values. Note: Conflicting application will not be recognized in a java context because it is being excluded from the java support mechanism.
Impact: Excludes Add-ins support from hooking to conflicting application executable via Windows Registry Editor
Requirement: The application must be started by an EXE file, except Java.exe/Javaw.exe/jpnlauncher.exe
Instructions:
a. Locate the executable filename of the application conflicting with add-in(s) support. Either use the Task Manager or the Microsoft Process Explorer.
b. Open Windows Registry Editor.
c. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\JavaAgent\Modules
For 32bits applications on Windows x64:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\JavaAgent\Modules
d. Create a DWORD value with the name of the conflicting software executable filenmae and set the value to 0.
Impact: Does not load Java Support for specific launched session
Requirement: Application be launched using a batch file
Instructions:
a. Create a batch file (.bat)
b. Copy/Paste below coding before executing launching of Java application.
#ECHO off
Set _JAVA_OPTIONS=
Set JAVA_TOOL_OPTIONS=
Set IBM_JAVA_OPTIONS=
This approach will disable the java environment variables for the run session of the .bat file. Once batch execution closes, environment variables changes are lost.

Websphere Application Server 6.1 (localized): Override locale for console messages

I have installed RAD 7.5 (based on Eclipse Ganymede 3.4.0) in Spanish. I'm working with Websphere Application Server 6.1 (spanish too).
The problem I have is that all console messages appear in Spanish, but translation is, in my personal opinion, quite poor (especially since even the console errors are displayed in Spanish and it's difficult to find documentation about exact error messages).
I want to start the IDE in the original language (English) and I know that there is a command line switch -nl en that, placed beside eclipse executable path on program shortcut, serves for this purpose. But I'm still getting some resources' labels (e.g. "Tasks" tab) into spanish (tab says "Tareas"), also server console still displays messages in spanish.
[UPDATE: Yesterday the client for whom I work, changed my PC for a more powerful one, and the untranslated tabs problem does not occur anymore (the new PC has Windows 7 and the previous one was XP, maybe it's that)]
My question is: Does anyone know how I could get WAS console messages displayed 100% in English, overriding locale specified at setup time? Is there some command line switch that serves to get this? Is there any way to edit WAS config files to achieve this?
Note: It is impossible to reinstall RAD and WAS, because of some restrictions on my computer.
Thanks in advance.
Web Console:
To change web console messages you have to set english as web browser's preferred language.
Log messages:
WebSphere logging/tracing mechanism are build upon Java's standard library ResourceBundle/Locale classes.
Localized messages are stored inside WebSphere jars
(example: com.ibm.ws.naming.util.WsnMessages_es.class).
So to change the console language you have to change JVM default locale's language.
In WebSphere Console:
[Application Server] \ Server Infrastructure \
Java and Process Management\
Process definition \
Java Virtual Machine \
Generic JVM arguments
Add parameter : -Duser.language=US
This method changes JVM's configuration so it can have impact on you application.

Installshield 2009 installer refuses to onfigure for a second user (did work until recently)

Since years we use installshield to deliver our software. Since the last Version of our software the following happens:
After installing the program for "all users", when a restricted user logs in, he sees our applications Icon on the desktop. When double clicking it the first time a dialog appears "Configuring ". In recent versions after a while the dialog disappeared and our program stared. Now the process is aborted with a message: "The function is hosted on a unavailable network resource". Our program does not start. But when we create a shortcut to the .exe file by hand everything's fine.
We did not make any modifications to the installer project recently (besides changing the Version number). We also denied to install updates.
Questions:
What can the problem be?
How can i debug a installer?
Not so sure about Installshield (I use Wise) but you should check the following:
Set the MSI Property "ALLUSERS" to 1 in the "Property" table of the MSI database. See Windows Installer SDK documentation for more details. This ensures that all users get a shortcut for launching the application.
Call your installer with
MSIEXEC.EXE /v MyInstall.MSI
from the command line (this sets the logging to verbose) - might help!
Liam

Eclipse RCP application launcher not working properly in Arabic

I have an RCP application which I build using the .product file and PDE. In my product file I create a binary launcher for different applications to provide convenience to the user. It all works fine except when testing in Arabic languages.
In Arabic the application starts and it actually shows the Arabic characters that I mocked for testing but, it does not mirror.
That said, if I invoke the launcher and pass the -nl switch
launcher.exe -nl AR
Then it mirrors.
Also if I launch from the IDE with the target platform environment set to AR it mirrors too.
I am shipping the bidi plugins for jface and swt (along with the NL plugins) and for the platform delta packs...
Does anynone know what could be wrong with the laucher?
The launcher itself does not set a value for -nl (or osgi.nl). If it isn't set explicitly then the default is java.util.Locale#getDefault(). The value there depends on the vm/os. You may need to set the nl in the launcher.ini or config.ini files.
Turns out this is a Eclipse/RCP bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=303889

How to force eclipse to use a specified interface language?

My new work laptop has my native (Polish) locale set. However, I'm simply not able to use eclipse in any language other than English. I'm so used to English names I don't understand the translations.
How do I force Eclipse to start with other language than the OS uses?
OK, I got it:
eclipse.ini should contain following line:
-Duser.language=en_US
If adding "-Duser.language=fr" or "-nl fr" to your command line (or, equivalently, adding "osgi.nl=fr" to configuration/config.ini) has no apparent effect, you are missing the language packs (en_US is the default language pack).
You must then add the "Babel Language Pack Update Site" for the appropriate Eclipse release. Go to http://www.eclipse.org/babel/downloads.php to look it up. For instance, the Juno Babel language pack update site is http://download.eclipse.org/technology/babel/update-site/R0.10.0/juno. Add this site to your Available Software sites (Help: Install New Software: Available Software Sites). You will then be able to select the pertinent "Babel Language Packs for Eclipse" for installation (e.g. fr in this case). After an automatic restart, you should have the UI in your choice of language.