Need help with installing .net 4

Jul 16, 2011 at 11: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

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=";SrcFamilyId=0A391ABD-25C1-4FC0-919F-B21F31AB88B7&amp;SrcDisplayLang=en&amp;" sourcepath="" destinationpath="#CABPATH" destinationfilename="dotNetFx40_Full_x86_x64.exe" alwaysdownload="False" clear_cache="False" />

Thanks for any help in advance

Jul 18, 2011 at 5: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 6:38 PM

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