SQL Svr Express Conditions - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

GSchaller
Posts: 30
Joined: Tue Aug 28, 2007 2:07 am

SQL Svr Express Conditions

I've read a few threads on this subject but I am still confused about what to do. I need to install a user instance of Sql Express if missing and understand two installers will not run simultaneously so I am providing a first-time install and subsequent installs.

The first time install needs to do a custom action at the end of the install to check for the existence of the user instance (via registry key which I know) but the custom action doesn't seem to offer this. I will supply the install exe on the CD or even in the install package.

The subsequent install must run sql scripts so I need to prevent the installer from even starting based on the existence of the same key above. I will then tell them via a dialog to run the first-time installer first.

Can someone step me through this please? I have V5.2

Thanks,

Geoff
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Geoff

Had the same problem myself, but with a combination of the help file, excellent support from the AI people themselves I have decided upon the following approach myself.

You presumably have SQL Express installed yourself, so you could make use of it's unique guid which will be stored in the windows installer database on the target machine if it has been installed on it.

On thr pre-requisites tab click on the software page and select new.
In the select file dialog that pops up find the copy of the sql express installer that you want to bundle.
Then in the new prerequisite dialog that pops up select the install conditions tab.
In the searches section click new and the in the new search dialog in the criteria dialog select 'Product version(identify by product code).
In the product code line click the elipsis and find the relevant product code.
Click OK and then set any options you want associated with this on the other tabs and click OK.

The installer will now do a search for the Presence of SQL EXpress and if not found propmt for an install. IF found you could go on and do a search for a specific instance.

Hope this helps, but more importantly if there are better ways that anyone knows to do this please post and tell everyone.

Dom

PS I have a habit of bundling installs up into a self extracting zip file to aid dowloads. If you do something along these lines make sure that you point to the exe file after unzipping NOT the msi file.
GSchaller
Posts: 30
Joined: Tue Aug 28, 2007 2:07 am

Thanks Dom,

This got me started. I can at least detect and force the SQL Express install to start but for some reason, it doesn't wait. It gets up to he main part of the SQL Express install and then quits and returns to the Advanced Installer package. If I run the command line separately, the SQLExpr install goes flawlessly. I'm missing something but not sure what....

I based the lookup on the registry key existence that has the instance name in and this is successful. I now just need to force the package to wait properly for this install.

Geoff
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Geoff,

The problem seems to be caused by a bug in the AI bootstrapper which has already been fixed - the command line for the Prerequisites was not parsed correctly.

The fix will be present in version 5.2.1 which will be available soon.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
GSchaller
Posts: 30
Joined: Tue Aug 28, 2007 2:07 am

ok, Thanks for the good news.

Geoff

Return to “Common Problems”