Click here to Skip to main content
15,896,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I made an application using C#, Access database and .Net framework 3.5. I created my setup file. But when I want to setup my application to another PC, then I got problem. It always requires .net framework 3.5 to be install. But this is too big file to download for a user.

Suppose my app size is 1.25MB. If I want to compact .net framwork 3.5 (198MB) with my application, then it will stand a big file
which is so tough for a user to download from website.

Is there any less size of .Net framwork 3.5 which is worked for all application with access database.

I am also facing the same problem when I want to setup my application using C#, SQL server. This requires to be installed SQL Server. But this is so tough for a new user to install SQL server. Because the installation process of SQL server is not so easy as we required.

How I will be facilitated from these problem? Help me plz.
Posted
Comments
joshrduncan2012 11-Apr-13 12:41pm    
Your essentially out of luck with regards to sizes of .net framework files. What are you using to create your setup file?

1 solution

You can't.

All .NET applications need to have the .NET framework installed before they can run (that is why they are called ".NET applications". The same applies to SQL server - if your app needs to use it, then it needs to be installed on at least one PC on the client network or the application your application talks to can't be found and you can't access any database.


You can reduce the need slightly - Vista shipped with .NET 2 installed, so if you target .NET2.0 with your application your customer will not need to install the framework provides he is running an OS later than (but not including) XP.

If you are only using the database in single user mode, you can recode your application to use a "simpler" database such as SqlCE or SqLite which both have a very small installation footprint.

But if you need .NET 3.5 and SQL server, you must install them before your application will work (but don't ship SQL server yourself, that is a bad idea for a whole pile of reasons!)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900