PDA

View Full Version : .net framework 2 would not install before sql2005 express



NewsArchive
04-14-2010, 01:09 AM
Hi,

somehow I can not get my install script working so that
..net frame 2 is installed before sql2005 express.

I am using this piece of script:

Set Variable %DOTNET2% to FUNCTION:Get System Info(.NET Status) for
"$NET_FRAMEWORK_20$"
If %DOTNET2% Equals "0" Then
#include script "rt_dotnetframework2_x86.sbi" [Custom Configuration]
Display Message Box "Error: %_SB_ERRORCODE%" -- ".NET FRAMEWORK 2"
End

Display Message Box "Installing Microsoft SQL server 2005 Express...\n\..."
-- "Installing Microsoft SQL Server 2005 Express..."
#include script "rt_sql2005expr.sbi" [Custom Configuration]

The errorcode returned from the .net2 install is 0.

Is there something wrong with my script code?

Regards,
P.

NewsArchive
04-14-2010, 01:09 AM
Patriek,

> The errorcode returned from the .net2 install is 0.
>
> Is there something wrong with my script code?

I would not check %_SB_ERRORCODE% here. This gives the return code for a
function, but you would like to get the results from an include script
(a collection of functions).

I would suggest to check the %DOTNET2_RETURNCODE% and %DOTNET2_INSTALLIT%
variable values.

Return Codes : %DOTNET2_RETURNCODE%
: 0 = success
: 3010 = success and reboot required; any other value =
failure
: -1 = unknown exit code
: X = any other value = failure
:
: %DOTNET2_INSTALLIT%
: 1 = install executed
: -1 = not installed
: -2 = user cancelled
: -1000 = operating system not supported

Hope this helps.

Friedrich

NewsArchive
04-14-2010, 01:10 AM
> I would suggest to check the %DOTNET2_RETURNCODE% and %DOTNET2_INSTALLIT%
> variable values.
>
> Friedrich

Hi Friedrich,

I found the source of my prob: the machine is a windows XP OS with
servicepack 3 (three) installed. However in the include script it does say
that is requires SP2!

Can I change this to be 2 or higher or does the install script goes haywire
or messes things up?

Regards,
P.

NewsArchive
04-14-2010, 01:11 AM
I did change that piece of code and it worked!

regards,
P.

NewsArchive
04-14-2010, 01:11 AM
Hi Patriek,

> I found the source of my prob: the machine is a windows XP OS with
> servicepack 3 (three) installed. However in the include script it does say
> that is requires SP2!

Yes, and that is correct <g>

The Microsoft .NET Framework does not officially support XP SP3.

"Supported Operating Systems: Windows 2000 Service Pack 4; Windows Server
2003; Windows XP Service Pack 2"

http://www.lindersoft.com/forums/showthread.php?t=22348

Friedrich