trying to install SQLexpress with my app - 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!

perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

trying to install SQLexpress with my app

I am trying to install SQLexpress with my app. I have setup a batch file to start the sqlexpress setup with the following command /qb /settings c:\temp\template.ini (command works with bat file) I have a cutom action that calls the batch file. When the batch file runs it starts SQLexpress and then I get an error that says another instance of installer is running... and the sqlexpress install quites.

anyone have any recommendations on methods of installing SQLEXPRESS (with template)

thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

My recommendation is to use prerequisites. You can read more about how to use prerequisites in AI here:
http://www.advancedinstaller.com/user-g ... tware.html

Here is how to add SQLExpress as prerequisite: Switch to "Prerequisites->Software" page, choose "New..." and select the SQLExpress setup file (SQLEXPR32.EXE). Use following options for this prerequisite:

Command Line: -q /norebootchk /qn reboot=ReallySuppress addlocal=all instancename=INSTANCE_NAME SECURITYMODE=SQL SAPWD=Password SQLAUTOSTART=1

As "Install Conditions" specify:
1. Criteria: Registry value exist
Registry Value: HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\INSTANCE_NAME
2. Criteria: Registry key exist
Registry Key: HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\INSTANCE_NAME

Also you can specify all SQLExpress install options in a template.ini file and use following command line: -q /norebootchk /qn /settings template.ini (add template.ini file in the "Files" tab of the "Edit Prerequisite" dialog).

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

eror message

when using the -q /norebootchk /qn /settings template.ini command i get an error saying "After lauching all pachages required prerequisties are still missing. Press back to return to prequisites list."

SQLEXPRESS is not installing............

when i try this command /qb /settings template.ini
I get error - "invalid ini file, make sure the file exists, have access and has the correct entries"

the template.ini file has been added to edit prerequiste- files. Also the template has been tested and works when installed manually.
perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

If i change the command to /qb /settings d:\template.ini the install gets further along, however I get the follow error-
"An installation package for hte product microsoft sql server native client cannot be found try the installation again using a vaild copy of the installation package 'sqlncli.msi' , press OK, then the install goes for a couple of seconds then SQL Express will encouter a problem and error out. Then back to the same installer error..... some prerequisties are still missing
perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

One more time

OK-if i use this command- /qb /settings template.ini the install will fail, saying it can not find a vaild INI file.

if i change it to /qb /settings d:\template.ini it works. i have verified that the template.ini file IS has been added to the edit prerequiste- files and is located at root of the install folder- where the exe and msi get created. I need to make sure teh sql install can see the template file as some of the CD roms are D and some are E:

thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The problem is that the sqlexpr32.exe setup file only accept a full path for the /settings parameter. Even if you run this: sqlexpr32.exe /qb /settings template.ini from a command prompt you will see that the INI file is not found.

So my suggestion is pass directly the options from command line instead of using the /settings parameter. Like this: /qn addlocal=all instancename=INSTANCE_NAME SECURITYMODE=SQL SAPWD=Password SQLAUTOSTART=1.

Let me know how this works.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

Still not working

I have added the install commands to the command line, removed the template file. It is not reading the install commands. I tested my install commands by running the sqlexp install manually with them after the exe, it worked fine.

I cannot seem to get installer to us teh command line settings, they are showing up in the .ini file.

any thoughts?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In order to determine the problem please sent the AIP file (if not contain any confidential informations) or a similar test case reproducing this issue to support at advancedinstaller dot com.

Also please send the settings file (template.ini).

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: trying to install SQLexpress with my app

The error about the missing file isrelated to a bug in the SQLExpress. it sounds like you are trying to install 2005 SP2. You will have to uninstall the SQL Native Client first.

I haven't been able to get prereqs to work for ini files either.

Return to “Common Problems”