locked
Error: Setup has detected that the file 'C:\Users\XXXX\AppData\Local\Temp\VSDF41E.tmp\VSTOR40\vstor40_x64.exe' has either changed since it was initially published or may be corrupt. RRS feed

  • Question

  • I am creating a setup installer for my Outlook Addin following blogs.msdn.com/b/mcsuksoldev/archive/2010/10/01/building-and-deploying-an-outlook-2010-add-in-part-2-of-2.aspx

    Prerequisites are :1. Net framework 4.0 client profile

    2. VSTO 2010

    3. Win installer 3.1

    I have a code signing certificate from go daddy. I am signing my setup and Msi as well.

    Application installs and loads properly when prerequisites are pre-installed in the system, But when setup tries to download vsto prequisite it shows the error. Following is the error log.

    Please help

    The following properties have been set:
    Property: [AdminUser] = true {boolean}
    Property: [InstallMode] = HomeSite {string}
    Property: [ProcessorArchitecture] = AMD64 {string}
    Property: [VersionNT] = 6.1.1 {version}
    Running checks for package 'Windows Installer 3.1', phase BuildList
    The following properties have been set for package 'Windows Installer 3.1':
    Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
    Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
    'Windows Installer 3.1' RunCheck result: No Install Needed
    Running checks for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64)', phase BuildList
    Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Client'
    Read string value '4.0.30319'
    Setting value '4.0.30319 {string}' for property 'DotNet40Client_TargetVersion'
    The following properties have been set for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64)':
    Property: [DotNet40Client_TargetVersion] = 4.0.30319 {string}
    Running checks for command 'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe'
    Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
    Result of checks for command 'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe' is 'Bypass'
    Running checks for command 'DotNetFX40Client\dotNetFx40_Client_setup.exe'
    Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet40Client_TargetVersion' and value '4.0.30129': true
    Result of checks for command 'DotNetFX40Client\dotNetFx40_Client_setup.exe' is 'Bypass'
    'Microsoft .NET Framework 4 Client Profile (x86 and x64)' RunCheck result: No Install Needed
    Running checks for package 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)', phase BuildList
    Reading value 'Version' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v4R'
    Unable to read registry value
    Not setting value for property 'VSTORuntimeVersionInstalled'
    The following properties have been set for package 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)':
    Running checks for command 'VSTOR40\vstor40_x86.exe'
    Skipping ByPassIf because Property 'VSTORuntimeVersionInstalled' was not defined
    Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'Intel': true
    Result of checks for command 'VSTOR40\vstor40_x86.exe' is 'Bypass'
    Running checks for command 'VSTOR40\vstor40_x64.exe'
    Skipping ByPassIf because Property 'VSTORuntimeVersionInstalled' was not defined
    Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'AMD64': false
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of checks for command 'VSTOR40\vstor40_x64.exe' is 'Install'
    'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)' RunCheck result: Install Needed
    EULA for components 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)' was accepted.
    Copying files to temporary directory "C:\Users\ADMINI~1\AppData\Local\Temp\VSDF41E.tmp\"
    Downloading files to "C:\Users\XXXX\AppData\Local\Temp\VSDF41E.tmp\"
    (22-02-2016 11:18:42) Downloading 'VSTOR40\vstor40_x64.exe' from 'http://go.microsoft.com/fwlink/?LinkId=158918' to 'C:\Users\XXXX\AppData\Local\Temp\VSDF41E.tmp\'
    Download completed at 22-02-2016 11:18:43
    Verifying file integrity of C:\Users\XXXX\AppData\Local\Temp\VSDF41E.tmp\VSTOR40\vstor40_x64.exe
    Verifying file hash
    Error: Setup has detected that the file 'C:\Users\XXXX\AppData\Local\Temp\VSDF41E.tmp\VSTOR40\vstor40_x64.exe' has either changed since it was initially published or may be corrupt.

    Monday, February 22, 2016 6:28 AM

All replies

  • Hi kumarprem,

    This forum is used to discuss about VSTO developing issue, your issue is related with deploying VSTO project with setup project, I will move this thread to the more related forum.

    Reference: https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=winformssetup

    Thanks for your understanding.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Tuesday, February 23, 2016 6:31 AM
  • Hello kumarprem1,

    According to your error log, it seems the prerequisite issue. Could you provide more detail publish steps?

    >>Error: Setup has detected that the file 'C:\Users\XXXX\AppData\Local\Temp\VSDF41E.tmp\VSTOR40\vstor40_x64.exe' has either changed since it was initially published or may be corrupt.

    Have you opened some security software? I guess this file have be occupied by security software.

    Regards,

    Moonlight


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Tuesday, February 23, 2016 9:58 AM
  • The general problem is the bootstrapper prerequisites mechanism for VS setups (MSI and ClickOnce) is driven by a config file (inside setup.exe) that (among other things) contains a description of the prerequisite with sections like these: 

    Begin PackageFiles
      CopyAllPackageFiles="false"
      Begin PackageFile
       Name="vcredist_x86\vcredist_x86.exe"
       HomeSite="http://go.microsoft.com/fwlink/?LinkID=320712&clcid=0x409"
       PublicKey="3082010a0282010100ee5bbe7d1124e38606e066ff48b517bd02e4b40c32f0723e7d2e87d74ea1b1a7432ff7659e31e1323145aed7c1248421d72eb5847efa35d3531cd7b6511e4fce66b9ebb70c02fd295cada887f6ca22b4d5bf0875f58a708f63d7ef8a1ee98f4324645ad3877d906d3bac76cd57367de8bc1056ac98f0895d2e64c6af26095e1e6315f13dbf168f998802c330b7c10b601f0f72ccd6b7a83512869ba10b0ae6935b8efa549cc1f3195f428d129f1d3f90b72713831932821df3d987d421b23ca2b6074fd724aaee8df5b3d9faf9394fa7e9f2af5952f4dc419b2f117063ddeadeaaf16d2104105333bbb24fc5e153b24165476e37f6bce99b1641916b2e5b30c30203010001"
      End PackageFile
     End PackageFiles

    and there is a check that the key in the config file matches the actual executable. I believe the general idea is to prevent someone being fooled into installing malware that looks like a Microsoft redistributable. Somehow these get out of step when there are different versions of the redistributables, some of which come from Visual Studio and others from the Windows SDK. So you could get this problem if you used one VS version to build your setup but got the redist from somewhere else.

    I can't tell how to fix your particular issue but this may help:

    https://msdn.microsoft.com/en-us/library/ms229223.aspx


    Phil Wilson

    Tuesday, February 23, 2016 6:32 PM