Version 1.7 does not detect the OS properly

Jul 16, 2009 at 11:46 PM

In my instalation project needs to install Windows Installer 4.5 before SQL2008 and I configured it with XP, 2003 and Vista/2008 versions downloaded from http://www.microsoft.com/downloads/details.aspx?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4&displaylang=en.

I could see that if I compile using 1.7 version, the installation does not detect the operation system and try to install all available versions. I solved this problem downgrading back to 1.6. With 1.6, only the OS compatible version of package comes available to install.

Coordinator
Jul 17, 2009 at 12:06 AM

This has undergone quite a few code changes. Can you please attach your config file, I'll fix and write a unit test so that we don't regress it in the future. A log file would be nice too. Thx. -dB.

Jul 17, 2009 at 3:30 AM

Screen shots:

You can see that, instead 1.7, version 1.6 works in vista and xp.

At first image the version 1.6 detected the .net 3.5, but not the 1.7.

 

log file from 1.6:

2009-07-17 00:07:50	-------------------------------------------------------------------
2009-07-17 00:07:50	dotNetInstaller (DNI) started, version 1.6.25361.0
2009-07-17 00:07:50	Copyright (c) DevAge, Vestris Inc. & Contributors
2009-07-17 00:07:50	Operating system: Windows XP Sp3
2009-07-17 00:07:50	-------------------------------------------------------------------
2009-07-17 00:07:50	Loading configuration from resource.
2009-07-17 00:07:50	Loading configuration from resource
2009-07-17 00:07:50	Finished parsing xml configuration from resource
2009-07-17 00:07:50	Configuration generator: dotNetInstaller InstallerEditor
2009-07-17 00:07:50	Generator version: 1.6.25361.0
2009-07-17 00:07:50	Reading configuration node with LCID: 
2009-07-17 00:07:50	Loading install configuration
2009-07-17 00:07:50	Reading configuration attributes
2009-07-17 00:07:50	Finished reading configuration attributes
2009-07-17 00:07:50	--Reading COMMAND component: "C:\Documents and Settings\Usuário comum\Desktop\snifo\MyRelease\Support\WindowsXP-KB942288-v3-x86.exe" /q
2009-07-17 00:07:50	--Component OK: Windows Installer 4.5 for Windows XP
2009-07-17 00:07:50	--Reading COMMAND component: "C:\Documents and Settings\Usuário comum\Desktop\snifo\MyRelease\Support\WindowsServer2003-KB942288-v4-x86.exe" /q
2009-07-17 00:07:50	--Component SKIPPED
2009-07-17 00:07:50	--Reading COMMAND component: "wusa.exe" /quiet /norestart "C:\Documents and Settings\Usuário comum\Desktop\snifo\MyRelease\Support\Windows6.0-KB942288-v2-x86.msu"
2009-07-17 00:07:50	--Component SKIPPED
2009-07-17 00:07:50	--Reading COMMAND component: "C:\Documents and Settings\Usuário comum\Desktop\snifo\MyRelease\Support\dotnetfx35.exe" /q /norestart
2009-07-17 00:07:50	----Reading CHECKFILE installed check: #WINDOWSPATH\Microsoft.NET\Framework\v3.5
2009-07-17 00:07:50	--Component OK: Microsoft .Net Framework 3.5
2009-07-17 00:07:50	--Reading COMMAND component: "C:\Documents and Settings\Usuário comum\Desktop\snifo\MyRelease\MyRelease\SQLEXPR_x86_ENU.exe" /QUIET
2009-07-17 00:07:50	--Component OK: Microsoft SQL Server 2008 Express Edition
2009-07-17 00:07:50	--Reading MSI component: C:\Documents and Settings\Usuário comum\Desktop\snifo\MyRelease\TS-Setup.msi
2009-07-17 00:07:50	--Component OK: Traffic Summarizer 1.3.4
2009-07-17 00:07:50	-- Windows Installer 4.5 for Windows XP: NOT INSTALLED
2009-07-17 00:07:50	-- Microsoft .Net Framework 3.5: INSTALLED
2009-07-17 00:07:50	-- Microsoft SQL Server 2008 Express Edition: NOT INSTALLED
2009-07-17 00:07:50	-- Traffic Summarizer 1.3.4: NOT INSTALLED
2009-07-17 00:07:52	Releasing components
2009-07-17 00:07:52	Components released
2009-07-17 00:07:52	Deleting temporary folder: C:\DOCUME~1\USURIO~1\CONFIG~1\Temp\\{1D320C47-F17D-4CAE-81A2-0A64F6AB8955}
2009-07-17 00:07:52	dotNetInstaller finished

log file from 1.7:

2009-07-17 00:07:26	-------------------------------------------------------------------
2009-07-17 00:07:26	dotNetInstaller (DNI) started, version 1.7.26017.0
2009-07-17 00:07:26	Copyright (c) DevAge, Vestris Inc. & Contributors
2009-07-17 00:07:26	Operating system: Windows XP Sp3
2009-07-17 00:07:26	-------------------------------------------------------------------
2009-07-17 00:07:26	Loaded configuration from embedded resource 'RES_CONFIGURATION'
2009-07-17 00:07:26	Loaded schema: version=1.7.26017.0, generator=dotNetInstaller InstallerEditor
2009-07-17 00:07:26	Loaded 'cmd' component 'Windows Installer 4.5 for Windows XP'
2009-07-17 00:07:26	Loaded 'cmd' component 'Windows Installer 4.5 for Windows 2003'
2009-07-17 00:07:26	Loaded 'cmd' component 'Windows Installer 4.5 for Windows Vista/2008'
2009-07-17 00:07:26	Loaded 'file' installed check 'C:\WINDOWS\Microsoft.NET\Framework\v3.5'
2009-07-17 00:07:26	Loaded 'cmd' component 'Microsoft .Net Framework 3.5'
2009-07-17 00:07:26	Loaded 'cmd' component 'Microsoft SQL Server 2008 Express Edition'
2009-07-17 00:07:26	Loaded 'msi' component 'C:\Documents and Settings\Usuário comum\Desktop\snifo\MyRelease\\TS-Setup.msi'
2009-07-17 00:07:26	Loaded 6 components from configuration type=1, lcid=, os_filter_greater=, os_filter_smaller=, processor_architecture_filter=
2009-07-17 00:07:26	--- Read 1 configuration(s)
2009-07-17 00:07:26	-- Windows Installer 4.5 for Windows XP: 0
2009-07-17 00:07:26	-- Windows Installer 4.5 for Windows 2003: 0
2009-07-17 00:07:26	-- Windows Installer 4.5 for Windows Vista/2008: 0
2009-07-17 00:07:26	-- Microsoft .Net Framework 3.5: 0
2009-07-17 00:07:26	-- Microsoft SQL Server 2008 Express Edition: 0
2009-07-17 00:07:26	-- Traffic Summarizer 1.3.4: 0
2009-07-17 00:07:32	dotNetInstaller finished


config file:

