Need help with installing .net 4

Jul 16, 2011 at 10:57 AM

Hi i need to install the .net framework 4 for my application (via download) ive tried a variety of things but i just cannot seem to get it to work

when i launch the installer i keep getting download error 

System cannot find the object specified

I found an example to download 3.5 which work fine so i decided to change that to download and install .net 4 from

http://www.microsoft.com/downloads/info.aspx?na=41&SrcFamilyId=0A391ABD-25C1-4FC0-919F-B21F31AB88B7&SrcDisplayLang=en&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f9%2f5%2fA%2f95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE%2fdotNetFx40_Full_x86_x64.exe

Below is the xml for my component

    <component command="&quot;#CABPATH\dotNetFx40_Full_x86_x64.exe&quot; /q:a /c:&quot;install&quot;" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="" id="Microsoft .NET Framework 4" display_name="Microsoft .NET Framework 4" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="cmd" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="False" default_continue_on_error="False" required_install="True" required_uninstall="True" selected_install="True" selected_uninstall="True" note="English - Standard - .NET Framework 4" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False" show_progress_dialog="True" show_cab_dialog="True">
      <installedcheck path="Software\Microsoft\NET Framework Setup\NDP\v4" fieldname="Install" fieldvalue="1" defaultvalue="False" fieldtype="REG_DWORD" comparison="match" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
      <downloaddialog dialog_caption="Microsoft .NET Framework 4 - Download Components" dialog_message="Press 'Start' to download the required components for installing Microsoft .NET Framework 4" dialog_message_downloading="Download in progress. Wait..." dialog_message_copying="Copying ..." dialog_message_connecting="Connecting ..." dialog_message_sendingrequest="Sending request ..." autostartdownload="False" buttonstart_caption="Start" buttoncancel_caption="Cancel">
        <download componentname="Microsoft .NET Framework 4" sourceurl="http://www.microsoft.com/downloads/info.aspx?na=41&amp;SrcFamilyId=0A391ABD-25C1-4FC0-919F-B21F31AB88B7&amp;SrcDisplayLang=en&amp;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f9%2f5%2fA%2f95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE%2fdotNetFx40_Full_x86_x64.exe" sourcepath="" destinationpath="#CABPATH" destinationfilename="dotNetFx40_Full_x86_x64.exe" alwaysdownload="False" clear_cache="False" />
      </downloaddialog>
    </component>

Thanks for any help in advance

Coordinator
Jul 18, 2011 at 4:53 PM

I think the problem is your destinationpath. Run this with a /log /logfile install.log, it will tell you where it's downloading the installer and where it tries to run it from. These should be the same.

Jul 18, 2011 at 5:38 PM

Thanks for the reply i manged to solve my problem by changing the download to

http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe