Results 1 to 26 of 26

Thread: [RESOLVED] Running an application made in vs2005

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Resolved [RESOLVED] Running an application made in vs2005

    hi, i did a project in vb.net using the vs2005.I created the set up of the application.But when i install the set up in a machine in which vs is not installed then the set up does not work.Again when the machine has vs installed then the setup works nicely............why is it such?

    should i need to install this:

    http://www.microsoft.com/downloads/d...displaylang=en

    on every client machine in which vs is not installed but still i want to install the set up of my application?

    or some other software in order to run my application?

    please need some urgent help

    thank you

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    You need version 2.0 of the .NET Framework installed to run an app built with VS 2005. If you have an installer for your app then you should have the installer install the Framework for you, which both ClickOnce publishing and Setup projects can do. Otherwise, you or the user will need to install the Framework manually.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Question Re: Running an application made in vs2005

    Quote Originally Posted by jmcilhinney View Post
    If you have an installer for your app then you should have the installer install the Framework for you, which both ClickOnce publishing and Setup projects can do
    from where i can get the installer for an application?Is it some kind of a spftware which i need to download and install on the user machine???

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    You said in your first post that you'd already created an installer. You need to explain your situation clearly. If we don't know what you're doing then it's hard to fix the problem.

    That said, in VS you can either publish your project to use ClickOnce or else build a Setup project to use Windows Installer. VB Express supports only ClickOnce.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Question Re: Running an application made in vs2005

    Here are the snapshot of the steps that i followed to create a set up of my project:

    Name:  1.png
Views: 222
Size:  46.1 KB

    Name:  2.png
Views: 216
Size:  15.2 KB

    then i added the database and the exe of my project as shown in the sanpshot:
    Name:  3.png
Views: 215
Size:  11.2 KB

    then i created a shortcut to the desktop:
    Name:  4.png
Views: 209
Size:  8.8 KB

    finally i build my project to get the setup:
    Name:  5.png
Views: 224
Size:  7.3 KB

    in this way i created a setup of my project.......

    now how to install the setup in a machine where vs is not installed?

    do i need some third party software?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    You don't install the setup. The Setup project builds an installer and you run that installer to install your app on another machine. That's it. VS is irrelevant. As I said, what you need is the .NET Framework. Obviously the .NET Framework gets installed when you install VS, otherwise it wouldn't work.

    If you want your installer to install the .NET Framework for you then you should go into the project properties and check the .NET Framework in the prerequisites. That said, I would have thought that that would be done by default.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    Quote Originally Posted by jmcilhinney View Post
    If you want your installer to install the .NET Framework for you then you should go into the project properties and check the .NET Framework in the prerequisites
    Now i get your point jmc.........I had a look at this:
    Name:  Untitled.png
Views: 219
Size:  6.7 KB

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Question Re: Running an application made in vs2005

    i had a look at my project properties but i dont know how to check the .NET Framework in the prerequisites

    can you say how to check it.....

    Name:  Untitled.png
Views: 209
Size:  28.6 KB

    i want my installer to install the .net framework.......

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    The properties for the Setup project, not your application project. It's the installer that's going to install the Framework, not the app.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Question Re: Running an application made in vs2005

    thanks a lot for guiding me jmc

    ok i checked it:

    Here is a snapshot of the same:
    Name:  Untitled.png
Views: 292
Size:  49.2 KB

    i can see the last three lines with a radiobutton in fromt of them.......

    i did not select of change them while creating the setup.............the first radiobutton was selected by default..........

    do i need to change it in order to install the .net framework by the installer itself?

  11. #11
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    That first RadioButton indicates that the Framework will be downloaded and installed on demand, if and when it's needed. That is the preferred option if your installer is being distributed electronically, e.g. via download or email. It requires that the user be online when they install.

    If you're distributing your installer on physical media, e.g. CD or DVD, then you should select the second option and rebuild, then put the Framework installer on the media too.

    Note that, in order to install those components, the user MUST run the Setup.exe file that gets created when you build your project, NOT the MSI file. The MSI is just the Windows Installer package for your app. Setup.exe is the bootstrapper, which initiates installation of the various components.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    my client dont have the internet connection so that he can be online while installing the installer.........

    which option should i select then?

  13. #13
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    Quote Originally Posted by Tommy.net View Post
    my client dont have the internet connection so that he can be online while installing the installer.........

    which option should i select then?
    Um, I gave you two options. I said that the user must be online to use the first option. If the user isn't online then you can't use the first option. How many options does that leave? So, why exactly are you asking me which option you should choose? Please try thinking for yourself first.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    Sorry for irritating you jmc.......

    I have to select the second option and give him the setup.exe of my application as well as the set up of the framewrok installer.......am i right?

    one more thing..........if i give my client the two installers namely my setup and the .net framework in a Dvd,then is there something like this that he needs to installer the .net framework installer first and then my applications setup.exe......

    or he can also install the setup.exe first and then the later?

  15. #15

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    after building the setup project,i got these folders namely Debug,Release and the Setup1(a file with extension .vdproj)

    now within the Debug folder there are an .exe and a .msi files........

    now if i only take this .exe file and the .net framework installer in a cd and give it to my client then will it work?

    or i need to give all the debug folder(containing .msi and .exe) and the release folder and the .vdproj file along with the .net framework installer?

    please help

  16. #16
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Running an application made in vs2005

    i think you need only the setup.exe and the .net framework installer.......
    No need of the .msi .........

    but i am not sure about it..........

  17. #17
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    What you need is to set the build configuration to Release, build the solution and then deploy the entire contents of the Release folder under your Setup project.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  18. #18

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    How to set the build configuration to release sir?Where can i find the build configuration?

    what is the purpose of release sir?

  19. #19

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Question Re: Running an application made in vs2005

    ok i did it sir:

    Name:  Untitled.png
Views: 266
Size:  23.2 KB

  20. #20

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    but what is the purpose of making the build configuration to release?

  21. #21

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    ok jmc sir ........

    i builded my project and finally i get three things in my release folder namely:

    1)dotnetfx folder containing the dotnetfx.exe

    2)setup.exe

    3).msi


    now how to deploy the entire contents of the Release folder under the Setup project?

    i mean what does the term deploy means here?
    Last edited by Tommy.net; Jan 14th, 2010 at 05:14 AM.

  22. #22
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Running an application made in vs2005

    I had a go through this thread and i also did the same.......

    but i am also hung up with how to deploy the contents of the release folder to the setup project

    how to???

    please help

  23. #23
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    Copy it to a disc and hand it to the user to install.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  24. #24
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Running an application made in vs2005

    oops......so the contents of the release folder are ready to be installed?

    which files of the release folder should be installed?

  25. #25
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Running an application made in vs2005

    Quote Originally Posted by HowTo View Post
    oops......so the contents of the release folder are ready to be installed?

    which files of the release folder should be installed?
    I've already answered that question and I'm not fond of repeating myself. Please read the information that's already been provided before asking questions. What's the point of answering questions if the answers don't get read?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  26. #26

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    595

    Re: Running an application made in vs2005

    @HowTo---it has already been told that only the .net installer and the applications installer are needed to be installed in the client machine to run your application.........

    @jmc sir what is the meaning of deploying?

Posting Permissions

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



Click Here to Expand Forum to Full Width