[wix-users] What do Cabinet error codes mean?

Vladimir A Terentyev Vladimir.Terentyev at b1.ru
Tue Aug 2 00:51:22 PDT 2022


Thank you, for your answers

From: Hoover, Jacob <Jacob.Hoover at greenheck.com>
Sent: Monday, August 1, 2022 10:24 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Vladimir A Terentyev <Vladimir.Terentyev at b1.ru>
Subject: RE: [wix-users] What do Cabinet error codes mean?

https://github.com/wixtoolset/wix3/blob/c02e48ec301a60eba88a3b519d47e88eeaa4c978/src/DTF/Tools/SfxCA/SfxUtil.cpp#L203

https://github.com/wixtoolset/wix3/blob/c02e48ec301a60eba88a3b519d47e88eeaa4c978/src/DTF/Tools/SfxCA/Extract.cpp#L259

From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> On Behalf Of Vladimir A Terentyev via wix-users
Sent: Monday, August 1, 2022 6:36 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
Cc: Vladimir A Terentyev <Vladimir.Terentyev at b1.ru<mailto:Vladimir.Terentyev at b1.ru>>
Subject: Re: [wix-users] What do Cabinet error codes mean?

No, it is not impersonated.

<CustomAction Id="CheckForRuntimesWithWarning"
BinaryKey="CustomActions"
DllEntry="CheckForRuntimesWithWarning"
Impersonate="no"
Return="check"/>


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> On Behalf Of Jurgen Schapker via wix-users
Sent: Monday, August 1, 2022 1:10 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
Cc: Jürgen Schäpker <juergen at schaepker.de<mailto:juergen at schaepker.de>>
Subject: Re: [wix-users] What do Cabinet error codes mean?

Well, the CA call in question is running impersonated. You could add/change the attribute Impersonate="no" when calling your custom action.

Cabinet error codes apparently are ERF FDI values as listed at https://docs.microsoft.com/en-us/windows/win32/api/fdi_fci_types/ns-fdi_fci_types-erf

On 01/08/2022 11:46:46, "Vladimir A Terentyev"
<Vladimir.Terentyev at b1.ru<mailto:Vladimir.Terentyev at b1.ru>> wrote:

I don’t think that issue is in .wxs, because it successfully installs on my computer and on computers of my collegues. Also Installer has to elevate for privileges when installing.
I set <Property Id="MSIUSEREALADMINDETECTION" Value="1"> My custom actions are deffered my main package has InstallPrivileges="elevated"
So that, I think user has to have admin rights to run installation, or at least it would be written in a log (that user has no rights)

I define dll like this:
<Binary Id="CustomActions" SourceFile="..\DPA.Installer.Actions\bin\$(var.Platform)\Release\Actions.CA.dll"/>
Name Actions.CA.dll is unique.

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> On Behalf Of Jurgen Schapker via wix-users
Sent: Monday, August 1, 2022 12:33 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
Cc: Jürgen Schäpker <juergen at schaepker.de<mailto:juergen at schaepker.de>>
Subject: Re: [wix-users] What do Cabinet error codes mean?

Possibly. Or the user does not have enough rights or your .wxs has an issue. How do you define the binary for your ca.dll? (I once had an issue where the dll name conflicted with another file.)

On 01/08/2022 11:27:19, "Vladimir A Terentyev via wix-users" <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>> wrote:

Well, actually I signed msi, but I did not sign dll with custom actions. Could this happen if dll was not signed?

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> On Behalf Of Vladimir A Terentyev via wix-users
Sent: Monday, August 1, 2022 12:19 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
Cc: Vladimir A Terentyev <Vladimir.Terentyev at b1.ru<mailto:Vladimir.Terentyev at b1.ru>>
Subject: Re: [wix-users] What do Cabinet error codes mean?

It was signed.
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> On Behalf Of Jurgen Schapker via wix-users
Sent: Monday, August 1, 2022 12:16 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>; wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
Cc: Jürgen Schäpker <juergen at schaepker.de<mailto:juergen at schaepker.de>>
Subject: Re: [wix-users] What do Cabinet error codes mean?


Is your custom action DLL code signed? In any case, some antivirus engines prevent executable code extraction which might be mitigated by code signing.

On 01/08/2022 11:11:35, "Vladimir A Terentyev via wix-users" <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>> wrote:

I gave my msi installer to a person and he had a problem during installation

The log says:

Начало действия 10:37:29: CheckForRuntimesWithWarning.
MSI (s) (18:80) [10:37:29:363]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI16B9.tmp, Entrypoint: CheckForRuntimesWithWarning MSI (s) (18:34) [10:37:29:364]: Generating random cookie.
MSI (s) (18:34) [10:37:29:391]: Created Custom Action Server with PID 5728 (0x1660).
MSI (s) (18:4C) [10:37:29:410]: Running as a service.
MSI (s) (18:4C) [10:37:29:413]: Hello, I'm your 64bit Impersonated custom action server.
SFXCA: Extracting custom action to temporary directory: C:\WINDOWS\Installer\MSI16B9.tmp-\
SFXCA: Failed to extract to temporary directory. Cabinet error code 11.
CustomAction CheckForRuntimesWithWarning returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) Действие закончено 10:37:29: CheckForRuntimesWithWarning. Код возврата 3.


As I understood, msi didn`t manage to extract CA to Folder, so that installation failed.
I need to find out, why that could happen.
What does "Cabinet error code 11" mean? Is there any list of cabinet error codes with description?
Is there any way to find out, why this could happen to msi?

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.


More information about the wix-users mailing list