Replacing DLLs in Windows Installer Project

I have a Windows Installer project generated for my VSTO add-in. However, I have to run one of my DLLs through the obfuscator at the end, but if I try to create a setup project with a modified DLL, it just rebuilds my original DLL and overwrites the modified one. Is there a way to create a setup project and use a modified DLL?

Thank.

+2


source to share


2 answers


Can you just add the DLL to your installer project the way you add a static file? Think of it as "content".



+1


source


You should be able to run obfuscator on your post-build event:

if $(ConfigurationName) == Release <obfuscatorprogram> $(OutDir)$(TargetFileName)

      



Post-build events are found in your project properties under Build Events.

If you are already doing this, I'm not sure what happened.

+1


source







All Articles