I have a .wsi project in english, I would like to use Wise Automation to be able to change the language of all the strings, and then compile the project using C# or VBScript. Can some please give me a small code sample or explain the best way to go about this.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
can you be a little more specific as to what you want ? there is a number of ways this could be done but you really have given virtually no detail as to what you want or need . .
Answered 10/13/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
Basically, I have 1 .wsi project, which creates an msi which is in english. I need to compile the project 7 times, each time in a different language because we have the same product in 7 languages. I have been asked by my boss to use wise automation to handle this.

So basically the script will change all text strings in the wsi project, and then compile the project into an msi.
Answered 10/14/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Your first port of call must surely be (assuming you used default paths when installing the client) 'C:\Program Files\Altiris\Wise Package Studio\Technical Documentation\Wise Automation\WiseAutomation.chm'
Answered 10/14/2008 by: VBScab
Red Belt

Please log in to comment
0
VBScap: I have looked through the documentation. I was just looking for other sources of information, you cant have too much information. So just wondering if anyone knows of any articles, tutorials etc on the internet, or some more code samples if anyone has done anything similar
Answered 10/14/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
I need to compile the project 7 times, each time in a different language
This is not necessary. Just check all the languages you need in "Installation Expert" - Languages and compile.
With this, you get an MSI for each language. We do this regularly.
If we need language transforms, we use "msitran.exe" from the SDK in a batch file to generate them against the english one.
Regards, Nick
Answered 10/15/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
ORIGINAL: kristjan84
So just wondering if anyone knows of any articles, tutorials etc on the internet, or some more code samples if anyone has done anything similar
I think it's unlikely you'd find any which were easily available. However, I believe Ed Tibbert (sp?) - whose ID is 'EdT' - on the Altiris forums http://forums.altiris.com/categories.aspx?catid=19 has done a bit of automation stuff. Try there.

@Nick: I just happen to have a project open in a VM while responding and, on checking the 'Language' page, everything is greyed-out. Why would that be? The help file is of no use whatsoever in providing any clue!
Answered 10/16/2008 by: VBScab
Red Belt

Please log in to comment
0
Could it be that there is no language option available for a Transform?
Answered 10/16/2008 by: LouisW
Senior Yellow Belt

Please log in to comment
0
Hi Ian,
Louis is right, i think.
If i open a transform in Wise (something, i almost never do), the hole "Languages" page is greyed out.
However, this is not the case, if you create a WSI from scratch.
Regards, Nick
Answered 10/16/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
I have looked into this a bit more on the internet, and see that you can actually embed the language transform inside the .msi, and when you run the installer, it will check which language the user is using in windows, and use that transform if available.

here is a tutorial on how to do this:
http://juice.altiris.com/article/3152/msi-multi-language-without-setupexe-launcher

if anyone manages to get this work, please let me know, because I have tried it and I cant get it to work.
Answered 10/16/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
we do this regularly.
This are the necessary steps:
Create a MSI for each language in Wise.
Generate language transforms with "msitran.exe" from the SDK, running each language MSI against the english one.
Naming the language MST only with the language code, like 1031 for german, 1036 for french.
embedding the language transforms into the MSI with WiSubStg.vbs from the SDK with a line like this:
cscript WiSubStg.vbs "YourApp.msi" german.MST 1031
Then, the MSI needs to know about those language transforms. It needs an entry for each transform in the Summary Informations language field.
You can do this with an SDK tool too:
msiinfo "YourApp.msi" /p "Intel;1033,1031,1040,1036"
That's all!

Be aware, that Windows Installer uses the settings from the control panels "Regional and Language options" settings and not the actual installed language version of Windows (also multi language packs are not relevant for this settings)!

Regards, Nick
Answered 10/17/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
Nheim, thanks for the reply,

what is the command I should be using for msitran.exe

At the moment i have 2 msi´s:

program_english.msi
program_german.msi
Answered 10/17/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
use the "/?" switch, this stuff is pretty much self explaining.
However, here is the command line:
msitran -g " program_english.msi" " program_german.msi" german.mst
and embedding:
cscript WiSubStg.vbs "program_english.msi" german.MST 1031
Good luck.
Regards, Nick
Answered 10/17/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
Im pretty sure im not doing anything wrong, tried what you explained a number of times, even created a new installation which only installs 1 file, and I always get an error when I try to run the installer, when I have changed the language in regional settings.

The error I keep getting is: Error applying transform. Verify that the specified transform paths are valid

Any ideas?
Answered 10/17/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Sorry for the double post, but got some more information,

I created a new installation, which only installs 1 file. I created the language transform, and did not embed it into the msi. Then i ran from the command line: msiexec test.msi TRANSFORMS="German.mst"

and I still get the same error which is in my post above. It seems that for some reason, the transforms I use after running msitrans.exe are not working.
Answered 10/17/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
please upload your MSI and MST to an ftp server like www.senduit.com
Then, i will take a look at it.
Regards, Nick
Answered 10/19/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
ORIGINAL: kristjan84
Sorry for the double post,
To avoid that, you can edit your own posts. Alongside the usual 'Reply', 'Quote' and 'Find' buttons, you'll find an 'Edit' one for your own posts.
Answered 10/20/2008 by: VBScab
Red Belt

Please log in to comment
0
I have posted the msi and the german.mst for you to have a look at nheim [:D]

here is the link: http://senduit.com/682ed5

Thanks again for all your help
Answered 10/20/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
don't know exactly, what you are doing, but this example works like a charm!
Tested it under XP and Vista.
msiexec /i LangTest.msi TRANSFORMS=german.mst runs perfect.
cscript WiSubStg.vbs LangTest1.msi german.mst 1031 works perfect.
Sorry, can't find the slightest problem here.
Regards, Nick
Answered 10/21/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
Ok, not sure exactly what i did last time, but when i use TRANSFORMS="german.mst" that works fine, but when I embed the tranform in the msi, and change language to german in regional settings, then i still get the installer in english, this is the command im using to embed the script:

cscript WiSubStg.vbs LangTest1.msi german.mst 1031
Answered 10/21/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
your entry in the Summary Informations language field isn't correct.
You have to put in an entry for the base language and for each language transform.
In your example, it should look like this: 1033, 1031.
Regards, Nick
Answered 10/21/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
after i do the following command:

msiinfo LangTest.msi /p "Intel;1033,1031"

I get the following:

Error applying tranforms. Verify that the specified tranform paths are valid
Answered 10/21/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
check the Summary Informations language field again for the entries 1033,1031
Log the installation and put the logfile on senduit.
Regards, Nick
Answered 10/22/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
I have managed to get this working at last, I had written down the instructions incorrectly [:D]

So for anyone who is trying to get this working here are the exact steps in 1 post:

compile msi english and german, then do the following commands

msitran.exe -g langtest.msi langtest_german.msi German.mst
cscript wisubstg.vbs langtest.msi german.mst 1031
msiinfo langtest.msi /p "Intel;1033,1031"

Thanks again for all your help Nick [:D]
Answered 10/22/2008 by: kristjan84
Orange Belt

Please log in to comment
0
Hi Stuart,
cool!
Glad to see, it worked out for you.
Keep MSIing :-)
Regards, Nick
Answered 10/22/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity