Sep 04, 2012
04:26 AM
I use this command line in my installscript, but it is for windows server 2008 R2, I did not find it for windows 7. LaunchAppAndWait (System64Folder^"ocsetup.exe", " NetFx3 ", WAIT);
... View more
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;
... View more
Latest posts by flyywail
Subject | Views | Posted |
---|---|---|
923 | Sep 04, 2012 04:26 AM | |
1316 | Jun 04, 2012 03:36 AM |
Activity Feed
- Posted Re: Enabling .Net 3.5 on Windows Server 2008 R2 on InstallShield Forum. Sep 04, 2012 04:26 AM
- Posted Re: Installation .Net framework ( v3.5) throw install shield on InstallShield Forum. Jun 04, 2012 03:36 AM