Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / June 2007

Tip: Looking for answers? Try searching our database.

Setup project also create a database?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sam - 21 Jun 2007 16:32 GMT
Hi,

First off, I will put out there this is the first time working w/ a
setup project, so I'm very novice.

I've got a Solution that has a deploy project, a Web Site, and a Setup
project.

The setup project is working to install it to my localhost.

What I would like the installer to do is to create a database and run
scripts on a SQL Server location specified by the user.  Is there a
way I can add this code to do something like this

Thanks,
Sam
Phil Wilson - 21 Jun 2007 18:42 GMT
Look up custom actions. That's the usual way to run code during an install.

However normal this may appear,  it's often a bad idea. You have to worry
about new versions of your app, what to do if your code fails and the setup
rolls back leaving a partially created database, or the database gets
deleted and you can't restore it unless you reinstall the product. It's
usually easier to create the database as the first step when your app first
runs.
Signature

Phil Wilson
[Microsoft MVP Windows Installer]

> Hi,
>
[quoted text clipped - 12 lines]
> Thanks,
> Sam

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.