none
WIX installation failed while installing VSTO 4.0 Runtime. RRS feed

  • Question

  • Hi,

    I've created a WIX (v3.7.0.0) installer for our VSTO application on Win 7 64 bit machine. Which do custom installation successfully. And I’ve also create Bundle.wxs file for installing the prerequisites for VSTO, like .Net Framework 4.0 client profile and VSTO 4.0. runtime.

    When I run our exe file it search for VSTO and start download VSTO from http://go.microsoft.com/fwlink/?LinkId=158917. but gives the below error

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to find expected public key in certificate chain.

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to verify expected payload against actual certificate chain.

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to verify signature of payload: VSTORuntime

    [0BE8:06F0][2013-08-06T10:49:18]e310: Failed to verify payload: VSTORuntime at path: C:\ProgramData\Package Cache\.unverified\VSTORuntime, error: 0x80070490. Deleting file.

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to cache payload: VSTORuntime

    [15CC:0568][2013-08-06T10:49:18]e314: Failed to cache payload: VSTORuntime from working path: C:\Users\UA17C9~1.JAI\AppData\Local\Temp\{f3bea074-7c76-4831-b8ed-22021127ba0d}\VSTORuntime, error: 0x80070490.

    [15CC:0568][2013-08-06T10:49:18]e349: Application requested retry of payload: VSTORuntime, encountered error: 0x80070490. Retrying...

    Installer do above same step for 3 times and then finally show error message and stop the installation.

    Don’t know why this is happening. And we need to install VSTO 4.0 Runtime automatically.

    Any help appreciated.

    Thanks in advance.

    Thursday, August 8, 2013 5:11 AM

Answers

