How do I deploy a .NET program to a computer with no internet access?

Posted on 2006-03-29
Last Modified: 2010-04-16

I have a small .NET program that I have written for a client who refuses to allow her business computer access to the internet.  Thus, as I understand it, I cannot just use the regular .NET deployment procedure, because it will expect to be able to get the .NET libraries from the Microsoft website.

Can I just download the .NET installation package and burn it onto a CD with my program, so that it will install from that CD?  How would I set that up?  Can I use the .NET deployment setup this way, so that all the user has to do is run setup.exe?
Question by:FrancineTaylor
    LVL 21

    Expert Comment

    of course you can do it without connection to the internet - I'm talking about  .NET 1.1 but it should be the same for 2.0.

    In the deployemnt, the option to include insalling of .NET framework was disabled and if you try to enable it, it will give you an error - I presume to stop installing .NET framework everytime you install a program as it needs to be done only once.

    I would suggest doing it manually, as most likely you would have to see your client at least once or you can burn on the CD dotnetfx.exe (that's the name of the file by the way) and just put in your manual or just aske them to run this one first, before installing your program.

    I don't think how you can include it in  your C# (or VB.NET) deployment projet.

    You can right or use already written programs in C++ for example to run several .exe files for your installation, but it can't apparently be done in C# (or VB.NET) as your .NET application will run without .NET installed.

    good luck,
    LVL 30

    Expert Comment

    by:Alexandre Simões
    You can embedded all the files you need inside the installation package.
    Even on clients with an available internet connection it doesn't make cense to do it other way.

    Take a look here:
    LVL 21

    Expert Comment


    it's not about including ALL or ANY files, it's just about .NET framework installation file. Now try to see the logic - you program in C# is trying to install .NET framework - how is it supposed to run without .NET framework installed??

    LVL 1

    Author Comment


    So all I need is dotnetfx.exe?  Does it matter what version of Windows they are running, and what service packs they have?  My client has Windows 98; can the .NET package install to a Windows version that old?
    LVL 21

    Accepted Solution

    it will not run on win95 or win3.11, but will on win98... that's all you need:

    it has everything you need - download, system requirements, instructions.

    good luck,

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    Article by: Najam
    Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now