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
- :
- Installation .Net framework ( v3.5) throw install shield
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
‎May 14, 2012
01:00 AM
Installation .Net framework ( v3.5) throw install shield
Hi All,
The requirement is to install .Net framework ( v3.5) in x32 and x64 bit PC, Is possible to install throw "install shield script project" ?, If yes, kindly let me know the steps to do it...
Regards,
Ganesh
The requirement is to install .Net framework ( v3.5) in x32 and x64 bit PC, Is possible to install throw "install shield script project" ?, If yes, kindly let me know the steps to do it...
Regards,
Ganesh
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 23, 2012
12:57 PM
//Take this as example
------------------------
#include "ifx.h"
#define SOURCE_FILES SRCDIR
#define VISUALS "Support\\Redistributable\\vcredist_x86_en.exe"
#define CMD_LINE1 " /silent /v/q"
STRING svResult,szKeyRoot;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKeyRoot = "SOFTWARE\\Microsoft\\VisualStudio\\10.0\\VC\\VCRedist\\x86";
//Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
if (RegDBKeyExist (szKeyRoot)<0) then
LaunchApplication ( VISUALS , CMD_LINE1 , SOURCE_FILES , SW_SHOW , 1000000 , WAIT | LAAW_OPTION_SHOW_HOURGLASS);
endif;
end;
--------
Legend* CMD_LINE1 is only if you want to install it in silent mode, otherwise you should leave as NULL STRING like this ""
------------------------
#include "ifx.h"
#define SOURCE_FILES SRCDIR
#define VISUALS "Support\\Redistributable\\vcredist_x86_en.exe"
#define CMD_LINE1 " /silent /v/q"
STRING svResult,szKeyRoot;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKeyRoot = "SOFTWARE\\Microsoft\\VisualStudio\\10.0\\VC\\VCRedist\\x86";
//Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
if (RegDBKeyExist (szKeyRoot)<0) then
LaunchApplication ( VISUALS , CMD_LINE1 , SOURCE_FILES , SW_SHOW , 1000000 , WAIT | LAAW_OPTION_SHOW_HOURGLASS);
endif;
end;
--------
Legend* CMD_LINE1 is only if you want to install it in silent mode, otherwise you should leave as NULL STRING like this ""
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2012
03:36 AM
you can mark it in application data->redistributables,
but for windows 7 and windows 2008, the .net framework 3.5 is in the system package, you only need to enable the feature.
I only find the command line in windows 2008 as following.
#define NET_FRAMEWORK3 "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v3.0\\Setup"
function BOOL InstallNetFramework3()
int nResult, nType, nSize;
string nInstallResult;
begin
nResult = RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (nResult < 0) then
exit;
endif;
nResult = RegDBGetKeyValueEx(NET_FRAMEWORK3,"InstallSuccess", nType, nInstallResult, nSize);
if (nResult < 0) then
SprintfMsiLog("Information: There is no .net framework 3.0 in this machine.");
if (SYSINFO.nOSMajor = 6 & SYSINFO.nOSMinor = 1) then
if SYSINFO.nOSProductType = VER_NT_WORKSTATION then
// Windows 7
//SprintfMsiLog("Information: install .net framework 3.0 on windows 7.");
//MessageBox("You must use \"Turn Windows features on or off\" in the Control Panel to install or configure Microsoft .NET Framework. ", INFORMATION);
else
// Windows 2008 R2
SprintfMsiLog("Information: install .net framework 3.0 on windows server 2008 R2.");
nResult = LaunchAppAndWait (System64Folder^"ocsetup.exe", " NetFx3 ", WAIT);
endif;
endif;
endif;
return 0;
end;
but for windows 7 and windows 2008, the .net framework 3.5 is in the system package, you only need to enable the feature.
I only find the command line in windows 2008 as following.
#define NET_FRAMEWORK3 "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v3.0\\Setup"
function BOOL InstallNetFramework3()
int nResult, nType, nSize;
string nInstallResult;
begin
nResult = RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (nResult < 0) then
exit;
endif;
nResult = RegDBGetKeyValueEx(NET_FRAMEWORK3,"InstallSuccess", nType, nInstallResult, nSize);
if (nResult < 0) then
SprintfMsiLog("Information: There is no .net framework 3.0 in this machine.");
if (SYSINFO.nOSMajor = 6 & SYSINFO.nOSMinor = 1) then
if SYSINFO.nOSProductType = VER_NT_WORKSTATION then
// Windows 7
//SprintfMsiLog("Information: install .net framework 3.0 on windows 7.");
//MessageBox("You must use \"Turn Windows features on or off\" in the Control Panel to install or configure Microsoft .NET Framework. ", INFORMATION);
else
// Windows 2008 R2
SprintfMsiLog("Information: install .net framework 3.0 on windows server 2008 R2.");
nResult = LaunchAppAndWait (System64Folder^"ocsetup.exe", " NetFx3 ", WAIT);
endif;
endif;
endif;
return 0;
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2012
12:11 AM
Hi KEiGHT,
Thank you for the reply ...
Regards
Ganesh
Thank you for the reply ...
Regards
Ganesh
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2012
12:13 AM
Hi flyywail,
Thank for the replied, I ill try this and let u know the result
Thank for the replied, I ill try this and let u know the result
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 27, 2012
03:05 PM
We just released a new InstallShield prerequisite for .NET Framework 3.5 SP1:
Q210041: InstallShield Prerequisites for .NET Framework 3.5 SP1 on Windows 7 and Later, Windows Server 2008 R2 and Later
Q210041: InstallShield Prerequisites for .NET Framework 3.5 SP1 on Windows 7 and Later, Windows Server 2008 R2 and Later
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 10, 2012
01:56 AM
Hi,
Thank you for the reply... Let me try out this
Regards,
Ganesh
Thank you for the reply... Let me try out this
Regards,
Ganesh
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)