Problems trying to embed a file

Jan 6, 2011 at 9:18 PM

Hi,

I'm trying to create a setup file but I'm unable to embed files inside it. The idea is that the msi (built with WiX) and some pre-requisites will be bundled together in a single Setup.exe file. This is what my configuration.xml looks right now:

<?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="1.10.1525.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="C Tech Office Exporter Installer" dialog_message="In order to install C Tech Office Exporter you must first install these components:" dialog_message_uninstall="" dialog_bitmap="" 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="C Tech Office Exporter installed successfully!" uninstallation_completed="C Tech Office Exporter uninstalled successfully!" installation_none="C Tech Office Exporter is already installed!" uninstallation_none="C Tech Office Exporter 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="False" 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" 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="'#CABPATH\CTechOfficeExporterSetupx86.msi'" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_package="" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" id="C Tech Office Exporter x86" display_name="C Tech Office Exporter x86" 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="False" default_continue_on_error="False" required_install="True" required_uninstall="True" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="x86" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True" show_progress_dialog="True" show_cab_dialog="True">
      <installedcheck path="SOFTWARE\C Tech\C Tech Office Exporter" fieldname="Install" fieldvalue="1" defaultvalue="False" fieldtype="REG_DWORD" comparison="match" rootkey="HKEY_CURRENT_USER" wowoption="NONE" type="check_registry_value" description="Installed Check" />
      <embedfile sourcefilepath="'#APPPATH\Files\CTechOfficeExporterSetupx86.msi'" targetfilepath="'CTechOfficeExporterSetupx86.msi'" />
    </component>
  </configuration>
</configurations>

My folders structure is something like this:

c:\development\svn\bootstrapper

That folder has the configuration.xml file and the dotnetinstaller.exe template.

c:\development\svn\bootstrapper\files

That folder contains the CTechOfficeExporterSetupx86.msi (it will contain more files in the future). Everytime I try to Create an Exe with the Installer Editor I get the error: Missing 1 embedded file(s)

And the stacktrace is:

System.Exception: Missing 1 embedded file(s)
   at InstallerLib.EmbedFileCollection.CheckFilesExist(InstallerLinkerArguments args)
   at InstallerLib.InstallerLinker.CreateInstaller(InstallerLinkerArguments args)
   at InstallerEditor.MakeExe.btMake_Click(Object sender, EventArgs e)

Any help? Regards,

Vicente

Coordinator
Jan 6, 2011 at 10:00 PM

You should start using the command-line InstallLinker, it lets you define that #APPPATH. That will also give you detailed output of what's not found.