WiX based setup fails

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

WiX based setup fails
 
OliverM


Guest


with the following message

[img]http://www.screencast.com/users/FeinFein/folders/SetupFail/media/9111a8d0-bae5-4542-9547-90fbc54b2005[/img]


I ran the setup using
msiexec /i C:SomePathMySetup.msi /l*v C:SomePathSetup.log


I do not fully understand the log but it seems as if the issue is occurring in the following section.


MSI (c) (64:AC) [12:36:21:900]: PROPERTY CHANGE: Adding SECONDSEQUENCE property. Its value is '1'.
MSI (c) (64:AC) [12:36:21:900]: Grabbed execution mutex.
MSI (c) (64:AC) [12:36:21:900]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (c) (64:AC) [12:36:21:900]: Switching to server: NETFRAMEWORK20="#1" TARGETDIR="C:UsersTomAppDataLocalDefault CompanyTaskPaneTest" CURRENTDIRECTORY="C:WindowsSystem32" CLIENTUILEVEL="0" CLIENTPROCESSID="17252" USERNAME="Tom" SOURCEDIR="C:UsersTomDesktopTaskPaneDemoTaskPaneTestTaskPaneTestTaskPaneTestSetup.0.0inRelease" ACTION="INSTALL" EXECUTEACTION="INSTALL" ROOTDRIVE="D:" INSTALLLEVEL="1" SECONDSEQUENCE="1"  ADDLOCAL=CompleteInstall  
MSI (s) (78:74) [12:36:21:902]: Running installation inside multi-package transaction C:UsersTomDesktopTaskPaneDemoTaskPaneTestTaskPaneTestTaskPaneTestSetup.0.0inReleaseTaskPaneTestSetup.msi
MSI (s) (78:74) [12:36:21:902]: Grabbed execution mutex.
MSI (s) (78:60) [12:36:21:905]: MainEngineThread is returning 1603
MSI (s) (78:74) [12:36:21:905]: User policy value 'DisableRollback' is 0
MSI (s) (78:74) [12:36:21:905]: Machine policy value 'DisableRollback' is 0
MSI (s) (78:74) [12:36:21:905]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (78:74) [12:36:21:905]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2 
MSI (s) (78:74) [12:36:21:907]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2 
MSI (s) (78:74) [12:36:21:908]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (64:AC) [12:36:21:910]: Back from server. Return value: 1603
MSI (c) (64:AC) [12:36:21:910]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (64:AC) [12:36:21:910]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 12:36:21: ExecuteAction. Return value 3.
MSI (c) (64:AC) [12:36:21:910]: Doing action: FatalErrorForm


Any idea how to fix this?
Posted 05 Oct, 2016 05:56:58 Top
OliverM


Guest


I still do not understand what exactly caused the issue but I found a way to fix it.

Whily doing further investigations on the issue and comparing the setup project with older setups I have built, it turned that they where all building without errors but failing to install correctly.

The symptom they were all showing was the following error under MySetup => References => MyReferenced.dll => Fullpath.

Could not load file or assembly 'Microsoft.VisualStudio.VCProjectEngine,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=SomePublicKeyToken' or one
of its dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)


I found a similar issue description http://lists.wixtoolset.org/pipermail/wix-users-wixtoolset.org/2015-September/000225.html

Deleting the primary output from the setup, rebooting and then adding the lib manually did not change anything.

Checking for windows updates, installing a new definition update for windows defender and the subsequent reboot brought everything back to normal.

I wonder whether this is a random coincidence but if it is, why is the issue solved now?
Posted 06 Oct, 2016 03:13:38 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Oliver,

I don't understand what occurs, either.

OliverM writes:
Could not load file or assembly 'Microsoft.VisualStudio.VCProjectEngine, Version=10.0.0.0, Culture=neutral, PublicKeyToken=SomePublicKeyToken' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


If you deploy an Add-in Express based add-in, this error may be found on adxregistrator.log.


Andrei Smolin
Add-in Express Team Leader
Posted 06 Oct, 2016 07:16:30 Top
OliverM


Guest


Hi Andrei,

Unfortunately setup did not even get to that point. No ADXRegistrator log was written, this is why I invoked msiexec.
Posted 06 Oct, 2016 10:17:43 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Thank you.

Alas, I have no explanation.


Andrei Smolin
Add-in Express Team Leader
Posted 06 Oct, 2016 10:38:53 Top