Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Installing NCrunch on nicknamed multiple installations of Visual Studio 2017
abelb
#1 Posted : Wednesday, September 27, 2017 6:07:38 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/12/2014(UTC)
Posts: 155
Location: Netherlands

Thanks: 19 times
Was thanked: 11 time(s) in 11 post(s)
Visual Studio 2017 supports side-by-side installation of multiple versions. Very handy, but I am wondering how / whether this is supported by NCrunch. Am I entitled by my license to install it on a single computer to each instance (nickname) of Visual Studio, or do I need separate licenses?

And, perhaps more importantly, would you consider supporting this from the installer? Currently, the installer does not recognize the new instances (I tried Repair, but it had no noticeable effect). I know there's a manual installation option, I'll see whether that works.

(as an aside, this is mainly to create a repro on a "clean" installation of VS2017 for earlier issues reported, to be sure I haven't messed with anything)
Remco
#2 Posted : Wednesday, September 27, 2017 10:46:02 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,968

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi,

See here for details - https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/19682887-support-multiple-visual-studio-2017-installations.

To my knowledge, it's not possible to build an MSI with multiple dynamic installation paths. Presently, if you're running multiple VS instances, you need to install the product manually using the manual install instructions on the download page.

There are no licensing issues related to multiple instances. Licenses are per user, not per instance :)
abelb
#3 Posted : Thursday, September 28, 2017 1:15:44 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/12/2014(UTC)
Posts: 155
Location: Netherlands

Thanks: 19 times
Was thanked: 11 time(s) in 11 post(s)
Thanks. I didn't see that feature request (I searched for "nickname"). I don't think it is impossible with MSI, but you'll probably need customized actions. This post (https://developercommunity.visualstudio.com/solutions/21956/view.html) explains that any VS2017 gets a directory in
Code:
C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\

Each directory has a unique hash value, but its subdir contains a state.json file, which includes the nickname of that installation, the base path, the extension path and everything else. Whether this is the easiest method to use, I don't know, but it at least appears to be conclusive, which is a good thing.

Meanwhile I'm totally fine with using the ZIP installer :).
abelb
#4 Posted : Tuesday, October 3, 2017 4:04:21 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/12/2014(UTC)
Posts: 155
Location: Netherlands

Thanks: 19 times
Was thanked: 11 time(s) in 11 post(s)
In case you're considering this at some point in time, I have asked Microsoft to update vswhere to be able to enumerate by nickname. Not sure it helps with MSI installations, but here it is just in case: https://github.com/Microsoft/vswhere/issues/104 (it is done/resolved, but only as specific build/download, will be public soon though).

Also, it looks like VSIX now has more capabilities, perhaps enough to make it easier to switch to it for VS2017+ installs: https://docs.microsoft.c...ty/breaking-changes-2017
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.042 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download