SQL Express 2005 SP3 INI - 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!

Firefly
Posts: 9
Joined: Tue May 11, 2010 9:37 am

SQL Express 2005 SP3 INI

I'm trying to get SQL Express 2005 SP3 install as a prerequisite before the main application is installed. I've added the built in prerequisite and the SQL installation runs, however I can't seem to get it to find the configuration .INI file that I specify in the command line. I've made the installer a Bootstrapper which includes the files inside and I then used extraction path so that I can give a full path in the command line to the ini file. I also have setup a custom dialog which accepts a path for SQL to be installed to, and another for the SQL Instance name. I think these are setup ok but will know for sure after I get the INI file command line stuff sorted out.

The command line I'm using at the moment for the SQL setup.exe is:
/qf /settings "[AppDataFolder][|Manufacturer]\[|ProductName]\install\m_template.ini" /SQLSERVERNAME="[SQLINSTANCENAME]" /INSTALLDIR="[SQLDIR]"
I'm not sure if thats the correct way to use the properties, etc. but SQL gives an error saying invalid INI file or file doesn't exist.

Thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SQL Express 2005 SP3 INI

Hi,
[AppDataFolder][|Manufacturer]\[|ProductName]\install\m_template.ini
I see you are using the above path to reference the INI file. The question I have is if the INI file is installed by the setup package? If so you must understand
that the file will no be available because, as you said, the prerequisite is installed before the main package (if it is set as global).

What you can try is to make the prerequisite feature-based (in Options tab) or to add the INI file as an additional resource in "Files" tab.
/SQLSERVERNAME="[SQLINSTANCENAME]" /INSTALLDIR="[SQLDIR]"
I also observed the usage of public properties. Please note that global prerequisites can use only pseudo-formatted values, not formatted.

If you want to get the value of a public property at run-time you need the prerequisite to be feature-based.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Firefly
Posts: 9
Joined: Tue May 11, 2010 9:37 am

Re: SQL Express 2005 SP3 INI

The prerequisite is feature based and the .ini file isn't part of the SQL install, it's a file outside next to the setup and I have included it in the Files tab for the prereq along with the rest of the setup files for SQL.

The [SQLINSTANCENAME] and [SQLDIR] I have setup in "Install Parameters" under Properties and have linked them to a dialog.

Any other suggestions?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SQL Express 2005 SP3 INI

Hi,
The prerequisite is feature based and the .ini file isn't part of the SQL install, it's a file outside next to the setup and I have included it in the Files tab for the prereq along with the rest of the setup files for SQL.
Can you please check the existence of the INI file when your prerequisites asks for it? Maybe it is placed in another location, different from the one you specified in the command-line field.
The [SQLINSTANCENAME] and [SQLDIR] I have setup in "Install Parameters" under Properties and have linked them to a dialog.
In this case their usage is correct.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Firefly
Posts: 9
Joined: Tue May 11, 2010 9:37 am

Re: SQL Express 2005 SP3 INI

The ini file is where it should be. I'm going to try just put all the command line parameters in manually without using an ini script and see if I can get that to work. I'll let you know how I go.

Cheers

Return to “Common Problems”