InstallCheck blocking subsequent msi components

Feb 28, 2012 at 5:25 PM

I have an installer that has 4 items in it.

#1 - .Net Framework with an install check

#2 - a serial port driver installer (exe file )

#3 - my app1.msi

#4 my app2.msi

Like this all is well the UI show the .Net Framework installed and no option to install and shows the other 3 items with check boxes (checked ) to be installed.

Problem is when I put an install check on the #2 item the driver (registry or file doesn't matter ) it detects the driver is installed and hides the driver item ( and by coincidence the #1 item which is usually showed in an "Installed" state ) but shows items #3 and #4 as installed and only gives the uninstall option.

What am I missing?

Here is the xml:

 

<?xml version="1.0" encoding="utf-8"?>
<configurations lcid_type="UserExe" show_language_selector="False" language_selector_title="" language_selector_ok="OK" language_selector_cancel="Cancel" configuration_no_match_message="" ui_level="full" fileversion="" productversion="" log_enabled="False" log_file="#TEMPPATH\dotNetInstallerLog.txt">
  <schema version="2.0.81.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="BAT Tools Suite Installer" dialog_message="In order to install BAT Tools Suite you must first install these components:" dialog_message_uninstall="" dialog_bitmap="#APPPATH\banner.bmp" skip_caption="Skip" install_caption="Install" uninstall_caption="Uninstall" cancel_caption="Close" status_installed=" (Installed)" status_notinstalled="" failed_exec_command_continue="Failed to install %s. Continue with other components?" installation_completed="BAT Tools Suite installed successfully!" uninstallation_completed="BAT Tools Suite uninstalled successfully!" installation_none="BAT Tools Suite is already installed!" uninstallation_none="BAT Tools Suite is not installed!" installing_component_wait="Installing %s. Wait, this operation could take some time ..." uninstalling_component_wait="Uninstalling %s. Wait, this operation could take some time ..." reboot_required="To continue the installation you must restart your computer. Restart now?" must_reboot_required="False" dialog_otherinfo_caption="" dialog_otherinfo_link="" complete_command="" complete_command_silent="" complete_command_basic="" wait_for_complete_command="True" auto_close_if_installed="True" auto_close_on_error="False" reload_on_error="True" dialog_show_installed="True" dialog_show_uninstalled="True" dialog_show_required="True" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="True" dialog_default_button="cancel" dialog_position="" dialog_components_list_position="" dialog_message_position="" dialog_bitmap_position="" dialog_otherinfo_link_position="" dialog_osinfo_position="" dialog_install_button_position="" dialog_cancel_button_position="" dialog_skip_button_position="" auto_start="False" auto_continue_on_reboot="False" reboot_cmd="" show_progress_dialog="True" show_cab_dialog="True" disable_wow64_fs_redirection="False" administrator_required="False" administrator_required_message="BAT Tools Suite installation requires administration rights." type="install" lcid_filter="" language_id="" language="" os_filter="" os_filter_min="" os_filter_max="" processor_architecture_filter="" supports_install="True" supports_uninstall="True">
    <component command="&quot;#APPPATH\SupportFiles\dotNetFx40_Full_setup.exe&quot; &quot;/norestart /q&quot;" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="3010" disable_wow64_fs_redirection="False" id="Microsoft .NET Framework 4.0 - Full" display_name="Microsoft .NET Framework 4.0 - Full" uninstall_display_name="" os_filter="" os_filter_min="winXPsp3" 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="False" selected_install="True" selected_uninstall="False" note="English - Setup - .NET Framework 4.0 - Full for all operating system since Windows XP SP3 (Install check)" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False" show_progress_dialog="False" show_cab_dialog="False">
      <installedcheck path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" 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.0 - Full - Download Components" dialog_message="Press 'Start' to download the required components for installing Microsoft .NET Framework 4.0 - Full" dialog_message_downloading="Download in progress. Please wait..." dialog_message_copying="Files are downloaded. Please wait ..." dialog_message_connecting="Connecting ..." dialog_message_sendingrequest="Sending request ..." autostartdownload="False" buttonstart_caption="Start" buttoncancel_caption="Cancel">
        <download componentname="Microsoft .NET Framework 4.0 - Full" sourceurl="http://download.microsoft.com/download/1/B/E/1BE39E79-7E39-46A3-96FF-047F95396215/dotNetFx40_Full_setup.exe" sourcepath="" destinationpath="#TEMPPATH\dotNetRuntime_Download_#PID" destinationfilename="dotNetFx40_Full_setup.exe" alwaysdownload="True" clear_cache="False" />
      </downloaddialog>
    </component>
    <component executable="&quot;#APPPATH\SupportFiles\CP210x_VCP_Win_XP_S2K3_Vista_7.exe&quot;" executable_silent="" executable_basic="" install_directory="" responsefile_source="" responsefile_target="" responsefile_format="none" uninstall_executable="" uninstall_executable_silent="" uninstall_executable_basic="" uninstall_responsefile_source="" uninstall_responsefile_target="" returncodes_success="" returncodes_reboot="" exeparameters="" exeparameters_basic="" exeparameters_silent="" uninstall_exeparameters="" uninstall_exeparameters_basic="" uninstall_exeparameters_silent="" disable_wow64_fs_redirection="False" id="Silicon Graphics USB-Serial Driver" display_name="Silicon Graphics USB-Serial Driver" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="exe" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="True" required_uninstall="True" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False" show_progress_dialog="True" show_cab_dialog="True">
      <installedcheck path="SOFTWARE\Silicon Laboratories, Inc.\Silicon Laboratories Driver Installations\VCP CP210x Cardinal\SLABCOMM&amp;10C4&amp;EA60" fieldname="Installed" fieldvalue="6.1" defaultvalue="False" fieldtype="REG_SZ" comparison="match" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
    </component>
    <component package="#APPPATH\SetupConfigTool.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="Universal Config Tool" display_name="Universal Config Tool" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="msi" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="False" required_uninstall="False" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True" show_progress_dialog="True" show_cab_dialog="True" />
    <component package="#APPPATH\MicroMaxSetup.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="MicroMax Programmer" display_name="MicroMax Programmer" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="msi" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="False" required_uninstall="False" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True" show_progress_dialog="True" show_cab_dialog="True" />
  </configuration>
