How do I make a Standalone Application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Arthur

    How do I make a Standalone Application

    I want an application developed in C# to be used on any computer _without_
    the client computer needing the .NET framework. I have build a sample
    application that I want to be able to quickly show to people. I will plug
    in a ThumbDrive with my app on it, and then execute my application. I don't
    want to have to force people to install the Framework and reboot if they do
    not have the .NET framework installed.

    Is this possible? and how?

    Thanks,

    Richard Arthur


  • Bill Priess

    #2
    Re: How do I make a Standalone Application

    This is not possible using C#. You will have to use C++ in order to build an
    app that does not rely on the .NET Framework.

    HTH,

    Bill P.

    "Richard Arthur" <rba28@cs.byu.e du> wrote in message
    news:eZ9bhvHTDH A.1588@TK2MSFTN GP11.phx.gbl...[color=blue]
    > I want an application developed in C# to be used on any computer _without_
    > the client computer needing the .NET framework. I have build a sample
    > application that I want to be able to quickly show to people. I will plug
    > in a ThumbDrive with my app on it, and then execute my application. I[/color]
    don't[color=blue]
    > want to have to force people to install the Framework and reboot if they[/color]
    do[color=blue]
    > not have the .NET framework installed.
    >
    > Is this possible? and how?
    >
    > Thanks,
    >
    > Richard Arthur
    >
    >[/color]


    Comment

    • Jon Skeet

      #3
      Re: How do I make a Standalone Application

      Richard Arthur <rba28@cs.byu.e du> wrote:[color=blue]
      > I want an application developed in C# to be used on any computer _without_
      > the client computer needing the .NET framework.[/color]

      You're out of luck. It's not going to happen - at least, not at the
      moment.

      --
      Jon Skeet - <skeet@pobox.co m>
      Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

      If replying to the group, please do not mail me too

      Comment

      • Jon Skeet

        #4
        Re: How do I make a Standalone Application

        Bill Priess <no.spam@nospam .com> wrote:[color=blue]
        > This is not possible using C#. You will have to use C++ in order to build an
        > app that does not rely on the .NET Framework.[/color]

        Or Java, or Delphi, or C, or Perl, or Python, etc - there are plenty of
        languages other than C++ which don't require .NET :)

        --
        Jon Skeet - <skeet@pobox.co m>
        Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

        If replying to the group, please do not mail me too

        Comment

        • Bill Priess

          #5
          Re: How do I make a Standalone Application

          heh.. Jon you are always on about the details... sheesh! ;)

          "Jon Skeet" <skeet@pobox.co m> wrote in message
          news:MPG.1980db bde9e7f82398a13 e@news.microsof t.com...[color=blue]
          > Bill Priess <no.spam@nospam .com> wrote:[color=green]
          > > This is not possible using C#. You will have to use C++ in order to[/color][/color]
          build an[color=blue][color=green]
          > > app that does not rely on the .NET Framework.[/color]
          >
          > Or Java, or Delphi, or C, or Perl, or Python, etc - there are plenty of
          > languages other than C++ which don't require .NET :)
          >
          > --
          > Jon Skeet - <skeet@pobox.co m>
          > http://www.pobox.com/~skeet/
          > If replying to the group, please do not mail me too[/color]


          Comment

          • Richard Arthur

            #6
            Re: How do I make a Standalone Application

            Right. We used to do all our development in Java, but I did not know you
            could bundle the J2EE with a deployed application. I always thought you had
            to at least have the Java runtime installed on the destination computer.

            Anyway, we shifted to C# for a lot of the COM interop possibility, and for a
            myriad of other reasons. We like the way Properties work, our development
            uses a lot of Reflecion, and Properties fit our object model very well.

            I was afraid of this, and my boss won't be too happy. But I will try to set
            something up that will ease the pain.

            Thanks.


            "Bill Priess" <no.spam@nospam .com> wrote in message
            news:en38f%23HT DHA.2084@TK2MSF TNGP11.phx.gbl. ..[color=blue]
            > heh.. Jon you are always on about the details... sheesh! ;)
            >
            > "Jon Skeet" <skeet@pobox.co m> wrote in message
            > news:MPG.1980db bde9e7f82398a13 e@news.microsof t.com...[color=green]
            > > Bill Priess <no.spam@nospam .com> wrote:[color=darkred]
            > > > This is not possible using C#. You will have to use C++ in order to[/color][/color]
            > build an[color=green][color=darkred]
            > > > app that does not rely on the .NET Framework.[/color]
            > >
            > > Or Java, or Delphi, or C, or Perl, or Python, etc - there are plenty of
            > > languages other than C++ which don't require .NET :)
            > >
            > > --
            > > Jon Skeet - <skeet@pobox.co m>
            > > http://www.pobox.com/~skeet/
            > > If replying to the group, please do not mail me too[/color]
            >
            >[/color]


            Comment

            • Jon Skeet

              #7
              Re: How do I make a Standalone Application

              Richard Arthur <rba28@cs.byu.e du> wrote:[color=blue]
              > Right. We used to do all our development in Java, but I did not know you
              > could bundle the J2EE with a deployed application. I always thought you had
              > to at least have the Java runtime installed on the destination computer.[/color]

              Nope - your installation can do all that. Sun's JRE is free to
              redistribute. Now as for a free J2EE server... you'd have to go with
              JBoss or something similar.
              [color=blue]
              > Anyway, we shifted to C# for a lot of the COM interop possibility, and for a
              > myriad of other reasons. We like the way Properties work, our development
              > uses a lot of Reflecion, and Properties fit our object model very well.
              >
              > I was afraid of this, and my boss won't be too happy. But I will try to set
              > something up that will ease the pain.[/color]

              You can redistribute the .NET framework too. It may be reasonably big,
              but it's free to redistribute.

              --
              Jon Skeet - <skeet@pobox.co m>
              Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

              If replying to the group, please do not mail me too

              Comment

              • Richard Arthur

                #8
                Re: How do I make a Standalone Application

                comments below...

                "Jon Skeet" <skeet@pobox.co m> wrote in message
                news:MPG.19812a cf625d06bd98a14 0@news.microsof t.com...[color=blue]
                > Richard Arthur <rba28@cs.byu.e du> wrote:[color=green]
                > > Right. We used to do all our development in Java, but I did not know[/color][/color]
                you[color=blue][color=green]
                > > could bundle the J2EE with a deployed application. I always thought you[/color][/color]
                had[color=blue][color=green]
                > > to at least have the Java runtime installed on the destination computer.[/color]
                >
                > Nope - your installation can do all that. Sun's JRE is free to
                > redistribute. Now as for a free J2EE server... you'd have to go with
                > JBoss or something similar.[/color]

                Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed on
                a machine before any Java apps can be run. but it is freely distributable.
                I thought you meant that I could just bind the Java App with the JRE, and
                run the Java App without having to install the JRE first.
                [color=blue]
                >[color=green]
                > > Anyway, we shifted to C# for a lot of the COM interop possibility, and[/color][/color]
                for a[color=blue][color=green]
                > > myriad of other reasons. We like the way Properties work, our[/color][/color]
                development[color=blue][color=green]
                > > uses a lot of Reflecion, and Properties fit our object model very well.
                > >
                > > I was afraid of this, and my boss won't be too happy. But I will try to[/color][/color]
                set[color=blue][color=green]
                > > something up that will ease the pain.[/color]
                >
                > You can redistribute the .NET framework too. It may be reasonably big,
                > but it's free to redistribute.
                >
                > --
                > Jon Skeet - <skeet@pobox.co m>
                > http://www.pobox.com/~skeet/
                > If replying to the group, please do not mail me too[/color]


                Comment

                • Jon Skeet

                  #9
                  Re: How do I make a Standalone Application

                  Richard Arthur <rba28@cs.byu.e du> wrote:[color=blue][color=green]
                  > > Nope - your installation can do all that. Sun's JRE is free to
                  > > redistribute. Now as for a free J2EE server... you'd have to go with
                  > > JBoss or something similar.[/color]
                  >
                  > Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed on
                  > a machine before any Java apps can be run. but it is freely distributable.[/color]

                  Well, it has to be present. It doesn't have to be installed as such -
                  you can run the JRE just by having the right files in the right places.
                  [color=blue]
                  > I thought you meant that I could just bind the Java App with the JRE, and
                  > run the Java App without having to install the JRE first.[/color]

                  Yes - see above. On the other hand, if every app does that, you end up
                  with a lot of JREs! One thing some installers allow is to ask the user
                  to select an existing JRE, or install one for them to be used by that
                  app and others, or place one in the app's directory just for its own
                  use.

                  --
                  Jon Skeet - <skeet@pobox.co m>
                  Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

                  If replying to the group, please do not mail me too

                  Comment

                  • John

                    #10
                    Re: How do I make a Standalone Application

                    Can I ask that how to redistribute .NetFramework ? reinstall the whole
                    ..netframework or ..?
                    Thanks
                    John

                    "Richard Arthur" <rba28@cs.byu.e du> comments below...

                    "Jon Skeet" <skeet@pobox.co m> wrote in message
                    news:MPG.19812a cf625d06bd98a14 0@news.microsof t.com...[color=blue]
                    > Richard Arthur <rba28@cs.byu.e du> wrote:[color=green]
                    > > Right. We used to do all our development in Java, but I did not know[/color][/color]
                    you[color=blue][color=green]
                    > > could bundle the J2EE with a deployed application. I always thought you[/color][/color]
                    had[color=blue][color=green]
                    > > to at least have the Java runtime installed on the destination computer.[/color]
                    >
                    > Nope - your installation can do all that. Sun's JRE is free to
                    > redistribute. Now as for a free J2EE server... you'd have to go with
                    > JBoss or something similar.[/color]

                    Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed on
                    a machine before any Java apps can be run. but it is freely distributable.
                    I thought you meant that I could just bind the Java App with the JRE, and
                    run the Java App without having to install the JRE first.
                    [color=blue]
                    >[color=green]
                    > > Anyway, we shifted to C# for a lot of the COM interop possibility, and[/color][/color]
                    for a[color=blue][color=green]
                    > > myriad of other reasons. We like the way Properties work, our[/color][/color]
                    development[color=blue][color=green]
                    > > uses a lot of Reflecion, and Properties fit our object model very well.
                    > >
                    > > I was afraid of this, and my boss won't be too happy. But I will try to[/color][/color]
                    set[color=blue][color=green]
                    > > something up that will ease the pain.[/color]
                    >
                    > You can redistribute the .NET framework too. It may be reasonably big,
                    > but it's free to redistribute.
                    >
                    > --
                    > Jon Skeet - <skeet@pobox.co m>
                    > http://www.pobox.com/~skeet/
                    > If replying to the group, please do not mail me too[/color]



                    Comment

                    • Bill Priess

                      #11
                      Re: How do I make a Standalone Application

                      You can include the dotnetfx.exe when you create an installer in .NET. If
                      you are using something like InstallShield or something like that, you can
                      also include the redistributable .

                      Bill P.
                      "John" <johnyang@frogg y.com.au> wrote in message
                      news:ewTi$5TTDH A.1588@TK2MSFTN GP11.phx.gbl...[color=blue]
                      > Can I ask that how to redistribute .NetFramework ? reinstall the whole
                      > .netframework or ..?
                      > Thanks
                      > John
                      >
                      > "Richard Arthur" <rba28@cs.byu.e du> comments below...
                      >
                      > "Jon Skeet" <skeet@pobox.co m> wrote in message
                      > news:MPG.19812a cf625d06bd98a14 0@news.microsof t.com...[color=green]
                      > > Richard Arthur <rba28@cs.byu.e du> wrote:[color=darkred]
                      > > > Right. We used to do all our development in Java, but I did not know[/color][/color]
                      > you[color=green][color=darkred]
                      > > > could bundle the J2EE with a deployed application. I always thought[/color][/color][/color]
                      you[color=blue]
                      > had[color=green][color=darkred]
                      > > > to at least have the Java runtime installed on the destination[/color][/color][/color]
                      computer.[color=blue][color=green]
                      > >
                      > > Nope - your installation can do all that. Sun's JRE is free to
                      > > redistribute. Now as for a free J2EE server... you'd have to go with
                      > > JBoss or something similar.[/color]
                      >
                      > Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed[/color]
                      on[color=blue]
                      > a machine before any Java apps can be run. but it is freely[/color]
                      distributable.[color=blue]
                      > I thought you meant that I could just bind the Java App with the JRE, and
                      > run the Java App without having to install the JRE first.
                      >[color=green]
                      > >[color=darkred]
                      > > > Anyway, we shifted to C# for a lot of the COM interop possibility, and[/color][/color]
                      > for a[color=green][color=darkred]
                      > > > myriad of other reasons. We like the way Properties work, our[/color][/color]
                      > development[color=green][color=darkred]
                      > > > uses a lot of Reflecion, and Properties fit our object model very[/color][/color][/color]
                      well.[color=blue][color=green][color=darkred]
                      > > >
                      > > > I was afraid of this, and my boss won't be too happy. But I will try[/color][/color][/color]
                      to[color=blue]
                      > set[color=green][color=darkred]
                      > > > something up that will ease the pain.[/color]
                      > >
                      > > You can redistribute the .NET framework too. It may be reasonably big,
                      > > but it's free to redistribute.
                      > >
                      > > --
                      > > Jon Skeet - <skeet@pobox.co m>
                      > > http://www.pobox.com/~skeet/
                      > > If replying to the group, please do not mail me too[/color]
                      >
                      >
                      >[/color]


                      Comment

                      Working...