|
Our client machines are on remote locations with limited network connectivity without the 3.5 framework. Rather than downloading the framework from part of the prerequisites, I would rather bundle the framework and have it install automatically if it doesn't exist. Does anyone have an example of how to do this or can point me to a site? I have been searching all morning and can quite narrow my results down.
Thanks for the communities help.
|
| travich Monday, November 24, 2008 5:08 PM |
What do you mean by "bundle"?
If you mean "all in one file"... that's not something the bootstrapper does. The reason is that it de-optimizes the download scenario. The bootstrapper only downloads the packages that need to be installed...not all of them. So if you already have .NET Fx 3.5 installed, it doesn't download that 200MB set of installation files.
Unfortunately, there's a change in the VS 2008 Bootstrapper that doesn't allow self-extraction of the setup.exe bootstrapper even though it worked in VS 2005. We are planning on fixing that for VS 2010, but I can't promise it will be in there until we actually ship.
Hope this helps... |
| David Guyer MSFT Tuesday, November 25, 2008 7:39 PM |
Check out this post from one of the MSFT guys. This should point you in the right direction. If it doesn't get you all the way there, search this forum for "3.5" and "samesite".
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=4120926&SiteID=1
RobinS.
GoldMail.com
|
| RobinDotNet Monday, November 24, 2008 7:16 PM |
Yes, that definitely doesn't answer my question. I really didn't think it would be so hard to find a way to bundle this together.
I found that for 2003 there was a plug-in bootstrapper program that would do this. However, I can't find such a program for 2008...
|
| travich Monday, November 24, 2008 7:35 PM |
Also, you can download and use Bootstrapper Manifest Generator to get the redist files on your dev machine for you...
-
Start BMG
-
Create a new MSBuild Project
-
Select the Packages Tab
-
Click the "Download Missing Files" link
-
Select .NET Frameworks 3.5 SP1
-
Click the Download Now button
This should download the full package, extract it, copy the files to the right location, and also fix up the Product.XML. Basically do everything the VS 2008 SP1 Readme says to do!
|
| David Guyer MSFT Monday, November 24, 2008 7:35 PM |
Okay, let me go through it one more time I must be missing something.
|
| travich Monday, November 24, 2008 7:43 PM |
I've tried this but notice the exe and msi are the same sizes as before... Am I doing something wrong?
|
| travich Monday, November 24, 2008 10:23 PM |
Is there documentation on this anywhere? I mean there is a Package Installation Source area that just looks exactly the same as the project properties of a deployment project for downloading. Why isn't there like a... bundle option. How do you actually bundle?
|
| travich Monday, November 24, 2008 10:31 PM |
I have everything set up so that it downloads from the same share as the application, but now I'm getting an error: Downloading failed with HRESULT=-2146697211 -- on one forum it said I had to enable the guest account on the server. I do not want to do this for security reasons.
The frustrating thing is that I don't even want to download it from the share, I want it to be actually packaged with the application. I'm assuming that's not possible at this point. Correct?
|
| travich Tuesday, November 25, 2008 6:26 PM |
What do you mean by "bundle"?
If you mean "all in one file"... that's not something the bootstrapper does. The reason is that it de-optimizes the download scenario. The bootstrapper only downloads the packages that need to be installed...not all of them. So if you already have .NET Fx 3.5 installed, it doesn't download that 200MB set of installation files.
Unfortunately, there's a change in the VS 2008 Bootstrapper that doesn't allow self-extraction of the setup.exe bootstrapper even though it worked in VS 2005. We are planning on fixing that for VS 2010, but I can't promise it will be in there until we actually ship.
Hope this helps... |
| David Guyer MSFT Tuesday, November 25, 2008 7:39 PM |
The help on the boostrapper application throws an unhandled exception, FYI.
I did not realize it did not do this, but was coming to that conclusion. I actually do not mind the framework being part of the install file. It would be cleaner for us than having them pull it across the network, etc. We're pretty certain almost everyone will need the .NET 3.5 framework installed...
Anyways, now I know and I'll use one of the download scenarios.
|
| travich Tuesday, November 25, 2008 8:06 PM |
David,
I think he's actually trying to deploy his application on a CD so people don't have to be connected to the Internet in order to install his application, and he wants to include .Net 3.5 SP-1 on the CD. Isn't this possible with .Net 3.5 SP-1, even though it's a huge redistributable?
travich -- isn't that what you ultimately want to do?
Thanks,
RobinS.
GoldMail.com |
| RobinDotNet Wednesday, November 26, 2008 7:38 PM |
Exactly... thanks for summing it up a little better.
|
| travich Thursday, November 27, 2008 6:03 AM |
I think all you need to do is go to the Prerequisites dialog window and select the "Download prerequisites from the same location as my application" radio button option. What this does is put every prerequisite installer in individual folders at the same directory level as your MSI or ClickOnce installer and the setup.exe bootstrapper. There is no downloading of prerequisites over the internet with this option. - Proposed As Answer bymiguelito928 Friday, April 17, 2009 11:15 PM
-
|
| miguelito928 Friday, April 17, 2009 11:15 PM |