我想把.netframework2.0用Setup Factory打包在应用程序中,参考了
http://kissknife.cnblogs.com/archive/2006/04/02/364806.html
最下面的办法,但它所说的dotnet2_0.xml找不到,希望有的提供一下,谢谢

解决方案 »

  1.   

    http://www.indigorose.com/forums/search.php?searchid=282522
      

  2.   

    - <DependencyTemplate>
    - <Dependency>
      <Name>Microsoft .NET Framework 2.0</Name> 
      <RuntimeTempFolder>dotnet2_0</RuntimeTempFolder> 
      <RevisionDate>Wednesday, October 13, 2004</RevisionDate> 
      <Description>Type: Setup Factory 7.0 Dependency Module Created By: Cristian Lazar (13/01/2006) Last Revision: January 13, 2006 (001) Installs all the version 2.0 Microsoft .NET framework onto the user’s system. Applications and controls written for the .NET Framework version 2.0 require the .NET Framework Redistributable Package version 2.0 to be installed on the computer where the application or control runs. The .NET Framework redistributable package is available as a stand-alone executable file, Dotnetfx.exe. When this dependency module is included in your setup, it detects and installs the .NET Framework redistributable. Please note that if your application requires database support then MDAC2.6 or greater is also required. If you require this you can download our dependency module from the Setup Factory 7.0 Addons, Modules & More forum. Instructions: In order for the .NET module to be available and function correctly, Setup Factory expects the following: 1) A newly created folder in the "Dependencies" folder (where you unzipped "dotnet2_0.xml") called "dotnet2_0". 2) A copy of the Microsoft .NET Framework redistributable file (dotnetfx.exe) located in the "dotnet2_0" directory mentioned above. The .NET installation file can be downloaded from the following URL: http://www.microsoft.com/downloads/d...displaylang=en For more information about .NET 2.0, please see: Full Version 2.0: 32Bit http://download.microsoft.com/downlo...a/dotnetfx.exe 64 Bit: http://download.microsoft.com/downlo...0a/NetFx64.exe (64bit above has both 64 bit and 32bit redists in one package.)</Description> 
      

  3.   

    <DetectScript>function isDotNet_Installed() -- Output to the log that the .NET detection has started. SetupData.WriteToLogFile("Success\t.NET 2.0 Module: Detection script started.\r\n", true); -- Get the operating system name. strOSName = System.GetOSName(); -- Check to make sure the operating system is not Windows 95. if (strOSName ~= "Windows 95") then --Check to see if the registry key exists DotNet_Registry = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\.NETFramework"); if (DotNet_Registry == nil) then -- The registry key does not exist -- Run the .NET Installation script -- Output to the log file that .NET could not be found, so it will be installed. SetupData.WriteToLogFile("Info\t.NET 2.0 Module: No version of .NET 2.0 was found. .NET 2.0 will be installed.\r\n", true); return false; else -- The key does exist -- Get the .NET install location from the registry DotNet_Install_Location = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\.NETFramework", "InstallRoot", true); -- Look for the file mscorcfg.dll Does_File_Exist = File.Find(DotNet_Install_Location.."\\v2.0.50727\\ ", "aspnet_rc.dll", true, false, nil); if (Does_File_Exist == nil) then -- The file does not exist -- Run the .NET Installation script -- Output to the log file that .NET could not be found, so it will be installed. SetupData.WriteToLogFile("Info\t.NET 2.0 Module: No version of .NET 2.0 was found. .NET 2.0 will be installed.\r\n", true); return false; else -- The file does exist -- Get the version of mscorcfg.dll msc_ver = File.GetVersionInfo(Does_File_Exist[1]); -- Compare the returned value against the needed value Compare = String.CompareFileVersions(msc_ver.FileVersion, "2.0.50727.42"); if (Compare == 0 or Compare == 1) then -- .net version 2.0 is installed already return true; else -- a version less than version 2.0 is installed -- Output to the log file that a lesser version of .NET was found on the system SetupData.WriteToLogFile("Info\t.NET 2.0 Module: A lesser version of .NET 2.0 was found on the users system.\r\n", true); return false; end end end else --.NET 2.0 isn't supported on the OS that was detected. -- Output to the log that .NET 2.0 isn't supported on the current OS. SetupData.WriteToLogFile("Info\t.NET Module: .NET 2.0 is not supported on "..strOSName.." and will not be installed.\r\n", true); -- .NET 2.0 should not be installed. return true; end end</DetectScript> 
      

  4.   

    有没有dotnet1_1.xml的代码,麻烦给我发一个
    [email protected]
    [email protected]
    谢谢