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