Max
Max

Reputation: 7119

Replacing DLL in Windows Installer Project

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

Thanks.

Upvotes: 2

Views: 438

Answers (2)

HiredMind
HiredMind

Reputation: 1857

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

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

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

if you're already doing this, I'm not sure what's wrong.

Upvotes: 1

Charlie Salts
Charlie Salts

Reputation: 13498

Can you simply add the DLL to your installer project the way you'd add a static file? Treat it as 'content'.

Upvotes: 2

Related Questions