EnterpriseDev
Guest
|
I have a WIX installer with your add-in that works great. Now I would like to use Smart Assembly to obfuscate the add-in code. This works fine and I have set it up so that I get another output file located in "Release Obfuscated/Myaddin.dll" instead.
How do I edit the WIX project to pick this DLL instead of the default "Release/Myaddin.dll"? |
|
Andrei Smolin
Add-in Express team
Posts: 18793
Joined: 2006-05-11
|
This question it lies outside of the area in which we provide support, it belongs with WiX. Pay attention, I don't have real experience with WiX, so you'll need to verify my suggestions.
Expand the References section of the WiX project in Solution Explorer, and click the reference to your add-in project. In the Properties window modify the value of the Project Output Groups property so that "Binaries" is excluded. Now add the obfuscated assembly to your project using standard WiX tools.
If my suggestions don't work, please refer to WiX manuals and forums.
Andrei Smolin
Add-in Express Team Leader |
|
EnterpriseDev
Guest
|
Thank you. I ended up with overwriting the non-obfuscated file with the obfuscated file. Attaching what I have if anyone would need it (included is some assembly signing as well):
Pre-build event command line:
"C:\Program Files\Red Gate\SmartAssembly 6\SmartAssembly.exe" /build "$(SolutionDir)MyAddin\Smart Assembly\MyAddin.saproj"
move /y "$(SolutionDir)MyAddin\bin\Release Obfuscated\MyAddin.dll" "$(SolutionDir)MyAddin\bin\Release\MyAddin.dll"
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" sign /d MyAddin /t http://timestamp.digicert.com /a "$(SolutionDir)MyAddin\Loader\adxloader.dll"
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" sign /d MyAddin /t http://timestamp.digicert.com /a "$(SolutionDir)MyAddin\Loader\adxloader64.dll"
Post-build event command line:
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" sign /d MyAddin /t http://timestamp.digicert.com /a "!(TargetPath)" |
|
Andrei Smolin
Add-in Express team
Posts: 18793
Joined: 2006-05-11
|
Hello EnterpriseDev,
Thank you for sharing your findings with forum readers!
Andrei Smolin
Add-in Express Team Leader |
|