<?xml version="1.0" encoding="utf-8"?>
<configurations lcid_type="UserExe" configuration_no_match_message="" ui_level="full" fileversion="1.0" productversion="1.3.4.0">
  <schema version="1.7.26017.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="Traffic Summarizer Bootstrapper" dialog_message="In order to install Traffic Summarizer you must first install these components:" dialog_bitmap="#APPPATH\banner.bmp" skip_caption="Skip" install_caption="Install" cancel_caption="Close" status_installed=" (Installed)" status_notinstalled="" failed_exec_command_continue="Failed to install %s. Continue with others components?" installation_completed="Traffic Summarizer installed successfully!" installation_none="Traffic Summarizer is already installed!" installing_component_wait="Installing %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="" auto_close_if_installed="True" auto_close_on_error="False" allow_continue_on_error="True" dialog_show_installed="True" dialog_show_required="True" os_filter_greater="" os_filter_smaller="" processor_architecture_filter="" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="True" log_enabled="False" log_file="#TEMPPATH\dotNetInstallerLog.txt" 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="" type="install" lcid="">
    <component command=""#APPPATH\Support\WindowsXP-KB942288-v3-x86.exe" /q" command_silent="" command_basic="" os_filter_greater="79" os_filter_smaller="85" os_filter_lcid="" type="cmd" installcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="True" failed_exec_command_continue="" allow_continue_on_error="True" required="True" description="Windows Installer 4.5 for Windows XP" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" />
    <component command=""#APPPATH\Support\WindowsServer2003-KB942288-v4-x86.exe" /q" command_silent="" command_basic="" os_filter_greater="89" os_filter_smaller="95" os_filter_lcid="" type="cmd" installcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="True" failed_exec_command_continue="" allow_continue_on_error="True" required="True" description="Windows Installer 4.5 for Windows 2003" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" />
    <component command=""wusa.exe" /quiet /norestart "#APPPATH\Support\Windows6.0-KB942288-v2-x86.msu"" command_silent="" command_basic="" os_filter_greater="99" os_filter_smaller="111" os_filter_lcid="" type="cmd" installcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="True" failed_exec_command_continue="" allow_continue_on_error="True" required="True" description="Windows Installer 4.5 for Windows Vista/2008" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" />
    <component command=""#APPPATH\Support\dotnetfx35.exe" /q /norestart" command_silent="" command_basic="" os_filter_greater="" os_filter_smaller="" os_filter_lcid="" type="cmd" installcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="True" failed_exec_command_continue="" allow_continue_on_error="True" required="True" description="Microsoft .Net Framework 3.5" note="" processor_architecture_filter="" status_installed="" status_notinstalled="">
      <installedcheck filename="#WINDOWSPATH\Microsoft.NET\Framework\v3.5" fileversion="" comparison="exists" type="check_file" description="Installed Check" />
    </component>
    <component command=""#APPPATH\MyRelease\SQLEXPR_x86_ENU.exe" /QUIET" 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="True" required="True" description="Microsoft SQL Server 2008 Express Edition" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" />
    <component package="#APPPATH\TS-Setup.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb" os_filter_greater="" os_filter_smaller="" os_filter_lcid="" type="msi" installcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" required="True" description="Traffic Summarizer 1.3.4" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" />
  </configuration>
</configurations>

 

Coordinator
Jul 17, 2009 at 5:25 PM

Fixed in rev. 26064. I uploaded a new build, 1.7.26071.0, has this and several more bug fixes. Let me know if it works for you.

Jul 20, 2009 at 3:00 PM

In the current version (1.7.26074.0 downloaded today) the generated setup did not run. The error bellow:

 

 

Sorry for my brazillian portuguese windows. The message means something like "Was impossible to locate the entry point for method RedDeleteKeyExW in dinamic library ADVAPI32.dll".

Coordinator
Jul 20, 2009 at 10:14 PM

Fixed in rev. 26121. I tested all of XP, Vista, 2003 and Windows 98. Thanks for testing, I am still making large changes, there's going to be more bugs :) Build updated.

Jul 21, 2009 at 8:14 AM

More from 1.7 (26133)

* Still not detecting the Framework .Net 3.5 with check_file/exists/#WINDOWSPATH\Microsoft.NET\Framework\v3.5;
* In Windows Vista the created exe does not run with the error "The parameter is incorrect" if you try it from virtual pc shared folder. I cannot test if it happen in network folders too;
* Cmd componentes fail to execute when I try to define the 'command_silent' and 'command_basic' attributes. I didn't understand which is the default behaviour, but all got working back when I defined only 'command' attribute (just copied from 'command_basic').

For me 1.7 is almost working. Good job.

Coordinator
Jul 21, 2009 at 4:08 PM

You can no longer use check_file for checking whether a directory exists. This produced meaningless behaviors with version checks. In 1.7.26143.0 I've added a check_directory. Replace your check with it, let me know if it works.

I need a log file from your virtual pc shared folder execution, I wasn't able to repro this - I do have a VPC setup so maybe you can give me a bit more details on how you run this too? Please run dotNetInstaller.exe /log /logfile install.log.

Cmd components commands are separate things. The regular one runs on regular install. The basic one runs when you specify /qb (basic UI mode) as a command line parameter to dotNetInstaller.exe. The silent one runs when you specify /qn (silent UI mode). Let me know if this explains the behavior you were seeing or whether there's a possible bug.

cheers
dB.