cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
elmtree111
Level 5

how can i detect wheter .net framework 3.5 is installed within installshield2008?

I wanna use DOTNETFRAMEWORKINSTALLED to detect, but installshield 2008 doesn't have REGDB_KEYPATH_DOTNET_35 predefined constant. Can i define by myself and how to do that?

i also try this way, but it doesn't work, is there something wrong:
#define dotnet35_key "Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5"
if (RegDBKeyExist (dotnet35_key) < 0) then.....

thanks a lot for any help and idea...:)
Labels (1)
0 Kudos
(3) Replies
Dan_Galender
Level 10

Did you have a

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);


before the RegDBKeyExist call?
0 Kudos
elmtree111
Level 5

I modify it in this way, and it works!!!yeah:)

#define dotnet35_key "Software\\Microsoft\\.NETFramework\\v3.5"

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (RegDBKeyExist (dotnet35_key) < 0)then.....


thanx a lot,DanGalender
0 Kudos
RussiaWolf
Level 2

Not completely correct. I am using Installshield 12 on an installscript project and had to do the following:

declare dotnet35_key as a string and then:

dotnet35_key="Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5";
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (RegDBKeyExist (dotnet35_key) < 0)then
MessageBox("You must install the Microsoft .NET Framework 3.5 before you can continue this install.",WARNING);
exit;
endif;
0 Kudos