Wise Automation - Language
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
Answers (24)
Please log in to answer
Posted by:
kristjan84
15 years ago
Posted by:
nheim
15 years ago
Posted by:
kristjan84
15 years ago
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?
The error I keep getting is: Error applying transform. Verify that the specified transform paths are valid
Any ideas?
Posted by:
kristjan84
15 years ago
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.
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.
Posted by:
nheim
15 years ago
Posted by:
anonymous_9363
15 years ago
Posted by:
kristjan84
15 years ago
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
here is the link: http://senduit.com/682ed5
Thanks again for all your help
Posted by:
nheim
15 years ago
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
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
Posted by:
kristjan84
15 years ago
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
cscript WiSubStg.vbs LangTest1.msi german.mst 1031
Posted by:
nheim
15 years ago
Posted by:
kristjan84
15 years ago
Posted by:
nheim
15 years ago
Posted by:
kristjan84
15 years ago
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]
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]
Posted by:
nheim
15 years ago
Posted by:
jmcfadyen
15 years ago
Posted by:
kristjan84
15 years ago
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.
So basically the script will change all text strings in the wsi project, and then compile the project into an msi.
Posted by:
anonymous_9363
15 years ago
Posted by:
kristjan84
15 years ago
Posted by:
nheim
15 years ago
Hi Stuart,
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
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
Posted by:
anonymous_9363
15 years ago
ORIGINAL: kristjan84I 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.
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
@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!
Posted by:
LouisW
15 years ago
Posted by:
nheim
15 years ago
Posted by:
kristjan84
15 years ago
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.
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.
Posted by:
nheim
15 years ago
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
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.