Steven,
I've moved away from teh approach of using a bootstrapper for the install of
SQLExpress and have included the logic in my application code to handle the
install. The logic was modeled after information in the article here:
http://msdn2.microsoft.com/en-us/library/bb264562.aspx The reason for making this change is the SQLExpress pre-requisite would be
dependent on a specific instance of SQLExpress, which obviously almost no
one would have, so I prefer to include the install file in the download of
hte application. Unfortunately, if I were to include the setup for
SQLExpress in the download file, I would also have to include the setups for
other pre-requisites as the "location for setup prerequisites" setting
applies to all -- meaning I would have to include the dotnetframework and
installer 3.1 packages when many people will not need them.
I have coded a command line parameter in my application that will invoke
code similar to what is mentioned in the article that checks for the
instance of SQLExpress and then installs if needed. Unfortunately, with the
limitation of not being able to run 2 msi packages simultaneously, using a
custom action to run the command line parameter causes the setup for
sqlexpress to fail.
For prior versions, I had been using InstallShield to install my product,
which includes the capability of launching the installed application at the
end of the install. That is what I would like to do is have the install
launch my application with a command line parameter, and then exit the msi
installer that I'm creating. This would result in the custom logic in my
applicationg that installs SQLExpress to work without failing.
I'm sorry if the explanation went a little long - I wanted to make sure what
I'm looking for was relatively clear.
[quoted text, click to view] "Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
news:VMu9Wo1PHHA.4020@TK2MSFTNGHUB02.phx.gbl...
> Hi Matt,
>
> As you said you're manually launch the SQLExpress package if
> necessary,correct? However, based on your previous threads ,you are using
> the VS 2005 setup project's bootstrapper/prerequisites feature to do the
> SQL Express deployment and this should occur before your own application
> start installation. Also, for those SQL Express instance detect, I've
> posted information on the conditional install detection for bootstrapper
> package in the previous thread, have you had a look at that or do you have
> any other concerns that make you unable to use that approach?
>
> Anyway, when using bootstrapper package to deploy prerequisites, after the
> prerequisites be installed, the setup process of it should end and then
> your main application's installation start. If you want to any further
> configuration on the created SQL Express instance, you can use a custom
> Action in your main application's setup program. This strength of this is
> that those initalization code logic does not need to be added into your
> main application's code logic.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>