Skip to content

Installation aborts if Windows Useraccount has # sign in name #42

Open
khwb1 opened this Issue Mar 13, 2013 · 4 comments

2 participants

@khwb1
khwb1 commented Mar 13, 2013

If a dotnetInstaller package is run on a Windows Useraccount named like 'test#usr', the installation will be aborted by showing a popup message:
Invalid variable #U in 'C:\Users\TEST#U~1\AppData\Local\Temp{MyInstallerGUID}'

If I use #CABPATH or #TEMPPATH in the config file to create a installer package then tis issue will occur.
By replacing #CABPATH with a folder path not containing the # sign, the installation will run.

@dblock
Owner
dblock commented Mar 13, 2013

If you have a log file for the failure, that could be useful. We do path expansion in a few places and clearly we should only be expanding user configuration data once.

@khwb1
khwb1 commented Mar 14, 2013
@dblock
Owner
dblock commented Mar 14, 2013

Github doesn't do attachments. Please link those from the website.

@khwb1
khwb1 commented Mar 14, 2013

OK. I'm new to github.

Here is the logfile contents:

2013-03-14 08:29:25 -------------------------------------------------------------------
2013-03-14 08:29:25 dotNetInstaller (DNI) started, version 2.2.824.0
2013-03-14 08:29:25 Copyright (c) DevAge, Vestris Inc. & Contributors
2013-03-14 08:29:25 Operating system: Windows 7 SP1 (x64)
2013-03-14 08:29:25 -------------------------------------------------------------------
2013-03-14 08:29:25 Sequence: install
2013-03-14 08:29:25 Loaded configuration from embedded resource 'RES_CONFIGURATION'
2013-03-14 08:29:25 Loaded schema: version=2.2.824.0, generator=dotNetInstaller InstallerEditor
2013-03-14 08:29:25 Read file attribute: name=FileDescription, value=Starts the installation of DotNetInstaller_WiX
2013-03-14 08:29:25 Read file attribute: name=CompanyName, value=WIBU SYSTEMS AG
2013-03-14 08:29:25 Read file attribute: name=LegalCopyright, value=(c) 2011 WIBU SYSTEMS AG
2013-03-14 08:29:25 Read file attribute: name=Comments, value=second call starts arp dialog, uninstall via /x
2013-03-14 08:29:25 Read file attribute: name=ProductName, value=DotNetInstaller_WiX
2013-03-14 08:29:25 Read 5 file attribute(s)
2013-03-14 08:29:25 Loaded IDotNetInstaller_WiX, display_name='Install DotNetInstaller_WiX', os_filter_min=Windows XP
2013-03-14 08:29:25 Loaded 'product' installed check 'caff0a2b-ca39-4e4e-84b8-d61af5d1c8c8'
2013-03-14 08:29:25 Loaded UDotNetInstaller_WiX, display_name='Uninstall DotNetInstaller_WiX', os_filter_min=Windows XP
2013-03-14 08:29:25 Loaded 2 component(s) from configuration type=1 (lcid_filter=!1031,!1036, os_filter=, os_filter_min=Windows XP, os_filter_max=, processor_architecture_filter=)
2013-03-14 08:29:25 Loaded IDotNetInstaller_WiX, display_name='Install DotNetInstaller_WiX', os_filter_min=Windows XP
2013-03-14 08:29:25 Loaded 'product' installed check 'caff0a2b-ca39-4e4e-84b8-d61af5d1c8c8'
2013-03-14 08:29:25 Loaded UDotNetInstaller_WiX, display_name='Uninstall DotNetInstaller_WiX', os_filter_min=Windows XP
2013-03-14 08:29:25 Loaded 2 component(s) from configuration type=1 (lcid_filter=1031, os_filter=, os_filter_min=Windows XP, os_filter_max=, processor_architecture_filter=)
2013-03-14 08:29:25 Loaded IDotNetInstaller_WiX, display_name='Install DotNetInstaller_WiX', os_filter_min=Windows XP
2013-03-14 08:29:25 Loaded 'product' installed check 'caff0a2b-ca39-4e4e-84b8-d61af5d1c8c8'
2013-03-14 08:29:25 Loaded UDotNetInstaller_WiX, display_name='Uninstall DotNetInstaller_WiX', os_filter_min=Windows XP
2013-03-14 08:29:25 Loaded 2 component(s) from configuration type=1 (lcid_filter=1036, os_filter=, os_filter_min=Windows XP, os_filter_max=, processor_architecture_filter=)
2013-03-14 08:29:25 --- Read 3 configuration(s)
2013-03-14 08:29:25 Lcid type: UserExe
2013-03-14 08:29:25 Operating system language id: 1033
2013-03-14 08:29:25 -- Loading supported configurations (lcid=1033)
2013-03-14 08:29:25 -- Loading supported configurations (lcid=1033)
2013-03-14 08:29:25 UI level: full
2013-03-14 08:29:25 Configuration language id: 1033 
2013-03-14 08:29:25 -- Loading supported components (lcid=1033)
2013-03-14 08:29:25 -- IDotNetInstaller_WiX (display_name='Install DotNetInstaller_WiX', os_filter_lcid=, os_filter=, os_filter_min=Windows XP, os_filter_max=, processor_architecture_filter=): LOADED
2013-03-14 08:29:25 -- UDotNetInstaller_WiX (display_name='Uninstall DotNetInstaller_WiX', os_filter_lcid=, os_filter=, os_filter_min=Windows XP, os_filter_max=, processor_architecture_filter=): SKIPPED
2013-03-14 08:29:25 --- Loaded 1 supported component(s)
2013-03-14 08:29:25 -- IDotNetInstaller_WiX (Install DotNetInstaller_WiX): NOT INSTALLED
2013-03-14 08:29:25 All required components installed: no
2013-03-14 08:29:25 All optional components installed: yes
2013-03-14 08:29:25 Start: install
2013-03-14 08:29:25 Configuration defines auto-start: automatically starting install
2013-03-14 08:29:26 -- Loading supported components (lcid=1033)
2013-03-14 08:29:26 -- IDotNetInstaller_WiX (display_name='Install DotNetInstaller_WiX', os_filter_lcid=, os_filter=, os_filter_min=Windows XP, os_filter_max=, processor_architecture_filter=): LOADED
2013-03-14 08:29:26 -- UDotNetInstaller_WiX (display_name='Uninstall DotNetInstaller_WiX', os_filter_lcid=, os_filter=, os_filter_min=Windows XP, os_filter_max=, processor_architecture_filter=): SKIPPED
2013-03-14 08:29:26 --- Loaded 1 supported component(s)
2013-03-14 08:29:26 Extracting embedded files for component '*': 1 CAB(s)
2013-03-14 08:29:27 *** Failed to install one or more components: Invalid variable #W in 'C:\Users\TEST#W~1\AppData\Local\Temp\{59C06C84-16A8-4025-A56D-B597E346EA07}'
2013-03-14 08:29:35 Error terminating dotNetInstaller: Invalid variable #W in 'C:\Users\TEST#W~1\AppData\Local\Temp\{59C06C84-16A8-4025-A56D-B597E346EA07}'
2013-03-14 08:29:36 dotNetInstaller finished, return code: -1 (0xffffffff)

And here the configuration

<?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="#TEMPPATH\dotNetInstallerLog.txt">
  <schema version="2.2.824.0" generator="dotNetInstaller InstallerEditor" />
  <fileattributes>
    <fileattribute name="FileDescription" value="Starts the installation of DotNetInstaller_WiX" />
    <fileattribute name="CompanyName" value="MyCompany" />
    <fileattribute name="LegalCopyright" value="(c) 2013 MyCompany" />
    <fileattribute name="Comments" value="second call starts arp dialog, uninstall via /x" />
    <fileattribute name="ProductName" value="DotNetInstaller_WiX" />
  </fileattributes>
  <configuration dialog_caption="DotNetInstaller_WiX Installer" dialog_message="In order to install DotNetInstaller_WiX Installer 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="DotNetInstaller_WiX Installer installed successfully!" uninstallation_completed="DotNetInstaller_WiX Installer uninstalled successfully!" installation_none="DotNetInstaller_WiX Installer is already installed!" uninstallation_none="DotNetInstaller_WiX Installer 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" prompt_for_optional_components="False" auto_close_if_installed="True" auto_close_on_error="True" reload_on_error="True" dialog_show_installed="True" dialog_show_uninstalled="True" dialog_show_required="False" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="Extracting MSI Installer" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="False" 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="True" auto_continue_on_reboot="False" reboot_cmd="" show_progress_dialog="False" 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="!1031,!1036" language_id="" language="" os_filter="" os_filter_min="winXP" os_filter_max="" processor_architecture_filter="" supports_install="True" supports_uninstall="True">
    <component package="#CABPATH\DotNetInstaller_WiX.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="#CABPATH\DotNetInstaller_WiX.msi" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="IDotNetInstaller_WiX" display_name="Install DotNetInstaller_WiX" uninstall_display_name="" os_filter="" os_filter_min="winXP" 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="True" 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="False" show_cab_dialog="True" />
    <component package="#CABPATH\DotNetInstaller_WiX.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="#CABPATH\DotNetInstaller_WiX.msi" uninstall_cmdparameters="" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="UDotNetInstaller_WiX" display_name="Uninstall DotNetInstaller_WiX" uninstall_display_name="" os_filter="" os_filter_min="winXP" 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="True" required_install="False" required_uninstall="True" selected_install="False" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="False" supports_uninstall="True" show_progress_dialog="False" show_cab_dialog="True">
      <installedcheck id="caff0a2b-ca39-4e4e-84b8-d61af5d1c8c8" id_type="upgradecode" propertyname="VersionString" propertyvalue="1.0.1.0" comparison="version" defaultvalue="False" type="check_product" description="Installed Check" />
    </component>
    <embedfile sourcefilepath="#APPPATH\DotNetInstaller_WiX.msi" targetfilepath="" />
  </configuration>
  <configuration dialog_caption="DotNetInstaller_WiX Installer" dialog_message="Um DotNetInstaller_WiX zu installieren müssen Sie zuerst ein Upgrade der folgende Komponenten durchführen:" dialog_message_uninstall="" dialog_bitmap="#APPPATH\banner.bmp" skip_caption="Skip" install_caption="Install" uninstall_caption="Uninstall" cancel_caption="Abbrechen" status_installed=" (Installiert)" status_notinstalled="" failed_exec_command_continue="Fehler beim Installieren von %s. Mit weiteren Komponenten fortfahren?" installation_completed="DotNetInstaller_WiX wurde erfolgreich installiert!" uninstallation_completed="DotNetInstaller_WiX wurde erfolgreich installiert!" installation_none="DotNetInstaller_WiX Installer ist bereits installiert!" uninstallation_none="DotNetInstaller_WiX Installer ist nicht installiert!" installing_component_wait="Installiere %s. Bitte warten. Dieser Vorgang kann einige Zeit in Anspruch nehmen ..." uninstalling_component_wait="Deinstalliere %s. Bitte warten. Dieser Vorgang kann einige Zeit in Anspruch nehmen ..." reboot_required="Um mit der Installation fortzufahren müssen Sie den Computer neu starten. Jetzt neustarten?" must_reboot_required="False" dialog_otherinfo_caption="" dialog_otherinfo_link="" complete_command="" complete_command_silent="" complete_command_basic="" wait_for_complete_command="True" prompt_for_optional_components="False" auto_close_if_installed="True" auto_close_on_error="True" reload_on_error="True" dialog_show_installed="True" dialog_show_uninstalled="True" dialog_show_required="False" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="Extrahiere MSI Installer" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="False" 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="True" auto_continue_on_reboot="False" reboot_cmd="" show_progress_dialog="False" 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="1031" language_id="1031" language="Deutsch" os_filter="" os_filter_min="winXP" os_filter_max="" processor_architecture_filter="" supports_install="True" supports_uninstall="True">
    <component package="#CABPATH\DotNetInstaller_WiX.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="#CABPATH\DotNetInstaller_WiX.msi" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="IDotNetInstaller_WiX" display_name="Install DotNetInstaller_WiX" uninstall_display_name="" os_filter="" os_filter_min="winXP" 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="True" 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="False" show_cab_dialog="True" />
    <component package="#CABPATH\DotNetInstaller_WiX.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="#CABPATH\DotNetInstaller_WiX.msi" uninstall_cmdparameters="" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="UDotNetInstaller_WiX" display_name="Uninstall DotNetInstaller_WiX" uninstall_display_name="" os_filter="" os_filter_min="winXP" 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="True" required_install="False" required_uninstall="True" selected_install="False" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="False" supports_uninstall="True" show_progress_dialog="False" show_cab_dialog="True">
      <installedcheck id="caff0a2b-ca39-4e4e-84b8-d61af5d1c8c8" id_type="upgradecode" propertyname="VersionString" propertyvalue="1.0.1.0" comparison="version" defaultvalue="False" type="check_product" description="Installed Check" />
    </component>
    <embedfile sourcefilepath="#APPPATH\DotNetInstaller_WiX.msi" targetfilepath="" />
  </configuration>
  <configuration dialog_caption="Installeur DotNetInstaller_WiX" dialog_message="Pour installer DotNetInstaller_WiX vous devez au préalable mettre à jour ces composants:" dialog_message_uninstall="" dialog_bitmap="#APPPATH\banner.bmp" skip_caption="Skip" install_caption="Installer" uninstall_caption="Désinstaller" cancel_caption="Fermer" status_installed=" (Installé)" status_notinstalled="" failed_exec_command_continue="Echec de l'installation de %s. Continuer l'installation des autres composants ?" installation_completed="Installation de DotNetInstaller_WiX réussie!" uninstallation_completed="Désinstallation de DotNetInstaller_WiX réussie!" installation_none="" uninstallation_none="" installing_component_wait="Installation de %s en cours. Patientez, cette operation peut prendre quelques instants ..." uninstalling_component_wait="Désinstallation de %s en cours. Patientez, cette operation peut prendre quelques instants ..." reboot_required="Pour continuer l'installation, l'ordinateur doit être redémarré. Redémarrer maintenant ?" must_reboot_required="False" dialog_otherinfo_caption="" dialog_otherinfo_link="" complete_command="" complete_command_silent="" complete_command_basic="" wait_for_complete_command="True" prompt_for_optional_components="False" auto_close_if_installed="True" auto_close_on_error="True" reload_on_error="True" dialog_show_installed="True" dialog_show_uninstalled="True" dialog_show_required="False" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="Extracting MSI Installer" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="False" 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="True" auto_continue_on_reboot="False" reboot_cmd="" show_progress_dialog="False" 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="1036" language_id="1036" language="Francais" os_filter="" os_filter_min="winXP" os_filter_max="" processor_architecture_filter="" supports_install="True" supports_uninstall="True">
    <component package="#CABPATH\DotNetInstaller_WiX.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="#CABPATH\DotNetInstaller_WiX.msi" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="IDotNetInstaller_WiX" display_name="Install DotNetInstaller_WiX" uninstall_display_name="" os_filter="" os_filter_min="winXP" 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="True" 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="False" show_cab_dialog="True" />
    <component package="#CABPATH\DotNetInstaller_WiX.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="#CABPATH\DotNetInstaller_WiX.msi" uninstall_cmdparameters="" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" disable_wow64_fs_redirection="False" id="UDotNetInstaller_WiX" display_name="Uninstall DotNetInstaller_WiX" uninstall_display_name="" os_filter="" os_filter_min="winXP" 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="True" required_install="False" required_uninstall="True" selected_install="False" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="False" supports_uninstall="True" show_progress_dialog="False" show_cab_dialog="True">
      <installedcheck id="caff0a2b-ca39-4e4e-84b8-d61af5d1c8c8" id_type="upgradecode" propertyname="VersionString" propertyvalue="1.0.1.0" comparison="version" defaultvalue="False" type="check_product" description="Installed Check" />
    </component>
    <embedfile sourcefilepath="#APPPATH\DotNetInstaller_WiX.msi" targetfilepath="" />
  </configuration>
</configurations>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.