1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating a program without requiring .Net

Discussion in 'Visual Basic .NET' started by chipmunk951, Sep 5, 2011.

  1. chipmunk951

    chipmunk951 Senior Member

    Joined:
    May 10, 2010
    Messages:
    1,011
    Likes Received:
    443
    Occupation:
    IM
    Location:
    Zimbabwe
    Is it possible? I've seen some apps created using .Net but they don't seem to require the .net framework.

    Anyone know anything about this? The program is only ~ 10 KB and I wouldn't want the user to have to install .Net just for it.

    Thanks
     
  2. darkmonk

    darkmonk Regular Member

    Joined:
    Nov 21, 2007
    Messages:
    226
    Likes Received:
    52
    There used to be some linkers out there I don't know if they are still available/sold/on the market but once you do that your exe size is going to be quite a bit more than 10KB.
     
  3. chipmunk951

    chipmunk951 Senior Member

    Joined:
    May 10, 2010
    Messages:
    1,011
    Likes Received:
    443
    Occupation:
    IM
    Location:
    Zimbabwe
    Thanks I looked this up but what I found on google was pretty expensive linker software. Anyone know of any alternative solutions?

    Thx
     
  4. Monrox

    Monrox Power Member

    Joined:
    Apr 9, 2010
    Messages:
    615
    Likes Received:
    579
    No free alternatives. From the paid ones I know of salamander and postbuild xenocode. Both are great obfuscators too. But I thought vista and above come with some framework version preinstalled?
     
  5. Hydrogen

    Hydrogen Newbie

    Joined:
    Dec 30, 2009
    Messages:
    39
    Likes Received:
    23
    Occupation:
    Co-Owner of AdvertMarketing
    Home Page:
    Are you writing something nefarious that you want to keep hidden from the user or you don't care?

    Because it's not much work a flip of a few settings to 'Require a particular .Net version' and if you don't trust the user to be smart enough to install the required framework theirselves, simply write a nullsoft installer for your app and have it check for installed framework "if any" and update as needed.

    I think you'll find working with a linker is much more problems then it's worth and if you are doing something that is hidden from the user and does 'funky stuff' you don't want them to know about, probably shouldn't be using .net anyways, and step it up to a ASM / C++ app.

    Hell for that matter could even go as far as doing it all in VB6 (that's what all the keylogger/Trojan kids are still using these days)
     
    • Thanks Thanks x 1
  6. chipmunk951

    chipmunk951 Senior Member

    Joined:
    May 10, 2010
    Messages:
    1,011
    Likes Received:
    443
    Occupation:
    IM
    Location:
    Zimbabwe
    Actually all the program does is mimic a web browser. It just opens it in the window and goes to a certain site :S that's all haha.
     
  7. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    Agree with Hydrogen 100% on this one, if it's something trivial you might as well code it in something like C++ or Delphi and avoid the hassle of a linker.
     
  8. Hydrogen

    Hydrogen Newbie

    Joined:
    Dec 30, 2009
    Messages:
    39
    Likes Received:
    23
    Occupation:
    Co-Owner of AdvertMarketing
    Home Page:
    In that case go to PROJECT / COMPILE / Advanced Compile Options ( Target framework (all configurations) ) and select the required Framework you 'NEED') if you are just doing small minor stuff and aren't referencing things like system.web.dll then you can probably get away with only requiring 2.0 which most systems these days have installed at least by default.

    Otherwise like I said wrap it in a Nullsoft installer or any other installer that has custom scripts and make the installer CHECK/Install required framework. Nullsoft forums has scripts available all over it for this purpose exactly.

    Or.... you can use the PUBLISH feature in VisualStudio and I believe (haven't used it in awhile) Create a Installer from VS itself that will check and prompt user for .Net Install/Upgrade
     
    • Thanks Thanks x 1
  9. chipmunk951

    chipmunk951 Senior Member

    Joined:
    May 10, 2010
    Messages:
    1,011
    Likes Received:
    443
    Occupation:
    IM
    Location:
    Zimbabwe
    THANKS! This worked!