This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: how can i detect wheter .net framework 3.5 is installed within installshield2008?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2008
06:27 PM
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...:)
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...:)
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2008
08:18 PM
Did you have a
before the RegDBKeyExist call?
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
before the RegDBKeyExist call?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2008
08:52 PM
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
#define dotnet35_key "Software\\Microsoft\\.NETFramework\\v3.5"
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (RegDBKeyExist (dotnet35_key) < 0)then.....
thanx a lot,DanGalender
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
03:27 PM
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;
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;