Templates for installing 3.5 framework

Jan 11, 2010 at 11:33 AM

Just a quick question if templates for installing the 3.5 framework exist or is this still on the "roll your own" level? This discussion http://dotnetinstaller.codeplex.com/Thread/View.aspx?ThreadId=51534 suggests that it's do it yourself time but I'd rather not duplicate the effort if they're already lurking somewhere.

I'm on the current beta 1.8 version as I'm looking to do a download only if the framework isn't on disk ala here http://dotnetinstaller.codeplex.com/Thread/View.aspx?ThreadId=53049


Jan 12, 2010 at 6:35 PM

I dug this up from some not-quite-production code.

<component command="&quot;#TEMPPATH\dotNetRuntime_Download_#PID\dotnetfx35.exe&quot; /q /norestart" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="3010" id="Microsoft .NET Framework 3.5 SP1 (x86)" display_name="Microsoft .NET Framework 3.5 SP1 (x86)" os_filter_greater="" os_filter_smaller="" os_filter_lcid="" type="cmd" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" required="True" note="" processor_architecture_filter="x86" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False">
      <downloaddialog dialog_caption=".NET Runtime 3.5 SP1 - Download Components" dialog_message="Press 'Start' to download the .NET Runtime 3.5 SP1" dialog_message_downloading="Downloading installer ..." dialog_message_copying="Copying ..." dialog_message_connecting="Connecting ..." dialog_message_sendingrequest="Sending request ..." autostartdownload="False" buttonstart_caption="Start" buttoncancel_caption="Cancel">
        <download componentname=".NET Runtime 3.5 SP1" sourceurl="http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe" sourcepath="#APPPATH\dotnetfx35.exe" destinationpath="#TEMPPATH\dotNetRuntime_Download_#PID" destinationfilename="dotnetfx35.exe" alwaysdownload="False" clear_cache="False" />
      <installedcheck path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" fieldname="Version" fieldvalue="3.5.30729.01" fieldtype="REG_SZ" comparison="version_ge" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />

It would be nice if someone (you?) tested it and added an actual component into the DNI built-in templates as a patch :)

Jan 13, 2010 at 8:28 AM

Ok I should be testing this briefly over this week with a fuller test towards the end of the month.

Thanks a lot,


Feb 3, 2010 at 1:47 PM
Edited Feb 3, 2010 at 1:48 PM

Seems to be ok, however I changed the download to be (stolen from the VisualStudio bootstrapper files):


which does a download of the smaller bootstrapper and turned off the /q switch to give the user feedback once the download has happened, I still got some work to do yet (I want to add the 3.1 installer) but so far this seems to work ok (I presume the quiet command would use a /q).

I've also discovered that the .net client profile for 3.5 is only useful if the client PC doesn't have any .net version installed which is getting more and more unlikely (also the MSDN page has the wrong registry key for checking).