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

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
Labels (1)
0 Kudos
(6) Replies
KEiGHT
Level 6

//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 ""
0 Kudos
flyywail
Level 2

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;
0 Kudos
ganesh2you
Level 5

Hi KEiGHT,

Thank you for the reply ...


Regards
Ganesh
0 Kudos
ganesh2you
Level 5

Hi flyywail,

Thank for the replied, I ill try this and let u know the result
0 Kudos
hidenori
Level 17

0 Kudos
ganesh2you
Level 5

Hi,
Thank you for the reply... Let me try out this

Regards,
Ganesh
0 Kudos