|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating simple exe that runs without framework?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..) 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..) > > Can I create a simple executable with vb.net, that can run without the While it is certainly possible to do this, it is a great deal of trouble > .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... (and some expense). If you want a native executable, use VB6 to write it. -- Show quoteHTH, 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..) > 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..) > > > > 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 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..) > 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 ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----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..) > > http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =---- > One question, and I haven't experimented with this, what about an If you use the standard C++ library, then yes, you need msvcrt.dll (comes in > UNMANAGED C++ app? Does unmanaged C++ still require any type of supporting > framework? 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 > =---- 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 >> =---- > "Nenefta" <movano***@hotmail.com> wrote There is at least one option that I'm familure with for doing this:> 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... 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
Other interesting topics
|
|||||||||||||||||||||||