May 11, 2011 01:58 PM
Partial Silent Install
My installation requires prerequisites for SQL Server and .Net 3.5. Most users have .Net 3.5 but most do not have SQL Server. The installation of SQL Server takes a long time and goes through a large number of diaologs. What I would like to do is a silent install of just the prerequisites (showing only progress) and then continue a non silent install of my application. Any ideas on how I might do this? /q can be added to the prerequisite installation command but only if the entire installation is silent.
Thanks in advance.
Thanks in advance.
May 18, 2011 02:34 PM
this is why i don't use pre-reqs from InstallShield. We use the real thing from MS, and I CAN do a quiet installation, even in my NON SILENT installation.
SdShowMsg("Installing SQL Server Express 2005. This may take several minutes. Please be patient.", TRUE);
if (SYSINFO.bIsWow64) then
szProgram = SRCDIR ^ SD_PREREQS ^ "en_sql_server_2005_express_edition_sp2_x64.exe";
szProgram = SRCDIR ^ SD_PREREQS ^ "en_sql_server_2005_express_edition_sp2_x32.exe";
szCmd = "/qn ADDLOCAL=all REBOOT=ReallySuppress DISABLENETWORKPROTOCOLS=2 SQLAUTOSTART=1 SECURITYMODE=SQL SAPWD=123";
nResult = LaunchAppAndWait(szProgram, szCmd, LAAW_OPTION_WAIT);
if (nResult < 0) then
SdShowMsg("Installing SQL Server Express 2005. This can take several minutes. Please be patient.", FALSE);
MessageBox ( SQLSERVEREPRESS_INSTALL_FAILED, SEVERE );
May 31, 2011 01:49 PM
@dhofferber: If the setup believes it should run prerequisites silently (such as when it's running silent itself), it will use the silent command line to launch the prerequisite. However there's absolutely nothing which prevents the silent command line from running a prerequisite with its full UI or the (non-silent) command line from running a prerequisite silently.