开发者

HOW to select file according to intl setting

i have the following requirement: i need to in开发者_如何学运维stall some files just to some special intl version. how can i do this? Thanks.


You can place a condition on the component. Take a look at the following link for potential properties to use. I suspect you'll be interested in the SystemLanguageID property. You might also want to set the Transitive flag con the components in case you think the user might ever chane their default language. Repairing the MSI after such a change would cause some of your files to be removed and others installed to sync up to the new condition evaluations.

Operating System Properties

SystemLanguageID Property

Using Transitive Components


<Component Id ="main_test_file2" Guid="{914ED802-82E1-4296-85F2-4095DE0AAC1D}" KeyPath="yes">
            <Condition>"!(loc.Language)"="1033"</Condition>
            <File Id="file2" Source=".\Test1\Test1.txt"></File>
          </Component>

attach the code :)


If you are looking for installing files on specific environment you can go for DotNetInstaller. In that you can specify the condition to launch the setup for certain environments.

While if you want to deploy certain files for an environment then you can use CustomAction and check the requirements and on the basis of that you can install the files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