Results 1 to 7 of 7

Thread: Publishing an .exe file

  1. #1
    JustLetMeRegister is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    Apr 2012
    Posts
    7
    Reputation
    0

    Publishing an .exe file

    Hello,

    I've just completed my first VB.Net program and I want to publish it as a stand-alone program. When I use the "Publish" function from the Project menu, it creates an installation program that is required to complete before I can use the program freely. Is it possible to just make a program that will run without needing to "install" it?

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,335
    Reputation
    1543
    You already have. If you don't want an installer then don't create an installer. You can simply copy your EXE to another machine and it will work, assuming that that machine has the appropriate version of the .NET Framework installed. If your app has any other dependencies then they will have to be present on the other machine too, either deployed with your app or provided by the user. No program actually ever needs installing. It's just that an installer is a convenient way to perform tasks required by the application, e.g. installing dependencies, modifying the Registry, creating shortcuts, etc. The simpler your app is the less important an installer is.

  3. #3
    JustLetMeRegister is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    Apr 2012
    Posts
    7
    Reputation
    0
    I don't have an .exe for my program (at least that I know of). The only exe I can find is the setup file for the installation.


  4. #4
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,335
    Reputation
    1543
    Of course you have an EXE. That's the only way to run the program. The EXE is the program. When you build your project it compiles the source files into an EXE. When you run the in the debugger it builds the project first and then runs the EXE created. When you publish it simply bundles that EXE and a few other things into an installer. If you want to deploy the app without an installer then, assuming you're using VB Express, you use the Build menu and then find the output under the 'bin' subfolder of your project, exactly as it says in the project properties.

  5. #5
    JustLetMeRegister is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    Apr 2012
    Posts
    7
    Reputation
    0
    Found it, thanks.

  6. #6
    jacky.goy's Avatar
    jacky.goy is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 4.0
    Join Date
    Sep 2006
    Posts
    35
    Reputation
    84
    Quote Originally Posted by jmcilhinney View Post
    You already have. If you don't want an installer then don't create an installer. You can simply copy your EXE to another machine and it will work, assuming that that machine has the appropriate version of the .NET Framework installed. If your app has any other dependencies then they will have to be present on the other machine too, either deployed with your app or provided by the user. No program actually ever needs installing. It's just that an installer is a convenient way to perform tasks required by the application, e.g. installing dependencies, modifying the Registry, creating shortcuts, etc. The simpler your app is the less important an installer is.
    How to check whether the target computer already had the appropriate version of .Net Framework installed and other dependencies as well? For Example .Net Framework 2 and Crystal Report.

    TQ.
    -------------------------------------------------
    Best Regards,
    Jacky Goy

  7. #7
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,335
    Reputation
    1543
    Quote Originally Posted by jacky.goy View Post
    How to check whether the target computer already had the appropriate version of .Net Framework installed and other dependencies as well? For Example .Net Framework 2 and Crystal Report.

    TQ.
    You would need an installer for that.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking