cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Pilgrim

Compiler error trying to check if .NET 3.5 SP 1 is installed

In an InstallScript project, I'm trying to determine if Service Pack 1 of the .NET framework 3.5 is installed.

I get a compile error C8038 - "numeric value required" on the following line:

nResult = Is (DOTNETSERVICEPACKINSTALLED, 1|REGDB_KEYPATH_DOTNET_35);

I can't figure out what's wrong with the syntax.
Labels (1)
0 Kudos
2 Replies
Pilgrim

Re: Compiler error trying to check if .NET 3.5 SP 1 is installed

The second argument to Is wants to be a string; I haven't tried it, but maybe

"1|" + REGDB_KEYPATH_DOTNET_35

is more like it?
0 Kudos
Pilgrim

Re: Compiler error trying to check if .NET 3.5 SP 1 is installed

Yup, that solved it.

Thanks a lot for your response!
0 Kudos