简体   繁体   中英

How add a non-english named file to setup project in Visual Studio 2010?

I have build a wpf application and I want to deploy it by making Setup project. My application contains non-english (none Unicode) named files. now on building setup it fails by throwing exception:

Could not find file 'D:\ ... \ایران' 'Not enough storage is available to complete this operation.'

Note that I can't rename files anyway, how do I fix it?

Visual Studio supports only single language packages. So your MSI has a predetermined language (English by default) which sets the package code page .

Any character not supported by the MSI code page will either be converted or trigger some sort of error.

So if you have file names which use characters from a non-English language, you need to change your package code page to support those characters. This will also change your package UI language.

Another approach is to rename your files to be supported by the English code page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM