none
Clickonce fails WinVerifyTrust on vcredist_x86.exe after we started using an EV Code Signing Certificate on the manifests. RRS feed

  • Question

  • We can run the Clickonce installation of our application just fine if we don't "Sign the ClickOnce manifests" or if we use a Test Certificate.  However, once we started signing with our Symantec EV Code Signing Certificate, we run into problems when ClickOnce tries to run vredist_x86.exe which we have been using already('Visual C++ "14" Runtime Librearies (x86)' in Prerequisites).  Problem #2 is that it almost always thinks it needs to repair the redistributables even when they are left over from a previous successful install/uninstall cycle of the application.  It tries the repair even on machines with VS 2015 which already have the redistributables installed.

    The install log follows

    The following properties have been set:
    Property: [AdminUser] = true {boolean}
    Property: [InstallMode] = HomeSite {string}
    Property: [NTProductType] = 1 {int}
    Property: [ProcessorArchitecture] = AMD64 {string}
    Property: [VersionNT] = 6.1.1 {version}
    Running checks for package 'Microsoft .NET Framework 4.5.2 (x86 and x64)', phase BuildList
    Reading value 'Release' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
    Read integer value 394271
    Setting value '394271 {int}' for property 'DotNet45Full_Release'
    Reading value 'v4' of registry key 'HKLM\SOFTWARE\Microsoft\NET Framework Setup\OS Integration'
    Unable to read registry value
    Not setting value for property 'DotNet45Full_OSIntegrated'
    The following properties have been set for package 'Microsoft .NET Framework 4.5.2 (x86 and x64)':
    Property: [DotNet45Full_Release] = 394271 {int}
    Running checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe'
    Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
    Result of checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe' is 'Bypass'
    Running checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe'
    Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
    Result of checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe' is 'Bypass'
    Running checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe'
    Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
    Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet45Full_Release' and value '379893': true
    Result of checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe' is 'Bypass'
    Running checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe'
    Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
    Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet45Full_Release' and value '379893': true
    Result of checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe' is 'Bypass'
    'Microsoft .NET Framework 4.5.2 (x86 and x64)' RunCheck result: No Install Needed
    Running checks for package 'Visual C++ "14" Runtime Libraries (x86)', phase BuildList
    Running MsiProductCheck with ProductCode '{BBF2AC74-720C-3CB3-8291-5E34039232FA}'
    MsiQueryProductState returned '-1'
    Setting value '-1 {int}' for property 'VCRedistInstalled'
    The following properties have been set for package 'Visual C++ "14" Runtime Libraries (x86)':
    Property: [VCRedistInstalled] = -1 {int}
    Running checks for command 'vcredist_x86\vcredist_x86.exe'
    Result of running operator 'ValueGreaterThanEqualTo' on property 'VCRedistInstalled' and value '3': false
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Skipping FailIf because Property 'Version9X' was not defined
    Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.00': false
    Result of checks for command 'vcredist_x86\vcredist_x86.exe' is 'Install'
    'Visual C++ "14" Runtime Libraries (x86)' RunCheck result: Install Needed
    Installation of components 'Visual C++ "14" Runtime Libraries (x86)' was accepted.
    Copying files to temporary directory "C:\Users\tkrochta\AppData\Local\Temp\VSD2DBF.tmp\"
    Downloading files to "C:\Users\tkrochta\AppData\Local\Temp\VSD2DBF.tmp\"
    (1/27/2017 3:19:38 PM) Downloading 'vcredist_x86\vcredist_x86.exe' from 'http://go.microsoft.com/fwlink/?LinkID=800028&clcid=0x409' to 'C:\Users\tkrochta\AppData\Local\Temp\VSD2DBF.tmp\'
    Download completed at 1/27/2017 3:19:39 PM
    Verifying file integrity of C:\Users\tkrochta\AppData\Local\Temp\VSD2DBF.tmp\vcredist_x86\vcredist_x86.exe
    WinVerifyTrust returned -2146762749
    Subject form unknown
    Running checks for package 'Visual C++ "14" Runtime Libraries (x86)', phase BeforePackage
    Running MsiProductCheck with ProductCode '{BBF2AC74-720C-3CB3-8291-5E34039232FA}'
    MsiQueryProductState returned '-1'
    Setting value '-1 {int}' for property 'VCRedistInstalled'
    The following properties have been set for package 'Visual C++ "14" Runtime Libraries (x86)':
    Property: [VCRedistInstalled] = -1 {int}
    Running checks for command 'vcredist_x86\vcredist_x86.exe'
    Result of running operator 'ValueGreaterThanEqualTo' on property 'VCRedistInstalled' and value '3': false
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Skipping FailIf because Property 'Version9X' was not defined
    Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.00': false
    Result of checks for command 'vcredist_x86\vcredist_x86.exe' is 'Install'
    'Visual C++ "14" Runtime Libraries (x86)' RunCheck result: Install Needed
    Verifying file integrity of C:\Users\tkrochta\AppData\Local\Temp\VSD2DBF.tmp\vcredist_x86\vcredist_x86.exe
    WinVerifyTrust returned -2146762749
    Subject form unknown
    Error: Setup has detected that the file 'C:\Users\tkrochta\AppData\Local\Temp\VSD2DBF.tmp\vcredist_x86\vcredist_x86.exe' has changed since it was initially published.

    Friday, January 27, 2017 10:19 PM

All replies

  • Hi,

    Sorry for late reply.

    It seems that the reason usual cause this when you try to install 32 bit application some component of the program are incompatible with the file on your 64 bit windows system. Try to reinstall the  Visual C++ 2015 Redistributables packages to compatible with your application which build with Visual Studio 2015 to solve this problem.

    In addition, Please follow another thread : Boostrapper package creation corrupted when VS 2012 installed

    Best Regards,

    Bob


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Saturday, February 4, 2017 7:54 AM
    Moderator
  • I'm having the same problem, and initially this seem to be caused by microsoft changing the url for the download?

    That is, try to open the url it attempts to fetch the runtime package from: http://go.microsoft.com/fwlink/?LinkID=800028&clcid=0x409

    .. it just goes to the download center. 

    So this seems like a Microsoft fail :#

    Tuesday, March 28, 2017 8:39 AM