Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Smaller .NET Framework file size
 

Smaller .NET Framework file size

Hi,

My installer has a launch condition for the .net 3.5 framework. It is also a prerequisite that downloads from the same folder as the setup.exe. The problem is with the .net framework folder it makes the installer folder around 400MB which is not good. Is there any way to make this folder smaller?

Thank You,

Jordan
Jreeher  Monday, August 24, 2009 5:05 PM
Why don't you have it set as a prerequisite that downloads from the vendor's site? Then it will just use the Microsoft bootstrapper and install just the extra bits that the user needs rather than downloading the whole thing.

The other thing you can do is deploy the Client Framework, if your application will build with it. If the user has no version of .Net installed, it will install the Client Framework. If he has any version of .Net installed, it will install the entire 3.5 SP-1 Framework. Again, from the vendor website.

Is there some reason you want to deploy it yourself?

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Monday, August 31, 2009 3:13 AM
Hi Jreeher,

.NET Framework full package(including 2.0, 3.0's x86 and x64) comes up to 194MB. I think you might have added other component as prerequisite also. Recently we don't have better solution for this kind of question.

Do you really use the feature of .NET 3.5? If you don't use any feature of .NET 3.5, you can think of mark lower version of Framework e.g. 2.0, 3.0. That can save a lot of space.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, August 26, 2009 7:33 AM
Why don't you have it set as a prerequisite that downloads from the vendor's site? Then it will just use the Microsoft bootstrapper and install just the extra bits that the user needs rather than downloading the whole thing.

The other thing you can do is deploy the Client Framework, if your application will build with it. If the user has no version of .Net installed, it will install the Client Framework. If he has any version of .Net installed, it will install the entire 3.5 SP-1 Framework. Again, from the vendor website.

Is there some reason you want to deploy it yourself?

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Monday, August 31, 2009 3:13 AM

You can use google to search for other answers

Custom Search

More Threads

• Non-English Installation Dialogue box
• where do put the reference to the last screen of the installation
• ReportViewer and clickonce
• [Deployment Project] How to skip some windows in "User Interface"
• Why don't the Assembly Version and File Version auto-increment with the Publish version?
• Installer throws exception
• ProjectInstaller class...overridden Uninstall method not being called
• How to create an Installer
• Deciding which tool to use for automation of build and deployment
• MED-V