WiX Setup create project fails

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

WiX Setup create project fails
 
Glen Lewis




Posts: 20
Joined: 2021-03-12
I have WiX ToolSet 1.0.0.4 Installed

I have gone to the file it is looking for and it doesn't exists.


Detailed technical information follows:
---
Date and Time: 5/3/2021 12:59:33 PM
Machine Name: HRL-GLEWIS2
IP Address: fe80::848d:e65:9c47:1c42%17
Current User: HARDROCKDD\glen.lewis

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/common7/ide/PublicAssemblies/EnvDTE.DLL
Assembly Full Name: EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Assembly Version: 8.0.0.0

Exception Source: EnvDTE
Exception Type: Microsoft.Build.Exceptions.InvalidProjectFileException
Exception Message: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\WiX Toolset\v4\Wix.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\WiX Toolset\v4\Wix.targets" is correct, and that the file exists on disk. C:\Users\glen.lewis\source\repos\MedPharm\ExcelFinanceAddIn\ExcelFinanceAddInSetup\1.0.0\ExcelFinanceAddInSetup(1.0.0).wixproj
Exception Target Site: AddFromFile

---- Stack Trace ----
EnvDTE.SolutionClass.AddFromFile(FileName As String, Exclusive As Boolean)
EnvDTE.DLL: N 00000 (0x0) JIT
AddinExpress.SetupWizard.SetupWizardForm.CreateSetupProject(primaryOutputPath As String)
EnvDTE.DLL: N 5625 (0x15F9) IL
AddinExpress.SetupWizard.SetupWizardForm.CreateSetupProject(project As Project, targetFramework As UInt32, serviceProvider As IServiceProvider)
EnvDTE.DLL: N 0127 (0x7F) IL
AddinExpress.Wizard.ADXPackage.Exec(guidCmdGroup As Guid&, cmdID As UInt32, nCmdexecopt As UInt32, pvaIn As IntPtr, pvaOut As IntPtr)
EnvDTE.DLL: N 1021 (0x3FD) IL
Posted 03 May, 2021 13:05:06 Top
Andrei Smolin


Add-in Express team


Posts: 18019
Joined: 2006-05-11
Hello Glen,

Make sure you have WiX 3.10 or 3.11 installed; see https://wixtoolset.org/releases/. You may also need to uninstall WiX 4.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 04 May, 2021 03:51:41 Top
Glen Lewis




Posts: 20
Joined: 2021-03-12
I did install the WiX 3.11.xx because the publish option didn't have the option available, so I installed it. I don't have WiX v4.xx installed on the dev machine or as an extension for visual studio.
Posted 04 May, 2021 07:46:25 Top
Andrei Smolin


Add-in Express team


Posts: 18019
Joined: 2006-05-11
Hello Glen,

It looks like your setup project was created with WiX 4. If so, you need to recreate your setup project with WiX 3.X.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 May, 2021 01:43:37 Top
Glen Lewis




Posts: 20
Joined: 2021-03-12
I installed the WiX from this link
https://wixtoolset.org/releases/
it states it is 3.11.2 version

I then clicked this installer
WiX ToolSet Visual Studio 2019 Extension

Is there somewhere else I should install it from? Because I do not have an option to select a version of WiX and I do not have any other WiX extension installed. I have never used it prior to this project.

So I am confused on when you say to use the WiX 3.x when that is what is installed?
Posted 06 May, 2021 08:40:59 Top
Andrei Smolin


Add-in Express team


Posts: 18019
Joined: 2006-05-11
Hello Glen,

Yes, you need to have WiX 3.11.2 listed in Control Panel\All Control Panel Items\Programs and Features. And yes, you need to have WiX Toolset Visual Studio Extension 1.0.0.4 listed on the About dialog of the Visual Studio IDE: see menu Help | About. After that, you can create a new setup project or let Add-in Express create it.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 06 May, 2021 09:35:05 Top