How does IA determine if SQL Express is already installed?

Got a problem you cannot solve? Try here.
Post Reply
Steve
Posts: 117
Joined: Fri Jun 16, 2006 9:51 pm
Location: Canada eh

How does IA determine if SQL Express is already installed?

Post by Steve »

Hoping that someone can tell how me how the IA's SQLExpress 2005 'Application Runtime' determines if SQL Express 2005 has already been installed on a workstation.
I need to know this because I have a machine on which SQL Express has been uninstalled, however when I run my InstallAware setup (which includes the SQLExpress 2005 Application Runtime), it will not reinstall SQL Express.
I imagine that InstallAware is checking the Windows Registry for the presence of a specific entry, however I cannot determine what registry entry InstallAware is looking for in order to determine this.

If I understood how IA determines whether or not to run the SQL Express installation, then I could devise a workaround

Any help would be greatly appreciated.
Thanks,
Steve
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

The default scripts check for the service name, unless you customized them.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Steve
Posts: 117
Joined: Fri Jun 16, 2006 9:51 pm
Location: Canada eh

Post by Steve »

Hi Michael,
Thanks for the quick reply.
Can you please tell me how/where it checks for the service name. I cannot find anything is my project that indicates where the script does this. Is it looking for this information in the Registry somewhere and if so, where is the registry key located?

Thanks in advance
Steve
ulrichard
Posts: 150
Joined: Thu Dec 27, 2007 5:45 am
Location: Switzerland
Contact:

Post by ulrichard »

Hi Steve,

check the script "checksql2005" that was automatically added to your project.
The first line checks if a windows service by a given name is installed. I guess, it does this with the windows service API without directly reading the registry.

Rgds
Richard
http://www.pointline.com
http://www.paraeasy.ch
http://ulrichard.ch
Post Reply