Difference between revisions of "Microsoft .NET Framework"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (typo)
Line 193: Line 193:
 
</source>
 
</source>
  
 +
=Microsoft .NET Framework 4=
 +
Download from http://www.google.fr/url?sa=t&rct=j&q=dotnetfx40_full_x86_x64.exe&source=web&cd=2&ved=0CCoQFjAB&url=http%3A%2F%2Fwww.microsoft.com%2Fdownload%2Fen%2Fdetails.aspx%3Fid%3D17718&ei=pM4FT-eRLIaA4gSm_6mCCQ&usg=AFQjCNEyv0PE3TW5uFX-YaNxjr8dG3UDrQ
 +
 +
<source lang="xml">
 +
<package id="dotnetfx4" name="Microsoft .NET Framework 4" revision="1" priority="0" >
 +
<check type='logical' condition='or'>
 +
  <check type="uninstall" condition="exists" path="Microsoft .NET Framework 4 Extended" />
 +
  <check type='file' condition='exists' path='%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe' />
 +
</check>
 +
<install cmd='xcopy "%SOFTWARE%\Microsoft\dotNetFramework\dotNetFx40_Full_x86_x64.exe" c:\dotNetInstallers\ /c /r /y /q' />
 +
<install cmd='c:\dotNetInstallers\dotNetFx40_Full_x86_x64.exe /norestart /passive' >
 +
  <exit code="0" />
 +
  <exit code="194" reboot="true" />
 +
  <exit code="1603" />
 +
  <exit code="3010" reboot="true" />
 +
</install>
 +
<install cmd='rmdir c:\dotNetInstallers /S /Q' />
 +
<update cmd='xcopy "%SOFTWARE%\Microsoft\dotNetFramework\dotNetFx40_Full_x86_x64.exe" c:\dotNetInstallers\ /c /r /y /q' />
 +
<update cmd='c:\dotNetInstallers\dotNetFx40_Full_x86_x64.exe /norestart /passive' >
 +
  <exit code="0" />
 +
  <exit code="194" reboot="true" />
 +
  <exit code="1603" />
 +
  <exit code="3010" reboot="true" />
 +
</update>
 +
<update cmd='rmdir c:\dotNetInstallers /S /Q' />
 +
<remove cmd='MsiExec.exe /qn /X{8E34682C-8118-31F1-BC4C-98CD9675E1C2}' />
 +
</package>
 +
</source>
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]
 
[[Category:Microsoft software]]
 
[[Category:Microsoft software]]

Revision as of 16:32, 5 January 2012

The .NET Framework (pronounced dot net) is a software framework. See Microsoft's .NET page and Wikipedia.

Notes

The offline installer will try to go online to get language packs if it decides you need them. You can disable this behaviour with the "/lang:ENU" flag (for US English).

Another way to run the .NET installer is to extract the contents of dotnetfx.exe, and then invoke the install directly using the /q switch (this also saves a bit of time for the clients).


Microsoft .NET Framework 1.1

This is a silent installer for Microsoft .NET Framework. Download the installer from here.

<package id="dot-net-1.1" name="Microsoft .NET Framework 1.1">

 <check type="file" condition="exists" path="%Windir%\Microsoft.NET\Framework\sbscmp10.dll" />

 <install cmd='%SOFTWARE%\dot-net-1.1\dotnetfx.exe /q /c:"install /q"' >
 <exit code="194" reboot="true" />
 <exit code="1603" />
 <exit code="3010" reboot="true" />
 </install>

</package>


Microsoft .NET Framework 1.1 Service Pack 1

Download the installer from here

32-bit

<package id="dot-net-1.1-sp1" name="Microsoft .NET Framework 1.1 Service Pack 1">

 <check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v1.1.4322\SP" />

 <install cmd='%SOFTWARE%\dot-net-1.1-sp1\NDP1.1sp1-KB867460-X86.exe /q /i' >
 <exit code="194" reboot="true" />
 <exit code="1603" />
 <exit code="3010" reboot="true" />
 </install>

</package>


64-bit(?)

<package id="dot-net-1.1-sp1" name="Microsoft .NET Framework 1.1 Service Pack 1">

 <check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\NET Framework Setup\NDP\v1.1.4322\SP" />

 <install cmd='%SOFTWARE%\dot-net-1.1-sp1\NDP1.1sp1-KB867460-X86.exe /q /i' >
 <exit code="194" reboot="true" />
 <exit code="1603" />
 <exit code="3010" reboot="true" />
 </install>

</package>


Microsoft .NET Framework 2.0

Download Microsoft .NET Framework 2.0 Redistributable (x86).

<package id="dot-net-2.0" name="%pkgname%">
 
 <variable name="pkgname" value="Microsoft .NET Framework 2.0" />
 
 <check type="logical" condition="or">
        <check type="uninstall" condition="exists" path="%pkgname% Service Pack 2" />

        <check type="uninstall" condition="exists" path="%pkgname% Service Pack 1" />

        <check type="uninstall" condition="exists" path="%pkgname%" />
 </check>
 
 <install cmd='%SOFTWARE%\dot-net-2.0\dotnetfx2.exe /q /c:"install /q"' >
  <exit code="194" reboot="true" />
  <exit code="1603" />
  <exit code="3010" reboot="true" />
 </install>

</package>


Microsoft .NET Framework 2.0 language pack

Replace DEU with whatever language pack you will be installing:

