Skip to content

"Evaluating launch conditions" -> fails #194

Open
@MichaelVoelkel

Description

@MichaelVoelkel

Hi,

so was we use electron-wix-msi 3.2.0.

For creating a MSI, we use msiCreator and we have config.xml that used to have such a precondition:

<Property Id="CPPRUNTIME20151719X64" Secure="yes">
    <RegistrySearch Id="mfc140x64_23026" Root="HKLM" Key="SOFTWARE\Classes\Installer\Dependencies\{e46eca4f-393b-40df-9f49-076faf788d83}" Type="raw" />
    <RegistrySearch Id="mfc140x64_24215" Root="HKLM" Key="SOFTWARE\Classes\Installer\Dependencies\{d992c12e-cab2-426f-bde3-fb8c53950b0d}" Type="raw" />
    <RegistrySearch Id="mfc1416x64" Root="HKCR" Key="Installer\Dependencies\VC,redist.x64,amd64,14.16,bundle" Type="raw" />
    <?foreach CPPRUNTIMEVERSIONPREFIX in 21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;41;42?>
        <RegistrySearch Id="mfc14$(var.CPPRUNTIMEVERSIONPREFIX)x64" Root="HKCR" Key="Installer\Dependencies\VC,redist.x64,amd64,14.$(var.CPPRUNTIMEVERSIONPREFIX),bundle" Type="raw" />
    <?endforeach ?>
</Property>

<Condition Message="Microsoft Visual C++ 2015-2022 (x64) Redistributable missing">
    <![CDATA[CPPRUNTIME20151719X64 OR ((REMOVE = "ALL") AND NOT UPGRADINGPRODUCTCODE)]]>
</Condition>

Well, pretty bad because the huge number string of 40,41,42 is missing 43 and 44. Alright, fixed that. I also checked the registry for that this is in and it is. Nice.

However, this only makes the msi start. Now, within the process when I select the target directory etc, it will launch a second msi (??) and this should do the actual process. But mid-process it will at the step "Evaluating launch conditions" tell me "Microsoft Visual C++ 2015-2022 (x64) Redistributable missing".

Well, no, it's not. And I changed my config.xml. I searched the entire project and also electron-wix-msi project via file-search for anything mentioning this error message, there is only occurence in config.xml. But even if I change the name of my error myself and even if I remove the condition altogether, I will still run into the same problem, what the hell...

Any help? I have no clue why this comes up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions