dotnet/cli Installation Bundle
The Getting Started page has these two "Oh, by the way..." requirements for installing:
- You will need to install Visual C++ Redistributable for Visual Studio 2015 as well.
- If you are using Windows 7 or Windows Server 2008 you will also need to install Visual C++ Redistributable for Visual Studio 2012 Update 4 too.
Also, the dotnet/cli MSI package embeds the cabinet to have a single file for internet distribution. The embedded cabinet are a complete waste of space on the users machine.
To fix both issues, I'd like to develop a Bundle (based on the WiX Burn technology) for the dotnet/cli to wrap the MSI package and download+install the pre-reqs for the appropriate OS.
If that sounds good, please feel free to assign this issue to me.
@schellap @gkhanna79 do we still require VC++ to be installed? Or has @schellap removed these dependencies through static linking.
Even if they're not needed, I'd be quite happy to have @robmen take a pass at our MSI. Thanks for the offer!
@robmen have you found any reliable technology for testing MSIs in CI that doesn't require flattening the VM when we're done? I was hoping to use App-V to do this, but it seems that creating an AppContainer both requires Admin access and mutates machine state during the installation...
@robmen, I cannot assign the issue to you because of github organization requirements. @joshfree is there a trick for assigning issue to folks from outside our org?
Forgot about not being able to assign outside of the team. Frustrates me on wixtoolset/issues as well.
Anyway, if you're interested in a Bundle (and I do highly recommend it when shipping software over the internet), let me know and I can get the MSI wrapped up over the next couple days. Then any remaining CRTs can be added.
Oh, and I don't have anything better for testing MSIs than VMs at this point. Save/check points are your friend.
Thanks. Save/checkpoint adds a lot of complexity to CI... someday/maybe...
@Petermarcu, @Sridhar-MS can you weigh in on bundle?
We longer require to chain VC++ redist MSI. @schellap has made changes to statically link any CRT dependencies. So we may not need to bundle the MSI with pre-reqs.
@blackdwarf Can you remove the VC++ redist pre-reqs from getting started doc?
@robmen But still take a pass at our MSI. I feel it is very rudimentary at this stage (but helped to get us going quickly). If we can optimize on embedded cabinets to save user space I am all for it.
/cc: @joeloff @jhendrixMSFT
@schellap I thought you were yet to make ILC side of changes and then make changes for static linking for the output of --native. Is this work done?
@Sridhar-MS Without the above, we cannot remove the dependency.
@gkhanna79 Does Native no longer have the dependency on a full VS2015 install?
We still compile and link with VS for dotnet native. Only the corehost dependency on VS is not there, as it is self contained now with the CRT.
I believe the Bundle will add value independent of VCRedist (although Bundle adds a lot of value if/while VCRedist is still needed).
If you're good shipping a Bundle (.exe) instead of naked .msi (something I recommend on the internet anyway) then I'd be happy to get it built for you real quick... but someone else would probably need to update the publish scripts (I don't have great way to test them).
PS: I took a spin through much of the MSI. Sent some recommended fixes. Still some other stuff could probably be done. :smile_cat:
@robmen , Thanks for jumping in! :) Having a bundle would be a great addition in my mind.
Is this a bundle for just the CLI? We are currently working on a bundle that will carry the CLI and tooling though that's primarily geared toward VS2015, though without VS it should just end up dropping the CLI
@joeloff I would recommend creating a Bundle for the pieces you expect users to install. If you only expect a user to install the CLI with the tooling, then a single Bundle with both is great. But I would recommend changing the Getting Started documentation to indicate installing that Bundle instead of just the CLI.
If installing the CLI as a standalone "thing" the a Bundle for the CLI is a very good idea. In fact, it's an even more important idea if you're going to start sharing the CLI with other Bundles. Bundles appropriately reference track their contained packages (the CLI MSI package, in this case).
For example, If the CLI is available as standalone MSI, then someone installs the tooling Bundle (that contains the CLI) then decides they don't want the tooling... the CLI standalone MSI would be removed. A Bundle for "standalone CLI" avoids that problem.
So it gets back to:
I would recommend creating a Bundle for the pieces you expect users to install.
@robmen 100% agree. That's why the CLI MSI should already have dependency provider keys to support bundle reference counting. I just wasn't aware of the separate CLI only distribution.
@joeloff , the CLI Msi will definitely be something we want people to be able to install without having to get the VS tooling.
Alright @robmen, all yours!
@schellap I thought you were yet to make ILC side of changes and then make changes for static linking for the output of --native. Is this work done?
Since the CRT changes need to be fixed in both the repos, we need this issue https://github.com/dotnet/cli/issues/1019 fixed, so we no longer need to pin the CLI version to 1.0.0.000973 in CoreRT. Then we can push a new ILC package and make corresponding CLI changes.
I can get an ILC Package for the CLI just compiled with MT MTd without passing the CI though. I will do that for bootstrapping.
@robmen piotrpMSFT once this is complete, and hosted "somewhere" if you let me know, I would be happy to wrap this in a chocolatey package, so would then be as simple as:
choco install dotnet
to get the necessary tooling installed on a Windows based machine (assuming they have Chocolatey already, obviously :smile: )