Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi frens,
i am doing a project in C# using VS 2008 EXPRESS edition... Now i m in the stage of deploying it with ACCESS 2007 database, i have created setup file using C# publish wizard but the setup file that i get is not in the form what i wanted...

One of the major limitation(For me) of the setup file thus generated via publish wizard is that it need some prequisites that must be fulfilled ie- 1) Window installer 3.1 or greater 2) Dot net framework 3.5 or greater ....

So to over come this limitation I think to make portable version of my application by including all depending dll and other resource in a singal package so that it can run in any windows machine simply by copying(just Similarly what we do to run other portable application) ...

I am new in deploying application manually, and i just wanted to start... from this application...

I would be very thankful.. if i get some fruit full suggestion....... For making my c# application portable...

Thanks in advance to all of you who reply to this post......
Posted

Your portability requirements only cover .NET Framework v.3.5 and v.4.0. You won't have any portability problems. As to Access, it should be listed in prerequisites as all other software used by your project beyond .NET Framework. This is really a good idea to leave installation of Access and other products to the customer, by many reasons. All you need is keeping the target .NET version to v.3.5 after you migrate to Visual Studio 2010 (or later, in future). If you use Visual Studio 2008, it will be done by default.

In contrast, the .NET Framework re-distributable itself can easily be deployed with your application, see http://msdn.microsoft.com/en-us/library/6hbb4k3e.aspx[^].

—SA
 
Share this answer
 
Comments
Abhinav S 7-Aug-11 4:35am    
Good as usual. My 5.
Sergey Alexandrovich Kryukov 7-Aug-11 5:19am    
Thank you, Abhinav.
--SA
Kim Togo 8-Aug-11 8:08am    
Good answer SA. My 5.
Sergey Alexandrovich Kryukov 8-Aug-11 8:29am    
Thank you, Kim.
--SA
You can't make any C# (or other .NET language) based application stand alone: you will always need some version of the .NET framework. In your case, you have developed it to run with .NET V3.5 so your installer should check for that, and will (hopefully) install it if it isn't present. Equally, Windows installer 3.1 is required to make the installation program work.

However, these aren't normally problems in the real world: the installer is installed automatically on modern OS's anyway, and Vista included .NET 2.0, Windows 7 includes .NET 3.5

It may be worth downgrading your app to .NET V2.0 if this is a real problem (as it will install on vista and above without additional software) but in practice this may required too many changes to your application to be worth while.
 
Share this answer
 
Comments
Abhinav S 7-Aug-11 4:35am    
Sound advice. My 5.

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