I am trying to create a chocolatey package to perform an unattended install of Visual Studio 2015 Enterprise. This will be something that we use internally so we have a network share that contains the vs_enterprise.exe executable. The network share also contains a packages folder that has the Visual Studio packages that you can choose to install when installing Visual Studio. Ex: Windows Dev Tools, Xamarin SDKs, FSharp SDK, etc...
Using the following command to install using chocolatey, I get an error when it attempts to download packages from Microsoft: choco install -fdv <path to nuspec>
This is the error from the logs:
[1E34:1D5C][2016-06-03T17:54:54]w343: Prompt for source of package: Preparation_Uninstall_vs_enterprise, payload: Preparation_Uninstall_vs_enterprise, path: C:\Users\myuser\AppData\Local\Temp\chocolatey\VisualStudio2015Enterprise\14.0.25123.00\packages\vs_enterprise\Preparation.exe
[1E34:1C6C][2016-06-03T17:54:54]i000: MUX: Vital packages to be installed: 24
[1E34:1C6C][2016-06-03T17:54:54]i000: MUX: Total packages to be installed: 141
[1E34:1D5C][2016-06-03T17:54:54]i000: MUX: Next Source: Web, Attempted: 1, Limit:3
[1E34:1D5C][2016-06-03T17:54:54]i000: MUX: Source retrieved: Web
[1E34:1C6C][2016-06-03T17:54:54]i000: MUX: Updating progress percentages: Burn: 0.635617296502411, Secondary installer: 0.364382703497589
[1E34:1D5C][2016-06-03T17:54:54]i000: MUX: Package:Preparation_Uninstall_vs_enterprise, PayloadId:Preparation_Uninstall_vs_enterprise Url: bits://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25123.00.00&sar=S80_RCPrep&o1=3B4A490AB282CB3A99A329F3C8715B20B7A0BFB1, Attempting count: 1
[1E34:1D5C][2016-06-03T17:54:54]i000: MUX: Existing last unconfirmed source: Web
[1E34:1D5C][2016-06-03T17:54:54]i338: Acquiring package: Preparation_Uninstall_vs_enterprise, payload: Preparation_Uninstall_vs_enterprise, download from: bits://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25123.00.00&sar=S80_RCPrep&o1=3B4A490AB282CB3A99A329F3C8715B20B7A0BFB1
[0F1C:1850][2016-06-03T17:54:54]e000: Error 0x800b0003: Failed authenticode verification of payload: C:\ProgramData\Package Cache\.unverified\Preparation_Uninstall_vs_enterprise
[0F1C:1850][2016-06-03T17:54:54]e000: Error 0x800b0003: Failed to verify signature of payload: Preparation_Uninstall_vs_enterprise
[0F1C:1850][2016-06-03T17:54:54]e310: Failed to verify payload: Preparation_Uninstall_vs_enterprise at path: C:\ProgramData\Package Cache\.unverified\Preparation_Uninstall_vs_enterprise, error: 0x800b0003, delete: Yes
[0F1C:1850][2016-06-03T17:54:54]e000: Error 0x800b0003: Failed to cache payload: Preparation_Uninstall_vs_enterprise
[1E34:1D5C][2016-06-03T17:54:54]i000: MUX: Set Result: Return Code=-2146762749 (0x800B0003), Error Message=, Result Detail=, Vital=False, Package Action=Verify, Package Id=Preparation_Uninstall_vs_enterprise
[1E34:1D5C][2016-06-03T17:54:54]e314: Failed to cache payload: Preparation_Uninstall_vs_enterprise from working path: C:\Users\myuser\AppData\Local\Temp\{675a5109-38d6-406c-9e75-d0e922f87a58}\Preparation_Uninstall_vs_enterprise, error: 0x800b0003.
[1E34:1D5C][2016-06-03T17:54:54]e349: Application requested retry of payload: Preparation_Uninstall_vs_enterprise, encountered error: 0x800b0003. Retrying...
However, if I install manually by double clicking on the vs_enterprise.exe file on the network share, the logs show that the packages are being installed from the network share, and Visual Studio installs correctly.
[0AE8:081C][2016-06-03T17:21:59]i338: Acquiring package: Preparation_Uninstall_vs_enterprise, payload: Preparation_Uninstall_vs_enterprise, copy from: \\network\share\Visual Studio 2015 Enterprise with Update 2\packages\vs_enterprise\Preparation.exe
Is there a way I can force the unattended install to look for packages on the network share instead of trying to download them?
Chocolatey Install Function With No Download - Install-ChocolateyInstallPackage
Yes, that is supported, but you need a different helper. You didn't post your script, so I get to assume you are using Install-ChocolateyPackage (you ran choco new visualstudio2015 to create the package, right?).
Check out the documentation for the Chocolatey PowerShell functions for a complete reference.
Install-ChocolateyPackage mentions the following:
Installs software into "Programs and Features" based on a remote file
download. Use Install-ChocolateyInstallPackage when local or embedded
file.
There is a function called Install-ChocolateyInstallPackage that just uses the file where ever it is, whether embedded in the package or on a local file share.
Don't call choco install nuspec
Calling choco install with a path to a nuspec is probably what is actually causing the errors you are seeing. That is used mostly for testing - choco has to compile the package to be able to run the install and it may be attempting to bring things local to do that. So run choco pack against that nuspec to compile the package first.
It is recommended you call choco install visualstudio2015 --source \\the_share\folder_with_compiled_nupkgs.
There should be a compiled visualstudio2015.version.nupkg in that folder, which is the compiled nuspec.
If you want more in depth information, see https://chocolatey.org/docs/commands-install#examples
HTH
Related
I have a problem with installation of Remote Tools for Visual Studio 2015 update 3 on Windows Server 2008 R2 that does not have connection to the Internet.
Installator showed following error: "0x800b010a - A certificate chain could not be built to a trusted root authority."
Log contains following errors:
Error 0x800b010a: Failed authenticode verification of payload: C:\ProgramData\Package Cache\.unverified\rdbg_std_amd64
Error 0x800b010a: Failed to verify signature of payload: rdbg_std_amd64
Failed to verify payload: rdbg_std_amd64 at path: C:\ProgramData\Package Cache\.unverified\rdbg_std_amd64, error: 0x800b010a, delete: Yes
Error 0x800b010a: Failed to cache payload: rdbg_std_amd64
Failed to cache payload: rdbg_std_amd64 from working path: C:\Users\MKEDRZ~1\AppData\Local\Temp\2\{ec7a2821-b103-4c27-ade2-549182ab4d32}\rdbg_std_amd64, error: 0x800b010a.
I've tried to install Remote Tools for Visual Studio 2015 update 1 and I succeed but it gives me nothing because we use VS 2015 update 3 and to do remote debugging, I have to have Remote Tools for Visual Studio 2015 update 3
The issue is due to some root CA certificates missing from the offline box. Same things happen when trying to install recent Visual Studio versions. I solved it by manually installing the certificates as described in https://stackoverflow.com/a/34109313
Copy the whole of
C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\Remote Debugger\x86
to the remote machine. Use the x64 subdirectory to debug 64bit executables. And obviously replace the 'C:\Program Files' part with wherever VS2015 is installed.
I wanted to install vS 2015 but got an error so I then tried to uninstall visual studio 2013 first prior to installing VS 2015.
And now I see I cannot even reinstall (or uninstall) VS 2013.
When I try to uninstall VS 2013 I get this error
"an error occurred while trying to uninstall microsoft visual studio ultimate 2013. It may have already been uninstalled. Would you like to remove microsoft visual studio ultimate 2013 ultimate from the programs and features list".
I said no 'cos I want to uninstall it properly And then that dialog box cancels but it isn't uninstalled
I can go into visual studio. So it is installed.
I then tried to reinstall since that may fix the uninstaller.
Then I get this error
"setup failed. Install cannot continue because some required components failed. Please correct the following problems and restart the setup..."
The end of the log file states
[4DC0:4408][2016-06-06T17:57:42]i000: MUX: Free Disk Space before install: SystemDrive C:\ 49307762688 bytes AppDrive C:\ 49307762688 bytes
[5014:372C][2016-06-06T17:57:45]i360: Creating a system restore point.
[5014:372C][2016-06-06T17:57:55]i361: Created a system restore point.
[5014:372C][2016-06-06T17:57:55]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{dca572ee-b6f6-4560-9879-fec58cc0022c}, options: 0x7, disable resume: No
[5014:372C][2016-06-06T17:57:55]e000: Error 0x80070003: Failed to create cache directory: C:\ProgramData\Package Cache\{dca572ee-b6f6-4560-9879-fec58cc0022c}
[5014:372C][2016-06-06T17:57:55]e000: Error 0x80070003: Failed to create completed cache path for bundle.
[5014:372C][2016-06-06T17:57:55]e000: Error 0x80070003: Failed to cache bundle from path: C:\Users\harvey\AppData\Local\Temp\{dca572ee-b6f6-4560-9879-fec58cc0022c}\.be\vs_ultimate.exe
[5014:372C][2016-06-06T17:57:55]e000: Error 0x80070003: Failed to begin registration session.
[4DC0:4408][2016-06-06T17:57:55]e000: Error 0x80070003: Failed to begin registration session in per-machine process.
[4DC0:4408][2016-06-06T17:57:55]e000: Error 0x80070003: Failed to register bundle.
[4DC0:4408][2016-06-06T17:57:55]i000: MUX: Apply Complete: Disk Space Used in bytes for Installation: MaxAppDrive: 0 MaxSysDrive: 349683712 AppDrive: 0 SysDrive: 74588160
[4DC0:4408][2016-06-06T17:57:55]i000: MUX: Free Disk Space after install: SystemDrive C:\ 49233174528 bytes AppDrive C:\ 49233174528 bytes
[4DC0:4408][2016-06-06T17:57:55]i000: MUX: Set Result: Return Code=-2147024893 (0x80070003), Error Message=, Result Detail=, Vital=True, Package Action=Install, Package Id=Apply Failure
[4DC0:4408][2016-06-06T17:57:55]i000: MUX: Go to Finished page.
[4DC0:4408][2016-06-06T17:57:55]i399: Apply complete, result: 0x80070003, restart: None, ba requested restart: No
After Microsoft had released Visual Studio Update 2 I downloaded the full ISO image and then installed update successfully, but when I launched it freeze on splash screen (now I knew that issue caused by some extension, but it too late) so I tried to do clean uninstall by following steps from this thread
--> Error Installing Visual Studio 2015 Enterprise Update 1 with Team Explorer
run vs_community.exe /uninstall /force
delete all Visual Studio 2015 related folders
delete all Visual Studio 2015 registry
After that I installed Visual Studio 2015 Community again it failed with new errors
Azure AD Authentication Connected Services -> Packages Failed
Microsoft Azure Mobile Services Connected Service -> Package Failed
Although I tried to resolve this problem by follow this thread
--> Multiple Errors Installing Visual Studio 2015 Community Edition
Unfortunately, no method work for me. I tried to reinstall many times and also tried with Visual Studio Professional with Update 2 ISO and faced the same issues.
My OS is Windows 10 Professional and this is some part of visual studio install log
[198C:29FC][2016-04-08T09:11:19]i323: Registering package dependency provider: {3FEAC561-1CF6-41D6-B0F3-BECDD9C88A1B}, version: 14.0.23107, package: AuthenticationConnectedServices_VS
[2990:09CC][2016-04-08T09:11:19]i000: MUX: ExecutePackageBegin PackageId: AuthenticationConnectedServices_VS
[198C:29FC][2016-04-08T09:11:19]i301: Applying execute package: AuthenticationConnectedServices_VS, action: Install, path: C:\ProgramData\Package Cache{3FEAC561-1CF6-41D6-B0F3-BECDD9C88A1B}v14.0.23107\packages\AuthenticationConnectedServices\AuthenticationConnectedServices_VisualStudio14.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" NOVSUI="1" VS7.3643236F_FC70_11D3_A536_0090278A1BB8="C:\Program Files (x86)\Microsoft Visual Studio 14.0\"'
[2990:09CC][2016-04-08T09:11:23]i000: MUX: ExecuteError: Package (AuthenticationConnectedServices_VS) failed: Error Message Id: 1722 ErrorMessage: There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
[198C:29FC][2016-04-08T09:11:23]e000: Error 0x80070643: Failed to install MSI package.
[198C:29FC][2016-04-08T09:11:23]e000: Error 0x80070643: Failed to execute MSI package.
[2990:09CC][2016-04-08T09:11:23]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[2990:09CC][2016-04-08T09:11:23]i000: MUX: Installation size in bytes for package: AuthenticationConnectedServices_VS MaxAppDrive: 0 MaxSysDrive: 2605056 AppDrive: 0 SysDrive: 0
[2990:09CC][2016-04-08T09:11:23]i000: MUX: Return Code:0x80070643 Msi Messages:There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Result Detail:0 Restart:None
[2990:09CC][2016-04-08T09:11:23]i000: MUX: Set Result: Return Code=-2147023293 (0x80070643), Error Message=There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. , Result Detail=, Vital=False, Package Action=Install, Package Id=AuthenticationConnectedServices_VS
[2990:09CC][2016-04-08T09:11:23]i000: Setting string variable 'BundleResult' to value '0'
[2990:09CC][2016-04-08T09:11:23]w350: Applied non-vital package: AuthenticationConnectedServices_VS, encountered error: 0x80070643. Continuing...
[198C:29FC][2016-04-08T09:11:23]i325: Registering dependency: {fff81b2c-ab2d-44ff-a04a-a516a29e3e81} on package provider: {3FEAC561-1CF6-41D6-B0F3-BECDD9C88A1B}, package: AuthenticationConnectedServices_VS
[198C:29FC][2016-04-08T09:11:23]i323: Registering package dependency provider: {A4495E4F-5218-48FB-8AD2-F3076011B9E1}, version: 14.0.23107, package: MobileServicesConnectedServices_VS
[2990:09CC][2016-04-08T09:11:23]i000: MUX: ExecutePackageBegin PackageId: MobileServicesConnectedServices_VS
[198C:29FC][2016-04-08T09:11:23]i301: Applying execute package: MobileServicesConnectedServices_VS, action: Install, path: C:\ProgramData\Package Cache{A4495E4F-5218-48FB-8AD2-F3076011B9E1}v14.0.23107\packages\MobileServicesConnectedServices\MobileServicesConnectedServices_VisualStudio14.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" NOVSUI="1" VS7.3643236F_FC70_11D3_A536_0090278A1BB8="C:\Program Files (x86)\Microsoft Visual Studio 14.0\"'
[2990:09CC][2016-04-08T09:11:25]i000: MUX: ExecuteError: Package (MobileServicesConnectedServices_VS) failed: Error Message Id: 1722 ErrorMessage: There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
[198C:29FC][2016-04-08T09:11:25]e000: Error 0x80070643: Failed to install MSI package.
[198C:29FC][2016-04-08T09:11:25]e000: Error 0x80070643: Failed to execute MSI package.
[2990:09CC][2016-04-08T09:11:25]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[2990:09CC][2016-04-08T09:11:25]i000: MUX: Installation size in bytes for package: MobileServicesConnectedServices_VS MaxAppDrive: 0 MaxSysDrive: 5218304 AppDrive: 0 SysDrive: 131072
[2990:09CC][2016-04-08T09:11:25]i000: MUX: Return Code:0x80070643 Msi Messages:There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Result Detail:0 Restart:None
[2990:09CC][2016-04-08T09:11:25]i000: Setting string variable 'BundleResult' to value '0'
[2990:09CC][2016-04-08T09:11:25]w350: Applied non-vital package: MobileServicesConnectedServices_VS, encountered error: 0x80070643. Continuing...
[198C:29FC][2016-04-08T09:11:25]i325: Registering dependency: {fff81b2c-ab2d-44ff-a04a-a516a29e3e81} on package provider: {A4495E4F-5218-48FB-8AD2-F3076011B9E1}, package: MobileServicesConnectedServices_VS
I cannot speak to Windows 10, and I noticed you have linked to two of the main articles I used, but here is my answer on how I got VS 2015 CE Update 2 working on Windows 7. It includes a few minor items not noted in the other articles with may (or may not =P) have made a difference.
This error code 0x80070643 occurs if .NET Framework is corrupt.
To fix the issue, please try to run the Microsoft .NET Framework Repair Tool.
I am trying to install visual studio 2013 in the brand new machine with windows 8.1 . My setup failes with the following error
[1D84:1D88][2014-11-30T09:51:02]i301: Applying execute package: nugetvs2013, action: Install, path: C:\ProgramData\Package Cache\{AFF89951-EFF1-3543-92CE-BE535855A3A7}v2.8.50926.663\packages\WPT\NuGetVS2013.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"'
[1DA8:1DAC][2014-11-30T09:51:06]i000: MUX: ExecuteError: Package (nugetvs2013) failed: Error Message Id: 1722 ErrorMessage: There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
[1D84:1D88][2014-11-30T09:51:06]e000: Error 0x80070643: Failed to install MSI package.
[1D84:1D88][2014-11-30T09:51:06]e000: Error 0x80070643: Failed to execute MSI package.
[1DA8:1DAC][2014-11-30T09:51:06]e000: Error 0x80070643: Failed to configure per-machine MSI package.
Just to not I am the admin of the machine . even though vs setup shows it a warning when trying to open I am getting the following exception
I could resolve the same problem for me by,
deinstalling nugetvs from Visual Studio -> Tools -> Extensions
and Updates
installing another version of nugetvs from
https://nuget.codeplex.com/
I tried to install Visual Studio 11 Developer Preview on D:\Programs\VS11, and the installation failed due to low disk space on C: drive (which I solved after the error). When I try to uninstall VS11 I get this error:
I had to delete the some folders on disk, some registry entries related to VS11 (wild guesses, of course), and use msizap to remove the MSI's. After all these steps I managed to start the installation, but I get some script errors, so in order to uninstall and retry the setup I have to repeat the cleanup process.
Is there some clean up tool like it was for VS2008, or some blog that highlights everything that must be removed for a successful reinstallation?
UPDATE
On my way to a Win 7 reinstallation, I managed to get another error:
Applying package: vcRuntimeMinimum_x64, action: Install, path: C:\ProgramData\Package Cache\{A2057AF3-1C3B-3DC5-8C6B-56013B5299B4}v11.0.40825\packages\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi, arguments: ' IGNOREDEPENDENCIES="{a3c0442e-f8f7-4089-ac77-1e0c50901f63}" NOVSUI="1"'
MUX: ExecuteError: Package (vcRuntimeMinimum_x64) failed: Error: 1402 ErrorMessage: Error 1402.Could not open key: UNKNOWN\Components\E66957AD6A10C4743836CB3CB4576BE1\3FA7502AB3C15CD3C8B66510B325994B. Verify that you have sufficient access to that key, or contact your support personnel.
This one was solved with the steps from here: How to fix 'Error 1402. Could not open key: UNKNOWN...'
Are you sure the installer is not corrupt(I assume you are installing it from the iso)? Did you verify the SHA1 and CRC? If you were dealing with space issues, this could be a reason.