WiX based setup fails

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

WiX based setup fails
 
OliverM




Posts: 194
Joined: 2015-08-13
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?
Kind regards
Oliver
Posted 05 Oct, 2016 05:56:58 Top
OliverM




Posts: 194
Joined: 2015-08-13
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 here

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?
Kind regards
Oliver
Posted 06 Oct, 2016 03:13:38 Top
Andrei Smolin


Add-in Express team


Posts: 17375
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.

Regards from Belarus (GMT+3),

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




Posts: 194
Joined: 2015-08-13
Hi Andrei,

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


Add-in Express team


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

Alas, I have no explanation.

Regards from Belarus (GMT+3),

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