</configurations>

Mar 6, 2012 at 5:48 PM

I am still unable to run any install checks other than the one on the .Net Framework. Every time I add one to another component all other components show to be installed as well and the component I add it to disappears from the installer dialog. ?!?

 

Any ideas?

Mar 7, 2012 at 12:36 PM
Edited Mar 7, 2012 at 12:36 PM

All these components need install checks. Otherwise I think the bootstrapper is falling into uninstall mode because it thinks everything is installed. Run /log /logfile install.log to see what's going on.

Another alternative is to mark the ones without install checks as "required". Then they will always want to install.

Mar 19, 2012 at 9:22 PM

Ok I have tried this both with install checks and without. I am down to just wanting the two msi's to install ( and be optional ) without any checks or prerequisites and it still wants to block both of them and shows them installed. They cannot be required since the user may not want  both.

 

Here is the bare bones xml:

 

<?xml version="1.0" encoding="utf-8"?>
<configurations lcid_type="UserExe" show_language_selector="False" language_selector_title="" language_selector_ok="OK" language_selector_cancel="Cancel" configuration_no_match_message="" ui_level="full" fileversion="" productversion="" log_enabled="False" log_file="#TEMPPATH\dotNetInstallerLog.txt">
  <schema version="2.0.81.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="BAT Tools Suite Installer" dialog_message="Welcome to the BAT Tools Installation Suite!" dialog_message_uninstall="Select components to uninstall and click 'Uninstall'" dialog_bitmap="#APPPATH\ai.bmp" skip_caption="Skip" install_caption="Install" uninstall_caption="Uninstall" cancel_caption="Close" status_installed=" (Installed)" status_notinstalled="" failed_exec_command_continue="Failed to install %s. Continue with other components?" installation_completed="BAT Tools Suite installed successfully!" uninstallation_completed="BAT Tools Suite uninstalled successfully!" installation_none="BAT Tools Suite is already installed!" uninstallation_none="BAT Tools Suite is not installed!" installing_component_wait="Installing %s. Wait, this operation could take some time ..." uninstalling_component_wait="Uninstalling %s. Wait, this operation could take some time ..." reboot_required="To continue the installation you must restart your computer. Restart now?" must_reboot_required="False" dialog_otherinfo_caption="AI Technical Support Contacts" dialog_otherinfo_link="http://www.aiworldwide.com/294/Technical-Services.htm" complete_command="" complete_command_silent="" complete_command_basic="" wait_for_complete_command="True" auto_close_if_installed="True" auto_close_on_error="False" reload_on_error="True" dialog_show_installed="True" dialog_show_uninstalled="True" dialog_show_required="True" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="True" dialog_default_button="cancel" dialog_position="0,0,600,300" dialog_components_list_position="200,0,0,0" dialog_message_position="200,0,0,0" dialog_bitmap_position="0,0,180,180" dialog_otherinfo_link_position="30,190,0,0" dialog_osinfo_position="" dialog_install_button_position="360,200,0,0" dialog_cancel_button_position="470,200,0,0" dialog_skip_button_position="" auto_start="False" auto_continue_on_reboot="False" reboot_cmd="" show_progress_dialog="True" show_cab_dialog="True" disable_wow64_fs_redirection="False" administrator_required="False" administrator_required_message="BAT Tools Suite installation requires administration rights." type="install" lcid_filter="" language_id="" language="" os_filter="" os_filter_min="" os_filter_max="" processor_architecture_filter="" supports_install="True" supports_uninstall="True">
    
