Home All Groups Group Topic Archive Search About

Creating simple exe that runs without framework?

Author
23 Mar 2006 10:54 AM
Nenefta
Hi all,

probably a simple question for most of you:

Can I create a simple executable with vb.net, that can run without the
..Net framework installed? (like any executable created with VB6 in the
old days..)  I would like to stay away from permissions, strong naming
GAC etc. for some simple tools...

Thx,

Marcel

P.S. Why is it that .Net ships with command line tools that could
easily be implemented with an interface???? (sn, gacutil, caspol..)

Author
23 Mar 2006 11:05 AM
Dmytro Lapshyn [MVP]
Hi,

No, you can't do that. However, I have seen tools that combine your
application and the .NET Framework installer into a single installation
package.

Note that VB6 apps also use a shared runtime consisting of several DLLs. The
trick is that modern versions of Windows have these DLLs by default, but in
older days, one had to deploy the VB6 runtime along with the application.

Show quote
"Nenefta" <movano***@hotmail.com> wrote in message
news:1143111262.464857.129670@e56g2000cwe.googlegroups.com...
> Hi all,
>
> probably a simple question for most of you:
>
> Can I create a simple executable with vb.net, that can run without the
> .Net framework installed? (like any executable created with VB6 in the
> old days..)  I would like to stay away from permissions, strong naming
> GAC etc. for some simple tools...
>
> Thx,
>
> Marcel
>
> P.S. Why is it that .Net ships with command line tools that could
> easily be implemented with an interface???? (sn, gacutil, caspol..)
>
Author
23 Mar 2006 12:45 PM
Kevin Spencer
> Can I create a simple executable with vb.net, that can run without the
> .Net framework installed? (like any executable created with VB6 in the
> old days..)  I would like to stay away from permissions, strong naming
> GAC etc. for some simple tools...

While it is certainly possible to do this, it is a great deal of trouble
(and some expense). If you want a native executable, use VB6 to write it.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

Show quote
"Nenefta" <movano***@hotmail.com> wrote in message
news:1143111262.464857.129670@e56g2000cwe.googlegroups.com...
> Hi all,
>
> probably a simple question for most of you:
>
> Can I create a simple executable with vb.net, that can run without the
> .Net framework installed? (like any executable created with VB6 in the
> old days..)  I would like to stay away from permissions, strong naming
> GAC etc. for some simple tools...
>
> Thx,
>
> Marcel
>
> P.S. Why is it that .Net ships with command line tools that could
> easily be implemented with an interface???? (sn, gacutil, caspol..)
>
Author
23 Mar 2006 3:01 PM
Michael D. Ober
Even with VB 6 you need runtimes that are now supplied with the OS.  As for
native executable, VB 6 can compile to native code but a lot of it calls the
runtime DLLs and is actually slower than the VB 6 pCode when you use
collection and other objects.  (The information on VB 6 performance came
from an old MS technet article.)

Mike Ober.

Show quote
"Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
news:OdjO7enTGHA.224@TK2MSFTNGP10.phx.gbl...
> > Can I create a simple executable with vb.net, that can run without the
> > .Net framework installed? (like any executable created with VB6 in the
> > old days..)  I would like to stay away from permissions, strong naming
> > GAC etc. for some simple tools...
>
> While it is certainly possible to do this, it is a great deal of trouble
> (and some expense). If you want a native executable, use VB6 to write it.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> Professional Numbskull
>
> Show me your certification without works,
> and I'll show my certification
> *by* my works.
>
> "Nenefta" <movano***@hotmail.com> wrote in message
> news:1143111262.464857.129670@e56g2000cwe.googlegroups.com...
> > Hi all,
> >
> > probably a simple question for most of you:
> >
> > Can I create a simple executable with vb.net, that can run without the
> > .Net framework installed? (like any executable created with VB6 in the
> > old days..)  I would like to stay away from permissions, strong naming
> > GAC etc. for some simple tools...
> >
> > Thx,
> >
> > Marcel
> >
> > P.S. Why is it that .Net ships with command line tools that could
> > easily be implemented with an interface???? (sn, gacutil, caspol..)
> >
>
>
Author
23 Mar 2006 1:20 PM
Jason Hales
You'd don't need to go down the route of gac/strong naming/permissions
etc for a "simple executable".  You'll need these in a more Enterprise
environment.

Caspol has the almost equilivilant MS .Net Framework Configuration in
the Admin tools section of Control Panel.

The Setup projects can do all the work of bootstrapping the
installation of Framework runtime and can do all the clever GAC
registration for you.  Windows XP already ships with the Framework
Author
23 Mar 2006 3:39 PM
Patrice
No (you may want to explain the exact problem, you don't necessarily need to
use the GAC, strong naming, and permission is not a problem for locally
installed EXE file).
Else you'll have to use another product (actually VB6 needs a runtime).

For the UI stuff my guess would be that most the time they are called from a
command file as part of the build process (you have shell extensions for the
GAC and the
control panel might provide some of what CASPOL does)...

--
Patrice

"Nenefta" <movano***@hotmail.com> a écrit dans le message de news:
1143111262.464857.129***@e56g2000cwe.googlegroups.com...
Show quote
> Hi all,
>
> probably a simple question for most of you:
>
> Can I create a simple executable with vb.net, that can run without the
> .Net framework installed? (like any executable created with VB6 in the
> old days..)  I would like to stay away from permissions, strong naming
> GAC etc. for some simple tools...
>
> Thx,
>
> Marcel
>
> P.S. Why is it that .Net ships with command line tools that could
> easily be implemented with an interface???? (sn, gacutil, caspol..)
>
Author
24 Mar 2006 3:31 AM
n4ixt
By now you've seen the answers of no, you need the framework which is
correct. Just have your users install the framework, then you can create
some simple exe's that they can just xcopy install.

