Setup project vb.net 2005




















How do you create the Setup file of VB. Posted Nov am Emanuel Mrindoko. Add a Solution. Accept Solution Reject Solution. The same as here. Posted Nov pm Scubapro. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? Now when we build and run the setup package we'll see this dialog in our wizard steps:.

Now that we have UI to capture the connection-string value entered by a user in the wizard, we want to make sure it is passed to our custom action class. We'll want to update the CustomActionData property value and pass in the connection-string of the database to use we'll pass in the value from the EDITA1 textbox in the user interface screen :. We can then update our custom action class to retrieve and use this connectionstring value to update the web.

Below is a method that opens the web. And now after we run the setup program our newly installed ASP. NET application's web. To learn more about how the ASP. Chris Crowe also has some useful samples that demonstrate how to use the System. You might also want to check out this MSDN documentation sample that demonstrates how to programmatically create a new database complete with schema and data with a custom action.

You could combine the approach in the MSDN article with the configuration one I used above to completely automate database deployment as part of your setup. Hopefully the above tutorial helps demonstrate how to get started with using the built-in web setup project support within Visual Studio.

Click here to download a complete version of the sample I built above. Web setup projects aren't perfect for all scenarios, and I'd primarily recommend them only for cases where you want a packaged GUI setup program for example: to give to an external customer or to make available as a download on a web-site. For an example of a really advanced Powershell script that www. One downside with the VS Web Setup Project support is that you can only build web setup projects from within the IDE - which means you can't completely automate the creation of.

If this is a showstopper for you, you should consider looking at the WIX setup framework - which does support this scenario. You can find a good set of WIX Tutorials here. If someone wants to publish a blog post that demonstrates how to perform the scenarios I outlined in the blog post above using WIX, let me know and I will definitely link to it and send you a few. NET books to say thanks! Please check out my ASP.

While I don't advocate the use of the limited Windows Installer project for Visual Studio, I will say that to correctly add custom actions extending the Installer class you should actually right-click on the top node, "Custom Actions", and follow the same procedure to add the DLL. This will add the CA to all of Install, Rollback, Commit, and Uninstall so that a correctly written Installer derivative that cleans itself up during uninstall or rollback will leave the machine state like it was before the install began such is the nature of a transactional installation engine like Windows Installer.

Thanks for posting this. I've never taken the time to look closely at the custom action stuff but this looks very straight forward and I may take another look at the packager for a couple of smaller things.

Good one, Scott! Hi Rick, Glad you found this post useful. If I have made it look straight forward, then I have really accomplished a miracle - cause it sure wasn't easy for me to figure out the official documentation on this is really poor and lacking!

Hopefully this post provides once central place that pulls together all of the different steps required in order to make it work, and can be a good guide for others trying to-do it. Thanks, Scott. Thanks for the detailed instruction of deplyment. I have never had such a requirement, But this might help in future. Hi Phil, Glad this post was useful!

I think it could make sense to build one of these for SubText, for example, to enable someone to install a blog on their web-site really easily. You could add logic inside your custom actions that keeps the database and any SubText skins still on the machine when you uninstall the application. That way when someone uninstalls versions 1 and installs version 1. Hope this helps, Scott. Remove From My Forums. Answered by:. Archived Forums. VS Web Deployment Projects. Sign in to vote. James and John, Herfried and Armin are talking about two different things.

Herfried is talking about the setup and deployment tools available in Visual Studio Net above Standard edition. Cor, it seems that page has been revised the first link you provided. In the original Product Compare page it showed the Express Editions not having any means of deployment. I found that out the first day that the Express Editions were made available. I guess someone finally got things straightened out. I will have to revise my statements regarding the mis-information that was on the original Product Comparison webpage.

And I really like the second link you give as it makes clear detailed differences between the different editions of VB. Thanks for the updated info Cor. Michael D. This system never had VS Beta on it so I know it's not a left over.

Mike Ober. Since you have smarts. How to I publish my web stie created in VS Express? Not being able to publish is like having a car with no wheels what good is it!!!!!

Is there a manual way to publish my web site??????? This discussion thread is closed Start new discussion. NET Framework. Visual Basic. Microsoft SQL Server. SQL Server setup problem. Setup questions. Project in VB. Net Professional Edition.



0コメント

  • 1000 / 1000