yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.64k forks source link

Problem in combination with MSI builder #143

Closed Palollo closed 9 years ago

Palollo commented 9 years ago

If the packer is used, the final exe file (myApp.exe) produces the following error message when it is processed by the Visual Studio MSI Builder:

Unable to find file 'kui' of multi-file assembly 'myApp.exe'.

yck1509 commented 9 years ago

The produced multi-file assembly is a security measure. It seems the MSI Builder does not support it. Is it possible to skip that error while processing?

Palollo commented 9 years ago

I've been looking for it, but it is not possible to skip the error. May be using "Wix Toolset" instead of VS Setup project. By now I have to dispense with packing.

yck1509 commented 9 years ago

I just test it and it seems you could create a empty file named 'koi' next to the obfuscated output to prevent the error.

AndresRohr commented 9 years ago

Yes, thumbs up, works perfectly. But the file MUST be of size 0. And it will appear also on the target machine after an installation. Funny.

Use this Prebuild-Event for the Setup project:

CALL "Confuser.CLI.exe" "$(ProjectDir).crproj"

REM https://github.com/yck1509/ConfuserEx/issues/143 TYPE NUL > "$(ProjectDir)..\Confused\bin\Release\koi"