最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

installation - Unable to install application with Net Framework 4.8.1 as prerequisites - Stack Overflow

programmeradmin1浏览0评论

I am trying to run the installer with following setup:

  • Inside the bundle I have the following Chain:
      <PackageGroupRef Id="NetFx481Web" />
      <PackageGroupRef Id="VcRedist2015x64"/>
      <MsiPackage SourceFile="$(var.Toolbox.TargetPath)">
        <MsiProperty Name="INSTALLEXAMINERDESKTOPSHORTCUT" 
                     Value="[HasDesktopShortcut]"/>
        <MsiProperty Name="INSTALLEXAMINERFILEASSOCIATION" 
                     Value="[CreateFileAssocition]"/>
        <MsiProperty Name="INSTALLDIR"
                     Value="[InstallFolder]" />
      </MsiPackage>
    
    
  • NetFx481Web in ExePackage has the following:
        InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx481WebLog].html&quot;"
        RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx481WebLog].html&quot;"
        UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx481WebLog].html&quot;"
        PerMachine="yes"
        DetectCondition="!(wix.NetFx481WebDetectCondition)"
        InstallCondition="!(wix.NetFx481WebInstallCondition)"
        Id="NetFx481Web"
        Vital="yes"
        Permanent="yes"
        Protocol="netfx4"
        DownloadUrl="$(var.NetFx481WebLink)"
        LogPathVariable="NetFx481WebLog"
        Compressed="no"
        Name="!(wix.NetFx481WebPackageDirectory)ndp481-web.exe"
  • With RemotePayload:
         <RemotePayload
           CertificatePublicKey="51E8CCBFA002A22CB64E5CD25F42FE7BFAA920F6"
           CertificateThumbprint="72105B6D5F370B62FD5C82F1512F7AD7DEE5F2C0"
           ProductName="Microsoft .NET Framework 4.8.1"
           Description="Microsoft .NET Framework 4.8.1 Setup"
           Hash="22C974F3865CCE3F0EC385DD9C0B291CA045BC2C"  
           Size="1466664" 
           Version="4.8.9195.10" />
    
    
  • And Product has following Condition:
    <Condition Message="This application requires .NET Framework version 4.8.1 to run. Please see the Release Notes for instructions on how to install the .NET Framework.">
      <![CDATA[Installed OR (NETFRAMEWORK45 >= "#533320")]]>
    </Condition>

Installation fails because .Net Framework installation demands reboot. And I am not able to force the reboot and continue the installation. Installation gets the following result:

[1994:0D94][2025-03-04T19:43:01]w343: Prompt for source of package: NetFx481Web, payload: NetFx481Web, path: C:\Users\Mladen\Desktop\redist\ndp481-web.exe

[1994:0D94][2025-03-04T19:43:01]i338: Acquiring package: NetFx481Web, payload: NetFx481Web, download from: /?LinkId=2203304

[0BEC:0C8C][2025-03-04T19:43:02]i305: Verified acquired payload: NetFx481Web at path: C:\ProgramData\Package Cache.unverified\NetFx481Web, moving to: C:\ProgramData\Package Cache\22C974F3865CCE3F0EC385DD9C0B291CA045BC2C\redist\ndp481-web.exe.

[1994:0D94][2025-03-04T19:43:02]w343: Prompt for source of package: vc_redist.x64.exe, payload: vc_redist.x64.exe, path: C:\Users\Mladen\Desktop\vc_redist.x64.exe

[1994:0D94][2025-03-04T19:43:02]i338: Acquiring package: vc_redist.x64.exe, payload: vc_redist.x64.exe, download from: .x64.exe

[0BEC:0C8C][2025-03-04T19:43:04]i305: Verified acquired payload: vc_redist.x64.exe at path: C:\ProgramData\Package Cache.unverified\vc_redist.x64.exe, moving to: C:\ProgramData\Package Cache\84C61FADF8CD38016FB7632969B3ACE9E54B763A\vc_redist.x64.exe.

[0BEC:0C8C][2025-03-04T19:43:05]i305: Verified acquired payload: Kontur_Examiner__x64_.msi at path: C:\ProgramData\Package Cache.unverified\Kontur_Examiner__x64_.msi, moving to: C:\ProgramData\Package Cache{D64E3310-048F-43C2-BF1A-555B7D4DB581}v3.9.0.33235\Kontur Examiner (x64).msi.

[0BEC:08D0][2025-03-04T19:43:05]i301: Applying execute package: NetFx481Web, action: Install, path: C:\ProgramData\Package Cache\22C974F3865CCE3F0EC385DD9C0B291CA045BC2C\redist\ndp481-web.exe, arguments: '"C:\ProgramData\Package Cache\22C974F3865CCE3F0EC385DD9C0B291CA045BC2C\redist\ndp481-web.exe" /q /norestart /ChainingPackage "Examiner 3.9.0" /log "C:\Users\Mladen\AppData\Local\Temp\Examiner_3.9.0_20250304194250_000_NetFx481Web.log.html"'

[1994:199C][2025-03-04T19:46:46]i319: Applied execute package: NetFx481Web, result: 0x0, restart: Required

[0BEC:08D0][2025-03-04T19:46:46]i301: Applying execute package: vc_redist.x64.exe, action: Install, path: C:\ProgramData\Package Cache\84C61FADF8CD38016FB7632969B3ACE9E54B763A\vc_redist.x64.exe, arguments: '"C:\ProgramData\Package Cache\84C61FADF8CD38016FB7632969B3ACE9E54B763A\vc_redist.x64.exe" /install /quiet /norestart -burn.filehandle.self=1596'

[1994:199C][2025-03-04T19:46:53]i319: Applied execute package: vc_redist.x64.exe, result: 0x0, restart: None

[0BEC:08D0][2025-03-04T19:46:53]i323: Registering package dependency provider: {D64E3310-048F-43C2-BF1A-555B7D4DB581}, version: 3.9.0.33235, package: Kontur_Examiner__x64_.msi

[0BEC:08D0][2025-03-04T19:46:53]i301: Applying execute package: Kontur_Examiner__x64_.msi, action: Install, path: C:\ProgramData\Package Cache{D64E3310-048F-43C2-BF1A-555B7D4DB581}v3.9.0.33235\Kontur Examiner (x64).msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" INSTALLEXAMINERDESKTOPSHORTCUT="1" INSTALLEXAMINERFILEASSOCIATION="1" INSTALLDIR="C:\Program Files\Kontur Examiner 3"'

[0BEC:08D0][2025-03-04T19:46:53]e000: Error 0x80070643: Failed to install MSI package.

[0BEC:08D0][2025-03-04T19:46:53]e000: Error 0x80070643: Failed to execute MSI package.

[1994:199C][2025-03-04T19:46:53]e000: Error 0x80070643: Failed to configure per-machine MSI package.

[1994:199C][2025-03-04T19:46:53]i319: Applied execute package: Kontur_Examiner__x64_.msi, result: 0x80070643, restart: None

[1994:199C][2025-03-04T19:46:53]e000: Error 0x80070643: Failed to execute MSI package.

If I reboot and start once more the installer, it will finish successfully. I also tried to remove the condition from a product but application won't run before the reboot.

Is there a solution for this scenario?

发布评论

评论列表(0)

  1. 暂无评论