<package id="dot-net-2.0-language-pack" name="Microsoft .NET Framework 2.0 Language Pack">

 <check type="uninstall" condition="exists" path="Microsoft .NET Framework 2.0 Language Pack - DEU" />

 <install cmd='%SOFTWARE%\dot-net-2.0-language-pack\langpackfx2.exe /q /c:"install /q"' />

</package>


Microsoft .NET Framework 2.0 SP1

Download Microsoft .NET Framework 2.0 SP1 Redistributable (x86).

Download Microsoft .NET Framework 2.0 SP1 Redistributable (x64).

<package id="dot-net-2.0" name="Microsoft .NET Framework 2.0 SP1">

 <check type="uninstall" condition="exists" path="Microsoft .NET Framework 2.0 Service Pack 1" />

 <install cmd='%SOFTWARE%\dot-net-2.0-sp1\NetFx20SP1_x86.exe /q /c:"install /q"' >
  <exit code="194" reboot="true" />
  <exit code="1603" />
  <exit code="3010" reboot="true" />
 </install>

 <remove cmd='msiexec /x {B508B3F1-A24A-32C0-B310-85786919EF28} REBOOT=ReallySuppress /l*v %temp%\netfx20sp1_uninstall_log.txt /qn' >
  <exit code="194" reboot="true" />
  <exit code="1603" />
  <exit code="3010" reboot="true" />
 </remove>

</package>


Microsoft .NET Framework 3.0

Download 32-bit redistributable

Download 64-bit redistributable

<package id="dot-net-3.0" name="Microsoft .NET Framework 3.0" revision="1" priority="900" >

<check type="uninstall" condition="exists" path="Microsoft .NET Framework 3.0" />

<install cmd='%SOFTWARE%\dot-net-3.0\dotnetfx3.exe /q /norestart' >
   <exit code="194" reboot="true" />
   <exit code="1603" />
   <exit code="3010" reboot="true" />
</install>

</package>


Microsoft .NET Framework 3.0 SP1

Download 32-bit redistributable

Download from: 64-bit redistributable


Microsoft .NET Framework 3.5 SP1

Download from http://www.microsoft.com/downloads/details.aspx?FamilyId=AB99342F-5D1A-413D-8319-81DA479AB0D7 (choose/change your language and scroll down to "To download the full package, rather than the bootstrapper, click on the link below: .NET Framework 3.5 Service Pack 1 (Full Package)".

The "or" file check will skip the installation and mark the software as "installed" on systems that have .NET 3.5 pre-installed (e.g. Windows 7)

<package id="dot-net-3.5-sp1" name="Microsoft .NET Framework 3.5 SP1" revision="1" priority="900" >

<check type='logical' condition='or'>
   <check type="uninstall" condition="exists" path="Microsoft .NET Framework 3.5 SP1" />

   <check type='file' condition='exists' path='%SYSTEMROOT%\Microsoft.NET\Framework\v3.5\MSBuild.exe' />
</check>

<install cmd='%SOFTWARE%\dot-net-3.5-sp1\dotnetfx35.exe /q /norestart' >
   <exit code="194" reboot="true" />
   <exit code="1603" />
   <exit code="3010" reboot="true" />
</install>

<remove cmd='MsiExec.exe /qn /X{CE2CDD62-0124-36CA-84D3-9F4DCF5C5BD9}' />

</package>


An alternative remove line is to use:

 <remove cmd='"%WINDIR%\Microsoft.NET\Framework\v3.5\Microsoft .NET Framework 3.5 SP1\setup.exe" '/>

Microsoft .NET Framework 4

Download from http://www.google.fr/url?sa=t&rct=j&q=dotnetfx40_full_x86_x64.exe&source=web&cd=2&ved=0CCoQFjAB&url=http%3A%2F%2Fwww.microsoft.com%2Fdownload%2Fen%2Fdetails.aspx%3Fid%3D17718&ei=pM4FT-eRLIaA4gSm_6mCCQ&usg=AFQjCNEyv0PE3TW5uFX-YaNxjr8dG3UDrQ

<package id="dotnetfx4" name="Microsoft .NET Framework 4" revision="1" priority="0" >
<check type='logical' condition='or'>
   <check type="uninstall" condition="exists" path="Microsoft .NET Framework 4 Extended" />
   <check type='file' condition='exists' path='%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe' />
</check>
<install cmd='xcopy "%SOFTWARE%\Microsoft\dotNetFramework\dotNetFx40_Full_x86_x64.exe" c:\dotNetInstallers\ /c /r /y /q' />
<install cmd='c:\dotNetInstallers\dotNetFx40_Full_x86_x64.exe /norestart /passive' >
   <exit code="0" />
   <exit code="194" reboot="true" />
   <exit code="1603" />
   <exit code="3010" reboot="true" />
</install>
<install cmd='rmdir c:\dotNetInstallers /S /Q' />
<update cmd='xcopy "%SOFTWARE%\Microsoft\dotNetFramework\dotNetFx40_Full_x86_x64.exe" c:\dotNetInstallers\ /c /r /y /q' />
<update cmd='c:\dotNetInstallers\dotNetFx40_Full_x86_x64.exe /norestart /passive' >
   <exit code="0" />
   <exit code="194" reboot="true" />
   <exit code="1603" />
   <exit code="3010" reboot="true" />
</update>
<update cmd='rmdir c:\dotNetInstallers /S /Q' />
<remove cmd='MsiExec.exe /qn /X{8E34682C-8118-31F1-BC4C-98CD9675E1C2}' />
</package>