oleg-shilo/wixsharp

Error when running installer produced by WixSharp Managed Setup (WIX4) Visual Studio template

hakwes opened this issue · 1 comments

Hi!
I have created a project from the visual studio WixSharp Managed Setup (WIX4) template. When I run the msi the project produces, it fails after I accept the UAC prompt.
The only change I made was changing the install folder.
If I run the installer from an administrator command prompt it works as expected.

I have wix version 5.0.0+41e11442 installed as a global dotnet tool. I've tested with the version of WixSharp_wix4 included in the template and also with the 2.1.7 version.

I've attached my project including the built installer.
WixSharp Managed Setup.zip

Below is the error log.

Info: === Logging started: 2024-06-20 08:02:50 ===
CommonData: Message type: 0, Argument: 1033, 1252
CommonData: Message type: 1, Argument: MyProduct
ActionStart: Action 08:02:50: INSTALL.
Info: Action start 08:02:50: INSTALL.
CommonData: 1: 0 2: 1033 3: 1252
CommonData: 1: 0 2: 1033 3: 1252
CommonData: 1: MyProduct
Info: === Logging started: 2024-06-20 08:02:57 ===
CommonData: Message type: 0, Argument: 1033, 1252
CommonData: Message type: 1, Argument: MyProduct
ActionStart: Action 08:02:57: INSTALL.
Info: Action start 08:02:57: INSTALL.
InstallStart: 1: MyProduct 2: {6FE30B47-2577-43AD-9095-1861CA25889C}
ActionStart: Action 08:02:57: FindRelatedProducts. Searching for related applications Found application: [1]
Info: Action start 08:02:57: FindRelatedProducts.
Info: Action ended 08:02:57: FindRelatedProducts. Return value 1.
ActionStart: Action 08:02:57: WixSharp_InitRuntime_Action.
Info: Action start 08:02:57: WixSharp_InitRuntime_Action.
Info: SFXCA: Failed to create temp directory. Error code 5
Info: CustomAction WixSharp_InitRuntime_Action returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Info: Action ended 08:02:57: WixSharp_InitRuntime_Action. Return value 3.
Info: Action ended 08:02:57: INSTALL. Return value 3.
InstallEnd: 1: MyProduct 2: {6FE30B47-2577-43AD-9095-1861CA25889C} 3: 3
CommonData: 1: 2 2: 0
CommonData: 1: 2 2: 1
Info: Action ended 08:02:57: INSTALL. Return value 3.

Any help with this is appreciated.

I resolved the issue by cleaning out the nuget cache and reinstalling wix.