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
Temp directory issue after wix v 4.0.5 upgrade #8078
Comments
Can you please update the information above with your CustomAction element and where it is scheduled (the Custom element)? Those are very important pieces of information. |
Hi, I am facing the same issue.
The issue seems to be, that the custom action server was moved from the temp folder to a system folder. Since immediate custom actions are to my knowledge always run as impersonated, they do not have the necessary elevated privileges. |
We have the same issue with Wix 3.14.1. The Custom action related elements are:
The log output looks like this:
If we execute the setup from a elevated command prompt it works, but we would like to avoid that if possible. |
Interesting. I have this test: <Binary Id="ManagedCA" SourceFile="TestCA.CA.dll" />
<CustomAction Id="ImmediateCA" BinaryRef="ManagedCA" DllEntry="ImmediateCA"
Execute="immediate" Return="check" />
<InstallExecuteSequence>
<Custom Action="ImmediateCA" Before="CostFinalize" />
</InstallExecuteSequence> The MSI log file shows the Windows Installer using the user temp folder:
I am on Windows 11 23H2, but this doesn't seem like something the Windows Installer would change. |
We face the same issue with 4.0.5. Definition:
|
We are also seeing same issue. Here is how we defined CustomActions
Issue: installation fails immediately, logs we see: SFXCA: Failed to create temp directory. Error code 5 |
I think you are pretty close. |
I tested a completely new minimalistic solution and at first got the same result, however after some investigation found, that it was just, that the default vs project for CA used the Microsoft.Deployment.WindowsInstaller and not the wix tools nuget package. After changing that I got the bug again.
Do you use immediate or deferred CA? Using impersonate=no on immediate actions doesn't change anything for me. |
I have deferred CA. |
Will the correction also be made for Wix 3.14.1? |
Also interested in the answer to this question |
Workaround is to revert to 3.14.0 - https://github.com/wixtoolset/wix3/releases/tag/wix314rtm |
Not really, as 3.14.0 contains the vulnerability |
@tondrej is correct. Going backward will expose you to the security vulnerability. The fix is in WiX v5's custom action handling. You can upgrade only your custom action projects to v5. |
So there is no fix for Wix v3?
My problem is that I'm using Wix via WixSharp which isn't ready for Wix v5 yet. oleg-shilo/wixsharp#1493 Yes, this is OSS and my problem is MY problem, not yours. Simply putting it here for context. |
@robmen Any timelines for fix in Wix v3? |
@birarroshan No. |
We've been using v4.0.5 with a custom bootstrapper that depends on Wixtoolset.Mba.Core. The problem is there is no version of Wixtoolset.Mba.Core v5.0.0. We can't downgrade to 4.0.4 because of the security upgrade and can't upgrade to 5.0.0. Is there no way this fix can be added to a new v4 release? |
@ian-g-holm-intel I understand that would make your life much easier. However, we've spent more time this year fixing issues in the WiX Toolset for free than on anything else. That simply isn't sustainable. So, our focus now is to work for our paying customers for a while. If you want guarantees and SLAs, purchase a support contract, and you will become one of those customers we work for. |
|
WiX Version
4.0.5
.NET or MSBuild or Visual Studio Version
latest
HeatWave Version
latest
Windows Version
Win 10 64
Repro Repo
No response
Repro Steps
Am getting this error
SFXCA: Failed to create temp directory. Error code 5
CustomAction CheckingAppIsRunning returned actual error code 1603
I also see, that regarding temp directory some breaking changes fixes are made by wix. But how do i handle this code side issue at my end?
GHSA-rf39-3f98-xr7r
Actual Result
SFXCA: Failed to create temp directory. Error code 5
CustomAction CheckingAppIsRunning returned actual error code 1603
Expected Result
Success
Acknowledgements
The text was updated successfully, but these errors were encountered: