Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Very Basic VB.NET Deployment Question

  • 01-04-2004 12:54PM
    #1
    Registered Users, Registered Users 2 Posts: 912 ✭✭✭


    Forgive me for being dense. Forum search results didn't address such a basic matter.

    Suppose I have an extremely simple windows form app. (1 form)

    I am trying to deploy it for use on another computer.

    I go File > Add Project > New Project > Setup & Deployment Projects > Setup Project > OK

    I haven't got the Setup Wizard here as I am using the Standard Edition.

    Now I see a File System Window containing 3 folders, Application Folder, User's Desktop, User's Programs Menu for target machine and I am not sure how to proceed.

    I tried a few things like opening the User's Desktop folder, right clicking, choosing Add > Project Output > Primary Output

    If I Save All and Exit, the file WindowsApplication1.exe in \bin runs if I move it to another location. No setup/installer has been created though. Is that it? What if I have an Access database in \bin?


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 2,427 ✭✭✭ressem


    Add the primary output and dependencies of your main project to the application folder of the set-up project.

    Build the set-up project, as you would with your code.

    It'll create files in your setup projects debug/release folder called

    InstMsiA.Exe
    InstMsiW.Exe
    Setup.Exe
    Setup.Ini
    Setup1.msi (or whatever you called it)

    Deploy these + the appropriate Net framework installer if required.

    >> What if I have an Access database in \bin?
    ?
    If you're bundling and MDB then add it to the application folder like any other resources. (Or make up yet another target folder in the set-up project view )
    It doesn't make a difference to the build.


  • Registered Users, Registered Users 2 Posts: 912 ✭✭✭chakotha


    Great that worked thanks ressem - pretty cool!!

    Must go add a database.


Advertisement