Results 1 to 8 of 8

Thread: Simple Deploy

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    Simple Deploy

    I have a pretty simple project. No need for registry. Can I just copy the release folder to another machine instead of going through the whole deployment method with setup etc.

  2. #2
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: Simple Deploy

    Use ClickOnce for a quick "down and dirty" deployment. You can access the publishing wizard through the properties of your project. Look for the Publish tab.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    Re: Simple Deploy

    Quote Originally Posted by circuits2
    Use ClickOnce for a quick "down and dirty" deployment. You can access the publishing wizard through the properties of your project. Look for the Publish tab.

    Isn't "publishing" for web projects?

  4. #4
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: Simple Deploy

    No, not only. The publishing wizard will give you several options for deployment, including installation from a disk or network drive. You can even modify the application manifest to change the update and installation paths. Very versatile for it's simplicity.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    Re: Simple Deploy

    Where are the program files located?

    I also have a txt file in the bin directory of my project, the file is both read and written to. Can I add this?

    Is the xcopy method more appropriate for me? And rather than use xcopy, cant i just copy the folder?

  6. #6
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: Simple Deploy

    Quote Originally Posted by jeffnyc
    Can I just copy the release folder to another machine instead of going through the whole deployment method with setup etc.
    Yes. In most cases for a 'simple' project you can just copy the files in the bin directory and it will run, provided the target system has the appropriate framework installed.
    HTH
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  7. #7
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: Simple Deploy

    You can't just copy the files any more. That went away with VB6. The files for your app will be located in the Publish folder that can be found in the project's directory. Also, you can add your text file to the distribution copy. Click around for a while, it's pretty straight forward. The wizard can help with a lot of your questions the first time around.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

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

    Re: Simple Deploy

    Quote Originally Posted by circuits2
    You can't just copy the files any more. That went away with VB6. The files for your app will be located in the Publish folder that can be found in the project's directory. Also, you can add your text file to the distribution copy. Click around for a while, it's pretty straight forward. The wizard can help with a lot of your questions the first time around.
    Yes you can. If your app compiles to a single EXE then you can simply copy that EXE to another machine and run it, assuming that the Framework is already installed. Even if your app depends on DLLs you can simply copy them to the same folder and it will still work.

    Publishing a project creates a ClickOnce installer. The advantages of that include the fact that your app appears in the Add/Remove Programs dialogue, plus ClickOnce can manage updates. It also allows you to automate installation of the Framework, SQL Server Express and some other components too. It is by no means required though.

    If you use a VS Setup project to create an MSI installer you can do more, including add registry entries, install assemblies in the GAC, register COM components and more. You lose ClickOnce's main feature of update management though.
    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

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