One question, and I haven't experimented with this, what about an UNMANAGED
C++ app? Does unmanaged C++ still require any type of supporting framework?

Anyone? Bueller?

   Robert

Show quote
"Nenefta" <movano***@hotmail.com> wrote in message
news:1143111262.464857.129670@e56g2000cwe.googlegroups.com...
> Hi all,
>
> probably a simple question for most of you:
>
> Can I create a simple executable with vb.net, that can run without the
> .Net framework installed? (like any executable created with VB6 in the
> old days..)  I would like to stay away from permissions, strong naming
> GAC etc. for some simple tools...
>
> Thx,
>
> Marcel
>
> P.S. Why is it that .Net ships with command line tools that could
> easily be implemented with an interface???? (sn, gacutil, caspol..)
>
>



----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Author
24 Mar 2006 7:20 AM
Dmytro Lapshyn [MVP]
> One question, and I haven't experimented with this, what about an
> UNMANAGED C++ app? Does unmanaged C++ still require any type of supporting
> framework?

If you use the standard C++ library, then yes, you need msvcrt.dll (comes in
different flavours depending on the runtime version).

Show quote
"n4ixt" <n4ixt@notabitofspam_direcway.com> wrote in message
news:1143170929_2457@sp6iad.superfeed.net...
> By now you've seen the answers of no, you need the framework which is
> correct. Just have your users install the framework, then you can create
> some simple exe's that they can just xcopy install.
>
> One question, and I haven't experimented with this, what about an
> UNMANAGED C++ app? Does unmanaged C++ still require any type of supporting
> framework?
>
> Anyone? Bueller?
>
>   Robert
>
> "Nenefta" <movano***@hotmail.com> wrote in message
> news:1143111262.464857.129670@e56g2000cwe.googlegroups.com...
>> Hi all,
>>
>> probably a simple question for most of you:
>>
>> Can I create a simple executable with vb.net, that can run without the
>> .Net framework installed? (like any executable created with VB6 in the
>> old days..)  I would like to stay away from permissions, strong naming
>> GAC etc. for some simple tools...
>>
>> Thx,
>>
>> Marcel
>>
>> P.S. Why is it that .Net ships with command line tools that could
>> easily be implemented with an interface???? (sn, gacutil, caspol..)
>>
>>
>
>
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
> News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
> Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption
> =----
Author
24 Mar 2006 11:38 AM
Stephany Young
And you can static link that if you want.


Show quote
"Dmytro Lapshyn [MVP]" <x-code@no-spam-please.hotpop.com> wrote in message
news:u2uu4NxTGHA.4520@TK2MSFTNGP10.phx.gbl...
>> One question, and I haven't experimented with this, what about an
>> UNMANAGED C++ app? Does unmanaged C++ still require any type of
>> supporting framework?
>
> If you use the standard C++ library, then yes, you need msvcrt.dll (comes
> in different flavours depending on the runtime version).
>
> "n4ixt" <n4ixt@notabitofspam_direcway.com> wrote in message
> news:1143170929_2457@sp6iad.superfeed.net...
>> By now you've seen the answers of no, you need the framework which is
>> correct. Just have your users install the framework, then you can create
>> some simple exe's that they can just xcopy install.
>>
>> One question, and I haven't experimented with this, what about an
>> UNMANAGED C++ app? Does unmanaged C++ still require any type of
>> supporting framework?
>>
>> Anyone? Bueller?
>>
>>   Robert
>>
>> "Nenefta" <movano***@hotmail.com> wrote in message
>> news:1143111262.464857.129670@e56g2000cwe.googlegroups.com...
>>> Hi all,
>>>
>>> probably a simple question for most of you:
>>>
>>> Can I create a simple executable with vb.net, that can run without the
>>> .Net framework installed? (like any executable created with VB6 in the
>>> old days..)  I would like to stay away from permissions, strong naming
>>> GAC etc. for some simple tools...
>>>
>>> Thx,
>>>
>>> Marcel
>>>
>>> P.S. Why is it that .Net ships with command line tools that could
>>> easily be implemented with an interface???? (sn, gacutil, caspol..)
>>>
>>>
>>
>>
>>
>> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
>> News==----
>> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
>> Newsgroups
>> ----= East and West-Coast Server Farms - Total Privacy via Encryption
>> =----
>
Author
24 Mar 2006 9:58 PM
Chris Mullins
"Nenefta" <movano***@hotmail.com> wrote

> Can I create a simple executable with vb.net, that can run without the
> .Net framework installed? (like any executable created with VB6 in the
> old days..)  I would like to stay away from permissions, strong naming
> GAC etc. for some simple tools...

There is at least one option that I'm familure with for doing this:

http://www.xenocode.com/

One of the people I work with has had signifigant success with this - we
were able to build a complex C# WinForms application in .Net 2.0 (it even
had some Managed and UnManaged C++), link it with this tool, and deploy it
to lots of computers that didn't have the .Net framework installed.

The install was pretty big (14 megs), but it ran everywhere with little or
no work.

--
Chris Mullins

AddThis Social Bookmark Button