<component package="#APPPATH\SetupConfigTool.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="Universal Config Tool" display_name="Universal Config Tool" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="msi" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="False" required_uninstall="False" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True" show_progress_dialog="True" show_cab_dialog="True" />
    
<component package="#APPPATH\MicroMaxSetup.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="MicroMax Programmer" display_name="MicroMax Programmer" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="msi" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="False" required_uninstall="False" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True" show_progress_dialog="True" show_cab_dialog="True" />
  </configuration>
</configurations>

Mar 21, 2012 at 12:01 AM

Can you paste the log file output here, please?

Mar 21, 2012 at 3:14 AM

 

It shows both are installed and neither is and I am not even checking.

 

2012-03-20 21:11:59    -------------------------------------------------------------------
2012-03-20 21:11:59    dotNetInstaller (DNI), version 2.0.81.0
2012-03-20 21:11:59    Copyright (c) DevAge, Vestris Inc. & Contributors
2012-03-20 21:11:59    Operating system: Windows 7 SP1
2012-03-20 21:11:59    -------------------------------------------------------------------
2012-03-20 21:11:59    Sequence: install
2012-03-20 21:11:59    UI level: full
2012-03-20 21:11:59    Configuration language id: 1033
2012-03-20 21:11:59    -- Loading supported components (lcid=1033)
2012-03-20 21:11:59    -- Universal Config Tool (display_name='Universal Config Tool', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:11:59    -- MicroMax Programmer (display_name='MicroMax Programmer', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:11:59    --- Loaded 2 supported component(s)
2012-03-20 21:11:59    -- Universal Config Tool (Universal Config Tool): NOT INSTALLED
2012-03-20 21:11:59    -- MicroMax Programmer (MicroMax Programmer): NOT INSTALLED
2012-03-20 21:11:59    All components installed, switching to uninstall.
2012-03-20 21:11:59    -- Loading supported components (lcid=1033)
2012-03-20 21:11:59    -- Universal Config Tool (display_name='Universal Config Tool', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:11:59    -- MicroMax Programmer (display_name='MicroMax Programmer', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:11:59    --- Loaded 2 supported component(s)
2012-03-20 21:11:59    -- MicroMax Programmer (MicroMax Programmer): INSTALLED
2012-03-20 21:11:59    -- Universal Config Tool (Universal Config Tool): INSTALLED
2012-03-20 21:12:05    dotNetInstaller finished, return code: -2 (0xfffffffe)

Mar 21, 2012 at 3:17 AM

Here is another attempt at install checks and the log. The first two components are not installed. The last two are, but the installer quits and says all are installed.

<?xml version="1.0" encoding="utf-8"?>
<configurations lcid_type="UserExe" show_language_selector="False" language_selector_title="" language_selector_ok="OK" language_selector_cancel="Cancel" configuration_no_match_message="" ui_level="full" fileversion="" productversion="" log_enabled="True" log_file="c:\temp\dotNetInstallerLog.txt">
  <schema version="2.0.81.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="BAT Tools Suite Installer" dialog_message="Welcome to the BAT Tools Installation Suite!" dialog_message_uninstall="Select components to uninstall and click 'Uninstall'" dialog_bitmap="#APPPATH\ai.bmp" skip_caption="Skip" install_caption="Install" uninstall_caption="Uninstall" cancel_caption="Close" status_installed=" (Installed)" status_notinstalled="" failed_exec_command_continue="Failed to install %s. Continue with other components?" installation_completed="BAT Tools Suite installed successfully!" uninstallation_completed="BAT Tools Suite uninstalled successfully!" installation_none="BAT Tools Suite is already installed!" uninstallation_none="BAT Tools Suite is not installed!" installing_component_wait="Installing %s. Wait, this operation could take some time ..." uninstalling_component_wait="Uninstalling %s. Wait, this operation could take some time ..." reboot_required="To continue the installation you must restart your computer. Restart now?" must_reboot_required="False" dialog_otherinfo_caption="AI Technical Support Contacts" dialog_otherinfo_link="http://www.aiworldwide.com/294/Technical-Services.htm" complete_command="" complete_command_silent="" complete_command_basic="" wait_for_complete_command="True" auto_close_if_installed="True" auto_close_on_error="False" reload_on_error="True" dialog_show_installed="True" dialog_show_uninstalled="True" dialog_show_required="True" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="True" dialog_default_button="cancel" dialog_position="0,0,600,300" dialog_components_list_position="200,0,0,0" dialog_message_position="200,0,0,0" dialog_bitmap_position="0,0,180,180" dialog_otherinfo_link_position="30,190,0,0" dialog_osinfo_position="" dialog_install_button_position="360,200,0,0" dialog_cancel_button_position="470,200,0,0" dialog_skip_button_position="" auto_start="False" auto_continue_on_reboot="False" reboot_cmd="" show_progress_dialog="True" show_cab_dialog="True" disable_wow64_fs_redirection="False" administrator_required="False" administrator_required_message="BAT Tools Suite installation requires administration rights." type="install" lcid_filter="" language_id="" language="" os_filter="" os_filter_min="" os_filter_max="" processor_architecture_filter="" supports_install="True" supports_uninstall="True">
    <component package="#APPPATH\SetupConfigTool.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="Universal Config Tool" display_name="Universal Config Tool" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="msi" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="False" required_uninstall="False" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True" show_progress_dialog="True" show_cab_dialog="True">
      <installedcheck path="SOFTWARE\American Innovations\Universal Configuration ToolKit" fieldname="Installed" fieldvalue="1" defaultvalue="False" fieldtype="REG_DWORD" comparison="key_exists" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
    </component>
    <component package="#APPPATH\MicroMaxSetup.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="MicroMax Programmer" display_name="MicroMax Programmer" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="msi" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="False" required_uninstall="False" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True" show_progress_dialog="True" show_cab_dialog="True">
      <installedcheck path="SOFTWARE\American Innovations\MicroMax Programmer" fieldname="Installed" fieldvalue="1" defaultvalue="False" fieldtype="REG_DWORD" comparison="key_exists" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
    </component>
    <component executable="#APPPATH\SupportFiles\SiliconLabsUSBDriver\CP210x_VCP_Win_XP_S2K3_Vista_7.exe" executable_silent="" executable_basic="" install_directory="" responsefile_source="" responsefile_target="" responsefile_format="none" uninstall_executable="" uninstall_executable_silent="" uninstall_executable_basic="" uninstall_responsefile_source="" uninstall_responsefile_target="" returncodes_success="" returncodes_reboot="" exeparameters="" exeparameters_basic="" exeparameters_silent="" uninstall_exeparameters="" uninstall_exeparameters_basic="" uninstall_exeparameters_silent="" disable_wow64_fs_redirection="False" id="Silicon Laboratories USB to UART Driver" display_name="Silicon Laboratories USB to UART Driver" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="exe" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="True" required_uninstall="False" selected_install="True" selected_uninstall="False" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False" show_progress_dialog="True" show_cab_dialog="True">
      <installedcheck path="SOFTWARE\Silicon Laboratories, Inc.\Silicon Laboratories Driver Installations\VCP CP210x Cardinal\SLABCOMM&amp;10C4&amp;EA60" fieldname="DriverVersion" fieldvalue="6.5" defaultvalue="False" fieldtype="REG_SZ" comparison="match" rootkey="HKEY_LOCAL_MACHINE" wowoption="WOW64_32" type="check_registry_value" description="Installed Check" />
    </component>
    <component command="&quot;#APPPATH\SupportFiles\DotNetFX40\dotNetFx40_Full_x86_x64.exe&quot; &quot;/norestart /q&quot;" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="3010" disable_wow64_fs_redirection="False" id="Microsoft .NET Framework 4.0 - Full" display_name="Microsoft .NET Framework 4.0 - Full" uninstall_display_name="" os_filter="" os_filter_min="winXPsp3" 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="False" selected_install="True" selected_uninstall="False" note="English - Setup - .NET Framework 4.0 - Full for all operating system since Windows XP SP3 (Install check)" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False" show_progress_dialog="False" show_cab_dialog="False">
      <installedcheck path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" fieldname="Install" fieldvalue="1" defaultvalue="False" fieldtype="REG_DWORD" comparison="match" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
    </component>
  </configuration>
</configurations>

Here is the log:

2012-03-20 21:04:37    -------------------------------------------------------------------
2012-03-20 21:04:37    dotNetInstaller (DNI), version 2.0.81.0
2012-03-20 21:04:37    Copyright (c) DevAge, Vestris Inc. & Contributors
2012-03-20 21:04:37    Operating system: Windows 7 SP1
2012-03-20 21:04:37    -------------------------------------------------------------------
2012-03-20 21:04:37    Sequence: install
2012-03-20 21:04:37    UI level: full
2012-03-20 21:04:37    Configuration language id: 1033
2012-03-20 21:04:37    -- Loading supported components (lcid=1033)
2012-03-20 21:04:37    -- Universal Config Tool (display_name='Universal Config Tool', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:04:37    -- MicroMax Programmer (display_name='MicroMax Programmer', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:04:37    -- Silicon Laboratories USB to UART Driver (display_name='Silicon Laboratories USB to UART Driver', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:04:37    -- Microsoft .NET Framework 4.0 - Full (display_name='Microsoft .NET Framework 4.0 - Full', os_filter_lcid=, os_filter=, os_filter_min=Windows XP SP3, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:04:37    --- Loaded 4 supported component(s)
2012-03-20 21:04:37    Checking whether registry value 'SOFTWARE\American Innovations\Universal Configuration ToolKit\Installed' exists
2012-03-20 21:04:37    Registry key 'SOFTWARE\American Innovations\Universal Configuration ToolKit\Installed' not found
2012-03-20 21:04:37    -- Universal Config Tool (Universal Config Tool): NOT INSTALLED
2012-03-20 21:04:37    Checking whether registry value 'SOFTWARE\American Innovations\MicroMax Programmer\Installed' exists
2012-03-20 21:04:37    Registry key 'SOFTWARE\American Innovations\MicroMax Programmer\Installed' not found
2012-03-20 21:04:37    -- MicroMax Programmer (MicroMax Programmer): NOT INSTALLED
2012-03-20 21:04:37    Checking whether registry value 'SOFTWARE\Silicon Laboratories, Inc.\Silicon Laboratories Driver Installations\VCP CP210x Cardinal\SLABCOMM&10C4&EA60\DriverVersion' exists
2012-03-20 21:04:37    Opening 32-bit registry view (KEY_WOW64_32KEY)
2012-03-20 21:04:37    Registry value: 6.5
2012-03-20 21:04:37    -- Silicon Laboratories USB to UART Driver (Silicon Laboratories USB to UART Driver): INSTALLED
2012-03-20 21:04:37    Checking whether registry value 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Install' exists
2012-03-20 21:04:37    Registry value: 1
2012-03-20 21:04:37    Check value: 1
2012-03-20 21:04:37    -- Microsoft .NET Framework 4.0 - Full (Microsoft .NET Framework 4.0 - Full): INSTALLED
2012-03-20 21:04:37    All components installed, switching to uninstall.
2012-03-20 21:04:37    -- Loading supported components (lcid=1033)
2012-03-20 21:04:37    -- Universal Config Tool (display_name='Universal Config Tool', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:04:37    -- MicroMax Programmer (display_name='MicroMax Programmer', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 21:04:37    -- Silicon Laboratories USB to UART Driver (display_name='Silicon Laboratories USB to UART Driver', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): SKIPPED
2012-03-20 21:04:37    -- Microsoft .NET Framework 4.0 - Full (display_name='Microsoft .NET Framework 4.0 - Full', os_filter_lcid=, os_filter=, os_filter_min=Windows XP SP3, os_filter_max=, processor_architecture_filter=): SKIPPED
2012-03-20 21:04:37    --- Loaded 2 supported component(s)
2012-03-20 21:04:37    Checking whether registry value 'SOFTWARE\American Innovations\MicroMax Programmer\Installed' exists
2012-03-20 21:04:37    Registry key 'SOFTWARE\American Innovations\MicroMax Programmer\Installed' not found
2012-03-20 21:04:37    -- MicroMax Programmer (MicroMax Programmer): NOT INSTALLED
2012-03-20 21:04:37    Checking whether registry value 'SOFTWARE\American Innovations\Universal Configuration ToolKit\Installed' exists
2012-03-20 21:04:37    Registry key 'SOFTWARE\American Innovations\Universal Configuration ToolKit\Installed' not found
2012-03-20 21:04:37    -- Universal Config Tool (Universal Config Tool): NOT INSTALLED
2012-03-20 21:04:37    All components uninstalled, nothing to do.
2012-03-20 21:04:37    --- Complete Command
2012-03-20 21:04:40    dotNetInstaller finished, return code: 0 (0x0)

 

 

Aug 16, 2012 at 9:50 PM
Edited Aug 16, 2012 at 9:53 PM

It seems I'm having the same issue with one of my products, where I first require the installation of certain .NET packages, database drivers and hardware key drivers and then want to give the user three options of components from our house. Using dotnetinstaller 1.06 and 1.10 it worked ok, but since upgrading to 2.0 (and tested with same result in 2.1) the items not being marked as "required" are considered ok even if they are not installed. (Refer to log lines marked in red below)

Thus the state switches to uninstall. Alternatively, if none of the products is configured to support uninstall, the install state remains, but the messagebox just says "Product is already installed", and effectively the user is never given the opportunity to select among my three options.

--- Is this a bug or a misconfiguration from myself and the OP? ---

The three options i want to offer are

  1. optional: install main product
    1. if product not already installed: fresh install using the msi component
    2. if product of same base version is installed: execute the msi differently, to force upgrade of the product
  2. optional: install a related product, a separate msi, regardless if the main product is installed

 Log excerpt:

--

2012-08-16 22:04:54 Checking whether registry value 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Install' exists
2012-08-16 22:04:54 Registry value: 1
2012-08-16 22:04:54 Check value: 1
2012-08-16 22:04:54 -- Microsoft .NET Framework 4.0 (Microsoft .NET Framework 4.0): INSTALLED
2012-08-16 22:04:54 Checking whether registry value 'SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v3.5\Version' exists
2012-08-16 22:04:54 Registry value: 3.5.8080.0
2012-08-16 22:04:54 Checking whether registry value 'SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v3.5\ServicePackLevel' exists
2012-08-16 22:04:54 Registry value: 2
2012-08-16 22:04:54 Check value: 2
2012-08-16 22:04:54 -- SQL Server Compact 3.5 SP2 (SQL Server Compact 3.5 SP2): INSTALLED
2012-08-16 22:04:54 Checking whether registry value 'SOFTWARE\RAINBOW TECHNOLOGIES\Sentinel System Driver\CurrentVersion' exists
2012-08-16 22:04:54 Registry value: 7.5.1
2012-08-16 22:04:54 -- Sentinel 7.4.0 (Sentinel 7.4.0): INSTALLED
2012-08-16 22:04:54 Checking whether registry value 'SOFTWARE\Company\TheProduct\Version' exists
2012-08-16 22:04:54 Registry value: 1.5.0
2012-08-16 22:04:54 -- TheProduct Setup (TheProduct Setup): INSTALLED
2012-08-16 22:04:54 Checking whether registry value 'SOFTWARE\Company\TheProduct\Version' exists
2012-08-16 22:04:54 Registry value: 1.5.0
2012-08-16 22:04:54 -- TheProduct Upgrade (TheProduct Upgrade): NOT INSTALLED
2012-08-16 22:04:54 Checking whether registry value 'SOFTWARE\Company\TheProduct\Version' exists
2012-08-16 22:04:54 Registry value: 1.5.0
2012-08-16 22:04:54 -- TheProduct Local Setup (TheProduct Local Setup): NOT INSTALLED
2012-08-16 22:04:54 All components installed, switching to uninstall.

--