Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wix Woolkit 3.14.1 not working "SFXCA: Failed to create temp directory. Error code 5" #1593

Closed
Lumoryel opened this issue Jul 16, 2024 · 9 comments

Comments

@Lumoryel
Copy link

Lumoryel commented Jul 16, 2024

When I build and install the template, it ends with
image

Log File:

Info: === Logging started: 16.07.2024 15:10:07 ===
CommonData: Message type: 0, Argument: 1033
CommonData: Message type: 1, Argument: MyProduct
ActionStart: Action 15:10:07: INSTALL.
Info: Action start 15:10:07: INSTALL.
CommonData: 1: 0 2: 1033 3: 1252
CommonData: 1: 0 2: 1033 3: 1252
CommonData: 1: MyProduct
Info: === Logging started: 16.07.2024 15:10:08 ===
CommonData: Message type: 0, Argument: 1033
CommonData: Message type: 1, Argument: MyProduct
ActionStart: Action 15:10:08: INSTALL.
Info: Action start 15:10:08: INSTALL.
InstallStart: 1: MyProduct 2: {6FE30B47-2577-43AD-9095-1861CA25889C}
ActionStart: Action 15:10:08: WixSharp_InitRuntime_Action.
Info: Action start 15:10:08: 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 15:10:08: WixSharp_InitRuntime_Action. Return value 3.
Info: Action ended 15:10:08: 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 15:10:08: INSTALL. Return value 3.

After that also my other existing wixsharp projects did not work anymore.
I had to delete the nuget cache, somehow it did not help to just downgrade to an older nuget.

Found out its a problem with wix 3.14.1 and not with WixSharp.
Best
Lumo

@Lumoryel Lumoryel changed the title Template "WixSharp Managed Setup - Custom WPF UI" not working Wix Woolkit 3.14.1 not working "SFXCA: Failed to create temp directory. Error code 5" Jul 16, 2024
@Lumoryel Lumoryel closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2024
@oleg-shilo
Copy link
Owner

Thank you for letting me know

@gerrit-amagno
Copy link

@Lumoryel I'm getting the same error message without having changed anything. The build is done by a GitHub Action. It's likely that the toolkit was updated on the nodes. How did you fix your problem?

@nefarius
Copy link

I am facing the same issue, simply have re-built an unmodified setup, only thing that changed is on a fresh build node so something behind the scenes must have happened.

@nefarius
Copy link

I downgraded WixSharp.wix.bin to 3.14.0, same error. Relevant snippet from log:

MSI (s) (D0:A8) [18:39:56:851]: Doing action: WixSharp_InitRuntime_Action
Action 18:39:56: WixSharp_InitRuntime_Action. 
Action start 18:39:56: WixSharp_InitRuntime_Action.
MSI (s) (D0:8C) [18:39:56:858]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIA37D.tmp, Entrypoint: WixSharp_InitRuntime_Action
MSI (s) (D0:60) [18:39:56:858]: Generating random cookie.
MSI (s) (D0:60) [18:39:56:862]: Created Custom Action Server with PID 9160 (0x23C8).
MSI (s) (D0:A4) [18:39:56:882]: Running as a service.
MSI (s) (D0:A4) [18:39:56:885]: Hello, I'm your 64bit Impersonated custom action server.
SFXCA: Failed to create temp directory. Error code 5
CustomAction WixSharp_InitRuntime_Action returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 18:39:57: WixSharp_InitRuntime_Action. Return value 3.
Action ended 18:39:57: INSTALL. Return value 3.

@nefarius
Copy link

Alright, I downgraded to

    <PackageReference Include="WixSharp.wix.bin" Version="3.14.0" />

and manually deleted all WixSharp.wix.bin instanced under %USERPROFILE\.nuget, rebuilt and it works again.

@nefarius
Copy link

nefarius commented Aug 28, 2024

@gerrit-amagno could you be affected by this? If so here is a potential workaround.

@gerrit-amagno
Copy link

@nefarius yes, I've added a similar fix 2 days ago. thanks for your help! amagno-io/AmagnoVirtualPrinter@2c96e5c

@nefarius
Copy link

Found it; they broke it upstream and the "solution" suggested is to just upgrade to v4 or higher. Wow. I have no words. Shame.

@nefarius
Copy link

@nefarius yes, I've added a similar fix 2 days ago. thanks for your help! amagno-io/AmagnoVirtualPrinter@2c96e5c

This may or may not affect you but downgrading adds surface for a vulnerability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants