User-defined edit value not being set by htmlInstaller

Mar 20, 2012 at 10:39 PM
Edited Mar 20, 2012 at 10:40 PM

I'm using htmlInstaller version 2.0.81.0 and I can't seem to get user-defined values passed to my components. I've created a form field in the HTML source using (input type="text" id="TestValue" value="123" /), using angle brackets of course, but dotNetInstaller.log always show a blank value as if no input was provided.

Am I doing something wrong here?

Thanks for any guidance!

dotNetInstaller.log:

 

2012-03-20 15:34:26	-------------------------------------------------------------------
2012-03-20 15:34:26	dotNetInstaller (DNI), version 2.0.81.0
2012-03-20 15:34:26	Copyright (c) DevAge, Vestris Inc. & Contributors
2012-03-20 15:34:26	Operating system: Windows 7 SP1
2012-03-20 15:34:26	-------------------------------------------------------------------
2012-03-20 15:34:26	Sequence: install
2012-03-20 15:34:26	UI level: full
2012-03-20 15:34:26	Configuration language id: 1033 
2012-03-20 15:34:26	-- Loading supported components (lcid=1033)
2012-03-20 15:34:26	-- mysetup.msi (display_name='mysetup.msi', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 15:34:26	--- Loaded 1 supported component(s)
2012-03-20 15:34:26	-- mysetup.msi (mysetup.msi): NOT INSTALLED
2012-03-20 15:34:27	-- Loading supported components (lcid=1033)
2012-03-20 15:34:27	-- mysetup.msi (display_name='mysetup.msi', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 15:34:27	--- Loaded 1 supported component(s)
2012-03-20 15:34:27	--- Setting user-defined edit value 'TestValue'=
2012-03-20 15:34:27	Extracting embedded files for component '*': NO FILES EMBEDDED
2012-03-20 15:34:27	--- Component 'mysetup.msi' (mysetup.msi): EXECUTING
2012-03-20 15:34:27	Extracting embedded files for component 'mysetup.msi': NO FILES EMBEDDED
2012-03-20 15:34:27	-- Package: C:\Users\sjennings\Code\dotNetInstaller Project Template - Copy\mysetup.msi
2012-03-20 15:34:27	-- Additional command-line parameters: /1  /2
2012-03-20 15:34:27	Executing: msiexec /i "C:\Users\sjennings\Code\dotNetInstaller Project Template - Copy\mysetup.msi" /1  /2
2012-03-20 15:34:27	--- Component 'mysetup.msi (mysetup.msi): FINISHED
2012-03-20 15:34:28	*** Component 'mysetup.msi' (mysetup.msi): ERROR - Error executing 'mysetup.msi' (mysetup.msi): 1639 (0x667)
2012-03-20 15:34:28	--- Component 'mysetup.msi (mysetup.msi)' FAILED: Error executing 'mysetup.msi' (mysetup.msi): 1639 (0x667)
2012-03-20 15:34:29	--- Component 'mysetup.msi (mysetup.msi): FAILED, ABORTING
2012-03-20 15:34:29	*** Failed to install one or more components, reloading components (reload_on_error).
2012-03-20 15:34:29	-- Loading supported components (lcid=1033)
2012-03-20 15:34:29	-- mysetup.msi (display_name='mysetup.msi', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2012-03-20 15:34:29	--- Loaded 1 supported component(s)
2012-03-20 15:34:29	-- mysetup.msi (mysetup.msi): NOT INSTALLED
2012-03-20 15:34:34	htmlInstaller finished, return code: 1639 (0x667)

 

HTML source:

 

<html>
 <head>
 </head>
 <body>
  <div id="content">
   <div id="components" />
   <input type="text" id="TestValue" value="123" />
   <div id="error" />
   <widget type="progress" id="progress" />
   <div id="buttons">
    <input id="button_install" type="button" value="Install" />
    <input id="button_uninstall" type="button" value="Uninstall" />
    <input id="button_skip" type="button" value="Skip" />
    <input id="button_cancel" type="button" value="Cancel" />
   </div>
  </div>
  <div id="bottombar">
   <div id="status">Loaded</div>
   <div id="corner">o</div>
  </div>
 </body>
</html>

 

Configuration.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="True" log_file="dotNetInstallerLog.log">
  <schema version="2.0.81.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="APPLICATION_NAME Installer" dialog_message="In order to install APPLICATION_NAME 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 others components?" installation_completed="APPLICATION_NAME installed successfully!" uninstallation_completed="APPLICATION_NAME uninstalled successfully!" installation_none="APPLICATION_NAME is already installed!" uninstallation_none="APPLICATION_NAME 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="APPLICATION_NAME 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\mysetup.msi" cmdparameters="/1 [TestValue] /2" 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="mysetup.msi" display_name="mysetup.msi" 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="True" required_uninstall="True" 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" />
    <embedfolder sourcefolderpath="#APPPATH" targetfolderpath="" />
  </configuration>
</configurations>
Coordinator
Mar 20, 2012 at 11:18 PM

Does it change if you enter a value by hand?

I don't see anything wrong otherwise, but I haven't done this in a while. So this will need some debugging.

Do me a favor. Take a sample from the source and extend it with a repro of this situation. File a bug. It's probably something simple that I just don't see from this. Of course would love if someone actually debugged it - the code is pretty clearly trying to fetch an element with this ID and use its contents.

Mar 26, 2012 at 11:32 PM

Thanks. I created work item 10447 for this.