Installing Add-in for All users (WIX)

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

Installing Add-in for All users (WIX)
Errors during build setup 
xblb




Posts: 25
Joined: 2017-11-27
Hello!

I create Setup Project using WIX.
As I understood the custom actions were added in the process of creating setup.
I add post-build event
"C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\Bin\adxpatch.exe" "$(BuiltOuputPath)" /UAC=On /RunActionsAsInvoker=true

and get two errors
Error The command ""C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\Bin\adxpatch.exe" "" /UAC=On /RunActionsAsInvoker=true" exited with code -2146232832. ASOIWordAddInSetup(3.0.6544) C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets 2832

Error File 'C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\Bin' doesn't exist. HResult=-2146232832 ASOIWordAddInSetup(3.0.6544) EXEC 0

What could be the problem?

Win10
VS 2015
MS Word 2016

Thanks,
Posted 04 Dec, 2017 06:37:22 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello,

AdxPatch.exe solves two problems that belong to Visual Studio Installer only. Below is a citation from the Add-in Express manual; see Step 6 in section Deploying a per-machine Office extension via an MSI installer:


This executable modifies the .MSI just generated in the following ways:
?Â?Ð?? it hides the For Me and For Everyone choice in the installer UI. Hiding these options is required because the installer will fail if the user running the installer doesn't have permissions to install for all users on the PC.
?Â?Ð?? it turns on the dialog asking for elevated privileges. This UAC dialog pops up when the user runs the .MSI installer that the setup project generates. Elevated permissions are required for your Office extension to be registered for all users.


WiX doesn't provide the For Me and For Everyone choice in the installer UI. It also allows you to directly specify whether the bootstrapper is run elevated or not; see the GenerateBootstrapper element of the .wixproj file.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Dec, 2017 07:11:25 Top
xblb




Posts: 25
Joined: 2017-11-27
Thank you,
Leonid
Posted 04 Dec, 2017 10:34:32 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Leonid,

You are welcome.
Posted 05 Dec, 2017 03:26:19 Top