All replies

  • Hi,

    I've created a WIX (v3.7.0.0) installer for our VSTO application on Win 7 64 bit machine. Which do custom installation successfully. And I’ve also create Bundle.wxs file for installing the prerequisites for VSTO, like .Net Framework 4.0 client profile and VSTO 4.0. runtime.

    When I run our exe file it search for VSTO and start download VSTO from http://go.microsoft.com/fwlink/?LinkId=158917. but gives the below error

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to find expected public key in certificate chain.

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to verify expected payload against actual certificate chain.

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to verify signature of payload: VSTORuntime

    [0BE8:06F0][2013-08-06T10:49:18]e310: Failed to verify payload: VSTORuntime at path: C:\ProgramData\Package Cache\.unverified\VSTORuntime, error: 0x80070490. Deleting file.

    [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to cache payload: VSTORuntime

    [15CC:0568][2013-08-06T10:49:18]e314: Failed to cache payload: VSTORuntime from working path: C:\Users\UA17C9~1.JAI\AppData\Local\Temp\{f3bea074-7c76-4831-b8ed-22021127ba0d}\VSTORuntime, error: 0x80070490.

    [15CC:0568][2013-08-06T10:49:18]e349: Application requested retry of payload: VSTORuntime, encountered error: 0x80070490. Retrying...

    Installer do above same step for 3 times and then finally show error message and stop the installation.

    Don’t know why this is happening. And we need to install VSTO 4.0 Runtime automatically.

    Any help appreciated.

    Thanks in advance.


    this previously work for "vstor_redist.exe" whose version was 10.0.40303.0 and is not working with 10.0.40309.0 the latest VSTO from download.microsoft.com.

    Utshek Jain

    Thursday, August 8, 2013 5:34 AM
  • Hi Utshek,

    I will consult my colleagues on this question, and it will take some time. Your patience will be greatly appreciated.

    Regards,

    Jeffrey


    Jeffrey Chen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, August 8, 2013 3:10 PM
    Moderator
  • Hi Utshek,

    Would you encounter the same issue when you install "vstor_redist.exe" manually?

    And could you please provide me some configuration or code of your WIX project?

    For WIX specific issue, I will also recommend you to ask question on WIX community.


    Jeffrey Chen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, August 9, 2013 5:44 AM
    Moderator
  • Hi Jeffery

    Thanks a lot for suggestion,

    When i run "vstor_redist.exe" manually, it runs successfully.

    Code are as below:

    Bundle.wxs

    <Bundle Name="$(var.ProductName)" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"

                          IconSourceFile="$(var.ResourceFiles)\Icon.ico">

                  <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">

                         <bal:WixStandardBootstrapperApplication LogoFile="$(var.ResourceFiles)\BootStrap Logo.bmp" SuppressOptionsUI="yes" LicenseFile="Confidential.rtf" />

                  </BootstrapperApplicationRef>

                  <util:RegistrySearch Id="VSTORuntimeVersionV4" Root="HKLM" Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4\" Value="Version" Variable="VSTORVersionV4"/>

                  <util:RegistrySearch Id="VSTORuntimeVersionV4M" Root="HKLM" Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4M\" Value="VSTORFeature_CLR40" Variable="VSTORFeature"/>

                  <util:RegistrySearch Id="VSTORuntimeVersionV4R" Root="HKLM" Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4R\" Value="Version" Variable="VSTORVersionV4R"/>

                  <util:RegistrySearch Id="DotNetTest" Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client" Value="Install" Variable="DotNetInstall"/>

                  <util:RegistrySearch Id="DotNetVersion" Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client" Value="Version" Variable="DotNetVersion"/>

                 

                  <Chain>

                         <ExePackage Id="dotNetFx40_Client_x86_x64" SourceFile="$(var.PreReqPath)\DotNetFX40Client\dotNetFx40_Client_x86_x64.exe" PerMachine="yes" Cache="no"

                                          Compressed="no"

                                          DownloadUrl="http://download.microsoft.com/download/7/B/6/7B629E05-399A-4A92-B5BC-484C74B5124B/dotNetFx40_Client_setup.exe"

                                          Permanent="yes"

                                          InstallCommand="/q /norestart"

                                          DetectCondition="NOT DotNetInstall"

                                          InstallCondition="NOT DotNetInstall OR NOT (DotNetVersion >=v4.0.30319)" />

                         <ExePackage Id="VSTORuntime" SourceFile="$(var.PreReqPath)\VSTOR40\vstor_redist.exe" Permanent="yes" Vital="yes" Cache="no" Compressed="no"

                                          DownloadUrl="http://go.microsoft.com/fwlink/?LinkId=158917"

                                          PerMachine="yes"

                                          InstallCommand="/q /norestart"

                                          DetectCondition="VSTORFeature"

                                          InstallCondition="NOT VSTORFeature OR NOT (VSTORVersionV4R >=v10.0.40303) OR NOT (VSTORVersionV4 >=v10.0.21022) "/>

                         <MsiPackage SourceFile="$(var.Setup.TargetPath)" Vital="yes" Compressed="yes" Id="WordAddIns" DisplayInternalUI="yes" />

                  </Chain>

           </Bundle>

    Thanks

    Utshek


    Utshek Jain

    Monday, August 12, 2013 8:32 AM
  • Hi Utshek,

    Unfortunately, Wix now is an open source project on the sourceforge.net and codeplex both, not from Microsoft. I would request you to reach out to wix mailing list with your concern on Wix : http://wix.sourceforge.net/mailinglists.html#wix-users

    Have you tried the same with an MSI installer? I would like to share an article which will help you build a Windows installer (MSI) for your VSTO add-in. 

    Deploying a Visual Studio 2010 Tools for Office Solution Using Windows Installer http://msdn.microsoft.com/en-us/library/ff937654.aspx

    Regards

    Sangeeth



    Sangeeth,MSFT


    Monday, August 19, 2013 10:18 PM
  • Hello Sangeeth,

    Thanks for reply.

    Yes in current project (VS 2010 .NET Framework 4.0 and Office 2010) i'm using Windows Installer for installing our custom VSTO excel application and its working fine upto VS2010. Now we are planning to move our project to VS2012 and above using MS Office 2013, but in VS2012/2013 there is no support for Windows Installer, so we are trying to use alternate installer for VSTO applications. We did POC with WIX.

    I've already posted my question in wix-users group.


    Thanks

    Utshek Jain



    • Edited by Utshek Tuesday, August 20, 2013 4:33 AM
    Tuesday, August 20, 2013 4:16 AM
  • Hi Utshek,

    I hope you solved the problem before, anyway, the problem is te InstallCondition.

    While the condition on the framework is ok (not installed or version less than something), the vsto condition should be in AND (InstallCondition="NOT VSTORFeature AND NOT (VSTORVersionV4R >=v10.0.40303) AND NOT (VSTORVersionV4 >=v10.0.21022)"

    if is not (installed via CLR) and the not (installed version via redistributable is ok) and not (installed version via office is ok) then install it

    Thursday, March 27, 2014 9:23 AM
    • Edited by jreichert Thursday, September 21, 2017 9:08 AM
    Thursday, September 21, 2017 9:06 AM