I am like that, when installation installed to detect whether the framework and good stand-alone database,
This write error,
[code]
The function CheckDotNet4_0 () : a Boolean;
The begin
In registry key HKLM, Result:=not RegKeyExists (' SOFTWARE\Microsoft\.NET Framework \ policy \ v4.0 ');
end;
The function InitializeSetup () : a Boolean;
Var Path: string;
The ResultCode: Integer;
The begin
If CheckDotNet4_0 () then
The begin
ExtractTemporaryFile (' dotNetFx40_Full_x86_x64. Exe);
The Exec (ExpandConstant (' {TMP} \ dotNetFx40_Full_x86_x64 exe '), ' ', ' ', SW_SHOWNORMAL, ewWaitUntilTerminated, the ResultCode);
The end;
Result:=true;
end;
Var Path: string;
The ResultCode: Integer;
The function CheckLocalDB () : a Boolean;
The begin
In registry key HKLM, Result:=not RegKeyExists (' SOFTWARE \ Microsoft \ Microsoft SQL Server Local DB \ Installed Versions 12.0 \ ');
end;
The begin
If CheckLocalDB () then
The begin
ExtractTemporaryFile (' SqlLocalDB_2014_32bit. Msi);
The Exec (ExpandConstant (' {TMP} \ SqlLocalDB_2014_32bit msi '), ' ', ' ', SW_SHOWNORMAL, ewWaitUntilTerminated, the ResultCode);
The end;
Result:=true;
end;
CodePudding user response:
https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installedHKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MSSQLSERVER