Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch-Install-VSIX fails to install only if one of VS presented #1

Open
dzmitry-lahoda opened this issue May 12, 2015 · 2 comments
Open

Comments

@dzmitry-lahoda
Copy link

I have XML for 11 and 12 VS. But only 12 is installed. And got failure. I think it is just warning cause something will install. And I may maintain one single xml for all VS.

 Visual Studio is not installed or the specified version is not present.
 At C:\ProgramData\chocolatey\helpers\functions\Write-ChocolateyFailure.ps1:24 char:3
 +   throw "$failureMessage"
 +   ~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : OperationStopped: (Visual Studio i...is not present.:String) [], RuntimeException
     + FullyQualifiedErrorId : Visual Studio is not installed or the specified version is not present.
batch-install-vsix install not successful.
Error while running 'C:\ProgramData\chocolatey\lib\batch-install-vsix\tools\chocolateyInstall.ps1'.
 See log for details.
  <extension name="SpecFlow integration for Visual Studio 2010 and 2012" version="11" url="https://visualstudiogallery.msdn.microsoft.com/9915524d-7fb0-43c3-bb3c-a8a14fbd40ee/file/79327/7/TechTalk.SpecFlow.Vs2010Integration.vsix" />
  <extension name="SpecFlow integration for Visual Studio 2013" version="12" url="https://visualstudiogallery.msdn.microsoft.com/90ac3587-7466-4155-b591-2cd4cc4401bc/file/112721/3/TechTalk.SpecFlow.Vs2013Integration.vsix" />
@dzmitry-lahoda
Copy link
Author

Next scenario is overall bad
We hav 11 VS installed.
XML has

11
11
12
11
11

First 2 items will install, next fail. And have to use choco install xyz --force to reinstall you packages.

I suggest validate whole XML before any actions, fail fast.
Also I suggest to go further with pint all links inside xml to avoid mid failure.

@dzmitry-lahoda
Copy link
Author

Yet another issue. I started to separate items into different xml to have clear install. Next text becomes repeated

version="11"

If you think that each script should be in different xml for each VS version, then there should be only one version definition on root element. Not sure how chocolatey will work if to run several times same install on different parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant