Dileep
Dileep

Reputation: 19

Msbuild copy command failed if path contains double byte characters

I am using WIX project to create an MSI file.

Following statements are added in WIXPROJ file to copy MSI file.

copy /y "!(TargetPath)" "$(MSIPath)\"

$(MSIPath) contains the path which is double byte characters. Ex: F:\Temp\つも追加さ\ error MSB3073: The command "copy /y "E:\BuildMSI\bin\Debug\en-Us\xxx.msi" "F:\Temp\つも追加さ\"" exited with code 1.

Note: Same is working fine Japanese OS. This issue occurs in English OS.

Please help me how to resolve this issue.

Thanks in advance.

Regards, Dileep

Upvotes: 0

Views: 100

Answers (1)

Dileep
Dileep

Reputation: 19

I have used the 'AfterBuild' command instead of 'PostBuildEvent'.

<Target Name="AfterBuild">          
  <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(MSIPath)" /> 
</Target>

Issue was solved using the above statements in Wixproject file.

Upvotes: 1

Related Questions