tags:

views:

242

answers:

1

Hello, I have a msi package that have option to install two different languages , is there a way to detect the parameter responsible for selecting the language so I can use the command prompt to install the package silently (unattended installation) ?

Thanks

A: 

The normal way to do things with an MSI is any property in the property table who is named entirely with capital letters is considered a public external property. This means it is settable when you run the MSI from the command line.

So if you work out how you want to flag your language choice, put a property in for it, and then you can link the installation of components or features inside the MSI to that flag/variable.

So if you are not familiar with the concepts yet, check out components, features and properties of MSIs. You don't mention which MSI builder you are using - if you are using the one that comes with Visual Studio i don't know if it is capable of giving you access to the components and feature, but there are one or two low priced or free (i.e. Wix) alternatives out there that do (if you are using something proper like Wise or InstallShield then you have full control over all these things).

Edit: here is a link to a script that will extract a list of public properties for you (click on the text Get MSI-File properties.vbs to see the script). Alternatively, this link and this link may provide you some other options.

The guys over on serverfault will probably be able to help a lot more with this, i know there are some Windows admin tools that allow you to disassemble and/or wrap up MSis but i can't remember what they are called.

slugster
I am not the one who made the msi , this is why I asked how to detect all possible parameters
Welliam
Ok, i have edited my post. I have also voted to move this to serverfault as that is a more relevant place for it (it would belong here if it was about *authoring* an MSI). You may want to manually ask your question over there in case this question has slipped far enough down the list so it doesn't get enough votes to be automatically moved.
slugster
Orca did the trick :)
Welliam