Got working components with conditions?

Coordinator
Jun 22, 2009 at 2:45 PM
Edited Jun 22, 2009 at 2:51 PM

I'd like to update the library of components and conditions in dotNetInstaller 1.6 and in future versions. Adding these components is done via Add -> Component Wizard in InstallerEditor. The components are implemented as-is in wizardcomponents.xml embedded with InstallerEditor itself.

If you have a new/updated component, please post it here. I'll update it in the software. Thx.

Coordinator
Jun 22, 2009 at 2:47 PM
Edited Jun 22, 2009 at 2:50 PM

Microsoft .NET Framework 2.0 SP1 x86 and x64

Note that .NET Framework 2.0 cannot be installed on Vista and Windows Server 2008. These components are excluded by filter on these operating systems.

    <!-- Microsoft .NET Framework 2.0 SP1 (x86) -->
    <component command="&quot;#CABPATH\SupportFiles\dotNet2.0_SP1_x86\NetFx20SP1_x86.exe&quot; /c:install /norestart /qb" command_silent="" command_basic="" os_filter_greater="" os_filter_smaller="102" os_filter_lcid="" type="cmd" installcompletemessage="" mustreboot="True" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="False" required="True" description="Microsoft .NET Framework 2.0 SP1 (x86)" note="English - Standard - .NET Framework 2.0 SP1" processor_architecture_filter="x86" status_installed="" status_notinstalled="">
      <installedcheck path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" fieldname="Version" fieldvalue="2.1.21022" fieldtype="REG_SZ" comparison="version" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
      <embedfile sourcefilepath="SupportFiles\dotNet2.0_SP1_x86\NetFx20SP1_x86.exe" targetfilepath="SupportFiles\dotNet2.0_SP1_x86\NetFx20SP1_x86.exe" />
    </component>
    <!-- Microsoft .NET Framework 2.0 SP1 (x64) -->
    <component command="&quot;#CABPATH\SupportFiles\dotNet2.0_SP1_x64\NetFx20SP1_x64.exe&quot; /c:install /norestart /qb" command_silent="" command_basic="" os_filter_greater="" os_filter_smaller="102" os_filter_lcid="" type="cmd" installcompletemessage="" mustreboot="True" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="False" required="True" description="Microsoft .NET Framework 2.0 SP1 (x64)" note="English - Standard 64 bit - .NET Framework 2.0 SP1" processor_architecture_filter="x64" status_installed="" status_notinstalled="">
      <installedcheck path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" fieldname="Version" fieldvalue="2.1.21022" fieldtype="REG_SZ" comparison="version" rootkey="HKEY_LOCAL_MACHINE" wowoption="WOW64_64" type="check_registry_value" description="Installed Check" />
      <embedfile sourcefilepath="SupportFiles\dotNet2.0_SP1_x64\NetFx20SP1_x64.exe" targetfilepath="SupportFiles\dotNet2.0_SP1_x64\NetFx20SP1_x64.exe" />
    </component>

Microsoft Visual Studio 2005 C++ Redistributable

    <!-- Microsoft Visual Studio 2005 C++ Redistributable (x86) -->
    <component command="&quot;#CABPATH\SupportFiles\vs2005sp1\vcredist_x86_sp1.exe&quot;" command_silent="" command_basic="" os_filter_greater="" os_filter_smaller="" os_filter_lcid="" type="cmd" installcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="False" required="True" description="Microsoft Visual Studio 2005 C++ Redistributable (x86)" note="" processor_architecture_filter="x86,x64" status_installed="" status_notinstalled="">
      <installedcheck path="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7299052b-02a4-4627-81f2-1818da5d550d}" fieldname="Version" fieldvalue="1" fieldtype="REG_DWORD" comparison="exists" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
      <embedfile sourcefilepath="SupportFiles\vs2005sp1\vcredist_x86_sp1.exe" targetfilepath="SupportFiles\vs2005sp1\vcredist_x86_sp1.exe" />
    </component>

 

 

Aug 2, 2010 at 2:24 PM
I just came around this while searching the discussions and asked myself what's about Windows 7 and Windows2008R2 and .Net Framework 2.0? Are they exclusive also?
Coordinator
Aug 2, 2010 at 8:28 PM

Yes, you can't install .NET Framework 2.0 on these OSs, you need 3.5. That's why they have os_filter_smaller.