How to point WIX installer to pick my add-in DLL from another release folder?

Add-in Express™ Support Service
That's what is more important than anything else

How to point WIX installer to pick my add-in DLL from another release folder?
 
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"?
Posted 19 Jul, 2016 09:49:45 Top
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
Posted 20 Jul, 2016 05:50:07 Top
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)"
Posted 23 Jul, 2016 03:29:09 Top
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
Posted 25 Jul, 2016 04:29:51 Top