cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Deepa_Bhat
Level 3

Launch SQL Server 2012 SP1 from Installshield

I always get below error when I try to launch SQL Server 2012 from Installshield 2013 with SP1.

Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: SetSqlClrEnabled, location: C:\Program Files\Microsoft SQL Server\100\Tools\Binn\osql.exe, command: -S localhost\VIJEOHISTORIAN -E -Q "EXEC sp_configure 'clr', 1; RECONFIGURE"

Can anyone help me on this ?

Its urgent
Labels (1)
0 Kudos
(3) Replies
rguggisberg
Level 13

I think
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\osql.exe
should be
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\osql.exe
0 Kudos
Deepa_Bhat
Level 3

Thank you for reply..

I tried the above approach as well. But no luck.

Below is the code snippet I am using to install the SQL Server 2012.

if (LaunchAppAndWait(sSQLInstallExe, sCommandLineArgs ,LAAW_OPTION_WAIT|LAAW_OPTION_SHOW_HOURGLASS|LAAW_OPTION_WAIT_INCL_CHILD|LAAW_CALLBACK_RETURN_CONTINUE_TO_WAIT) < 0) then
MessageBox("There was a problem launching SQL Server 2012 installation.", SEVERE);
else
processID = LAAW_PROCESS_INFORMATION.dwProcessId;
NumToStr(pID, processID);
nType = REGDB_NUMBER;
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (sVersionNT = sVersionNT64) then // 64 bit
if(RegDBSetKeyValueEx(sRegKey64, "ProcessID", nType, pID, nSize) = 0) then
//MessageBox("Able to set the key.", INFORMATION);
endif;
else // 32 bit
if(RegDBSetKeyValueEx(sRegkey32, "ProcessID", nType, pID, nSize) = 0) then
//MessageBox("Able to set the key.", INFORMATION);
endif;
endif;
abort;
endif;

NOTE: It is not working in Win 8.1 machine.

Please suggest
0 Kudos
Deepa_Bhat
Level 3

abort and Error_Install_Failure function are not working in Windows Server R2.

Can anybody help what function I can use to replace abort in installer (Installshield 2013)?
0 Kudos