{"id":3953,"date":"2008-10-02T19:34:00","date_gmt":"2008-10-02T19:34:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vbteam\/2008\/10\/02\/looking-for-setup-and-deployment-project-templates-mary-lee\/"},"modified":"2024-07-05T14:07:41","modified_gmt":"2024-07-05T21:07:41","slug":"looking-for-setup-and-deployment-project-templates-mary-lee","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vbteam\/looking-for-setup-and-deployment-project-templates-mary-lee\/","title":{"rendered":"Looking for Setup and Deployment Project Templates? (Mary Lee)"},"content":{"rendered":"<p>Let&#8217;s say that you&#8217;ve developed an application using the free Visual Studio Express Edition. Now, you want to deploy your application to the masses, and you read documentation about <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/fyh6k4k4.aspx\">How to: Create or Add Deployment Projects<\/a>.<\/p>\n<h5>Here&#8217;s how the topic starts:<\/h5>\n<blockquote>\n<p><font face=\"Arial\"><strong>To create a new deployment project<\/strong><\/font><\/p>\n<ol>\n<li>\n<p><font face=\"Arial\" size=\"2\">On the File menu, point to Add, then click New Project. <\/font><\/p>\n<\/li>\n<li>\n<p><font face=\"Arial\" size=\"2\">In the resulting Add New Project dialog box, in the Project Types pane, open the Other Project Types node and select Setup and Deployment Projects. <\/font><\/p>\n<\/li>\n<li>\n<p><font face=\"Arial\" size=\"2\">In the Templates pane, choose the type of deployment project you want to create. For more information, see <\/font><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/wx3b589t.aspx\"><font face=\"Arial\" size=\"2\">Setup and Deployment Projects<\/font><\/a><font face=\"Arial\" size=\"2\">.<\/font> <\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p>In this example, I&#8217;m using Visual Basic 2008 Express Edition.&nbsp; However, when I open the <strong>New Project<\/strong> dialog box, there isn&#8217;t an <strong>Other Project Types<\/strong> node.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/VBE2008.jpg\"><img decoding=\"async\" height=\"384\" alt=\"VBE2008\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/VBE2008_thumb.jpg\" width=\"502\" border=\"0\"><\/a> <\/p>\n<p>The <strong>Other Projects Types<\/strong> node is only available in Standard Edition or higher (such as Professional Edition and Team System Edition).&nbsp; Also, you cannot download the Setup Project templates and add them to Visual Studio Express Edition.<\/p>\n<p>Here, you discover that Visual Studio Express Edition is free, but limited.&nbsp; All of the following versions of the Express Editions have the same limited functionality: Visual Basic 2005 Express Edition,Visual C# 2005 Express Edition, Visual C++ 2005 Express Edition, Visual Basic 2008 Express Edition,Visual C# 2008 Express Edition, and Visual C++ 2008 Express Edition.<\/p>\n<p>All hope is not lost!&nbsp; You can use <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/t71a733d.aspx\">ClickOnce Deployment<\/a> to easily share your application with the masses. The ClickOnce <strong>Publish Wizard<\/strong> can easily generate a setup.exe to check for and install prerequisites such as the .NET Framework or SQL Server Express Edition.&nbsp; The published files can be copied to a CD, Web site, or network file share where users can download and install your application.&nbsp; ClickOnce can also easily update your application as you incorporate customer feedback and add features.<\/p>\n<p>I created a Web browser based on <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/a08t4ke7.aspx\">Creating Your First Visual Basic Program<\/a> and <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/bb820886.aspx\">Video How to: Creating Your First Visual Basic Program<\/a>.&nbsp; Now, I&#8217;ll show you how to use the Publish Wizard in Visual Basic 2008 Express Edition to deploy this application to a network file share.&nbsp; <\/p>\n<p>1. In <strong>Solution Explorer<\/strong>, right-click the solution name and click <strong>Publish<\/strong>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/sol.jpg\"><img decoding=\"async\" height=\"314\" alt=\"sol\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/sol_thumb.jpg\" width=\"171\" border=\"0\"><\/a><\/p>\n<p>You&#8217;ll see the <strong>Publish Wizard<\/strong> open.<\/p>\n<p>2. Type the location where you want Visual Studio to copy the files, and click <strong>Next<\/strong>. This location is called the Publish Location.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/sol2.jpg\"><img decoding=\"async\" height=\"222\" alt=\"sol2\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/sol2_thumb.jpg\" width=\"513\" border=\"0\"><\/a> <\/p>\n<p>3. Type the location where your end users will install your application from, and click <strong>Next<\/strong>.&nbsp; This location is called the Install Location. These two locations are separate in case you do not have write access to the network file share.&nbsp; In that case, you would copy the files to your local computer, and an administrator would copy the files to the network file share.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_2.png\"><img decoding=\"async\" height=\"244\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb-1.png\" width=\"522\" border=\"0\"><\/a> <\/p>\n<p>4. Choose where the application is going to be run from, and click <strong>Next<\/strong>. If you select &#8220;available online or offline,&#8221; the application is installed onto the end user computer.&nbsp; If you select &#8220;only available online only,&#8221; the application is run from the Install Location.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_4.png\"><img decoding=\"async\" height=\"194\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_1-1.png\" width=\"523\" border=\"0\"><\/a> <\/p>\n<p>5. In the final screen of the Publish Wizard, click <strong>Finish<\/strong>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_6.png\"><img decoding=\"async\" height=\"196\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_2.png\" width=\"528\" border=\"0\"><\/a> <\/p>\n<p>6. Open the network file folder, and verify that all the files are copied there.&nbsp; End users can open the Browser.application, publish.htm, or setup.exe files to start the installation.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_12.png\"><img decoding=\"async\" height=\"200\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_5.png\" width=\"527\" border=\"0\"><\/a> <\/p>\n<p>For step-by-step instructions about how to publish to a Web site or CD, see <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/31kztyey.aspx\">How to: Publish a ClickOnce Application<\/a>.&nbsp; <\/p>\n<p>OK, let&#8217;s test the installation.&nbsp; <\/p>\n<p>7. Open file location where the application installer is located.&nbsp; <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_14.png\"><img decoding=\"async\" height=\"173\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_6.png\" width=\"337\" border=\"0\"><\/a> <\/p>\n<p>8. In the publish.htm file, click <strong>launch<\/strong> or <strong>Install<\/strong>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_16.png\"><img decoding=\"async\" height=\"275\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_7.png\" width=\"469\" border=\"0\"><\/a> <\/p>\n<p>You&#8217;ll see the <strong>Launching Application<\/strong> dialog box appear momentarily.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_18.png\"><img decoding=\"async\" height=\"130\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_8.png\" width=\"391\" border=\"0\"><\/a> <\/p>\n<p>9. In the ClickOnce Trust Prompt, click <strong>Install<\/strong>.&nbsp; If you don&#8217;t want your users to see this prompt, you can sign your solution with a code-signing certificate.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_20.png\"><img decoding=\"async\" height=\"250\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_9.png\" width=\"473\" border=\"0\"><\/a> <\/p>\n<p>10. Test your application.<\/p>\n<p>In the Visual Basic Browser application that I created, I entered <a href=\"http:\/\/www.microsoft.com\/\">http:\/\/www.microsoft.com<\/a> and clicked <strong>Go!!!!!!<\/strong> to see my application work successfully on my test computer.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/7\/2019\/02\/image_24.png\"><img decoding=\"async\" height=\"173\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/vbteam\/wp-content\/uploads\/sites\/7\/2008\/10\/image_thumb_11.png\" width=\"602\" border=\"0\"><\/a> <\/p>\n<p>These instructions apply to the Visual Basic and Visual C# Express Editions.&nbsp; The Visual C++ Express Edition development environment doesn&#8217;t have the ClickOnce Publish Wizard, but you can perform the steps in the Visual Studio command prompt. For more information, see <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms235287.aspx\">ClickOnce Deployment for Visual C++ Applications<\/a>.<\/p>\n<p>Enjoy deploying your applications!<\/p>\n<p>Mary Lee, Programming Writer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say that you&#8217;ve developed an application using the free Visual Studio Express Edition. Now, you want to deploy your application to the masses, and you read documentation about How to: Create or Add Deployment Projects. Here&#8217;s how the topic starts: To create a new deployment project On the File menu, point to Add, then [&hellip;]<\/p>\n","protected":false},"author":260,"featured_media":8818,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21,195],"tags":[48,56,100,165,166],"class_list":["post-3953","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-im-a-vb","category-visual-basic","tag-clickonce","tag-deployment","tag-mary-lee","tag-vb2005","tag-vb2008"],"acf":[],"blog_post_summary":"<p>Let&#8217;s say that you&#8217;ve developed an application using the free Visual Studio Express Edition. Now, you want to deploy your application to the masses, and you read documentation about How to: Create or Add Deployment Projects. Here&#8217;s how the topic starts: To create a new deployment project On the File menu, point to Add, then [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/3953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/users\/260"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/comments?post=3953"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/3953\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media\/8818"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media?parent=3953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/categories?post=3953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/tags?post=3953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}