This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Options file reading in confusion
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2008
03:50 PM
Options file reading in confusion
I have an options file I'm using and my question has to do with the reading in from the file. The one part of my options file that is giving me an issue looks like this:
-V usrLang=ja_JPand when I'm reading it in I do
public void silentExecuteSelectLanguage(ISSilentContext arg0){However no matter what I put in the options file it prints out "en_US" (the default) as the usrLang. I played around with some other files and I'm pretty sure I'm doing the reading in correctly so any idea why it's reading in the wrong value?
try{
String lang = arg0.getServices().getISDatabase().getVariableValue("usrLang");
System.out.println("The lang is " + lang);
arg0.getWizard().getServices().getISDatabase().setVariableValue("usrLang", lang;
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2008
10:49 AM
Do you have code that initializes that variable somewhere besides the Property Manager? I too had something similar where I had code in my OnBegin that was setting the variable - which would overwrite the optionfiles value!
Also - try putting the value in double quotes!
-V usrLang="ja_JP"
Also - try putting the value in double quotes!
-V usrLang="ja_JP"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2008
11:33 AM
Hmm the double quotes did not work but I might be setting it elsewhere, I'll poke around and see if I can find something.
It was being set somewhere else, got it to work now. Thanks!
It was being set somewhere else, got it to work now. Thanks!