Problem:
InstallAware does not seem to correctly identify an existing instance of SQL2005 when an instance name other that the default 'SQLEXPRESS' has been used. As a result the MSI attempts to reinstall the default SQL Express instance when running setup again or performing an update.
Cause:
Since the MSI is looking for the default instance name instead of your modified instance name, MSI believes that SQLExpress has not been installed. This occurs because the correct name of the SQL Instance has not been updated in InstallAware's ‘CheckSQL2005’ script.
(Note that although InstallAware permits you to specify a change to the SQL instance name within the SQLExpress Application Runtime, it does not however propagate that name change over to the area of the MSI script responsible for specifying the instance name that is checked during reinstalls or patches. You must manually make this change yourself.)
Resolution and Detailed Explanation:
If you are changing the instance name being used by an SQLExpress installation to something other than the default instance name of ‘SQLEXPRESS’, then you must change the ‘CheckSQL2005’ script (located in the tabs along the top of MSIView screen) to correctly reflect the non default instance name that you have chosen to use. In this example instead of the using the default name of ‘SQLEXPRESS’ we are instead going to use ‘MYAPPSQLEXPRESS’.
In order to make this change, do the following:
Edit the first line of the CheckSQL2005 script so that it is checking for the correct service name. For example, the line containing the default Instance name that automatically created by InstallAware would read:
Code: Select all
Check Service State for MSSQL$SQLEXPRESS (write result into variable SQL2005)
The updated line (which reflects a customised instance name of ‘MYAPPSQLEXPRESS’) should instead therefore be:
Code: Select all
Check Service State for MSSQL$MYAPPSQLEXPRESS (write result into variable SQL2005)
Hope this explanation might serve to help others encountering this issue.
Steve
P.S. Many, many thanks to InstallAware guru
Jimo for his tireless efforts in helping me to see the ‘IA’ light.