Problem embedding banner.

Jan 29, 2010 at 9:51 PM
Edited Jan 29, 2010 at 10:12 PM

I'm trying to use the following command to build a setup package and any time I try to include the banner, I get "ERROR: The system cannot open the device or file specified".

 

"c:\Program Files\dotNetInstaller\bin\installerlinker.exe" /Output:COPsyncQASetup.exe /Banner:banner.bmp /Template:dotNetInstaller.exe /Configuration:configuration.xml /Verbose /Embed+

In the meantime I will be removing the banner. If you need any more information, let me know.

*EDIT: Added 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="1.0.0.0" productversion="2.11.13" log_enabled="True" log_file="#TEMPPATH\#GUID.log">
  <schema version="1.8.7120.0" generator="dotNetInstaller InstallerEditor" />
  <fileattributes>
    <fileattribute name="CompanyName" value="COPsync, Inc." />
    <fileattribute name="ProductName" value="COPsync QA" />
    <fileattribute name="fileversion" value="1.0.0.0" />
    <fileattribute name="productversion" value="2.11.13" />
    <fileattribute name="LegalCopyright" value="Copyright (c) COPsync, Inc." />
  </fileattributes>
  <configuration dialog_caption="COPsync QA Installer" dialog_message="In order to install COPsync QA you must first install these components:" dialog_message_uninstall="Click Uninstall to uninstall COPsync." 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." installation_completed="COPsync QA installed successfully!" installation_none="COPsync QA 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="www.copsync.com" dialog_otherinfo_link="http://www.copsync.com" complete_command="" complete_command_silent="" complete_command_basic="" wait_for_complete_command="True" auto_close_if_installed="True" auto_close_on_error="False" allow_continue_on_error="False" dialog_show_installed="True" dialog_show_uninstalled="True" dialog_show_required="True" cab_dialog_message="Extracting %s ..." cab_cancelled_message="Cancelled by user!" cab_dialog_caption="Setup.cab" cab_path="#TEMPPATH\#GUID" cab_path_autodelete="True" dialog_position="0,0,0,340" dialog_components_list_position="10,140,435,0" dialog_message_position="10,120,435,20" dialog_bitmap_position="0,0,435,100" dialog_otherinfo_link_position="10,260,0,0" dialog_osinfo_position="0,285,0,0" dialog_install_button_position="0,260,0,0" dialog_cancel_button_position="0,260,0,0" dialog_skip_button_position="" auto_start="False" auto_continue_on_reboot="False" reboot_cmd="" type="install" lcid_filter="" language_id="" language="" os_filter_greater="82" os_filter_smaller="" processor_architecture_filter="" supports_install="True" supports_uninstall="True">
    <component command="cmd.exe /C &quot;#CABPATH\NetFx20SP1_x86.exe&quot; /c:install /norestart /qb" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="3010" id="Microsoft .NET Framework 2.0 SP1 (x86)" display_name="Microsoft .NET Framework 2.0 SP1 (x86)" os_filter_greater="" os_filter_smaller="102" os_filter_lcid="" type="cmd" installcompletemessage="" uninstallcompletemessage="" mustreboot="True" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="False" required="True" note="English - Standard - x86 - .NET Framework 2.0 SP1" processor_architecture_filter="x86" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False">
      <installedcheck path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" fieldname="Version" fieldvalue="2.1.21022" fieldtype="REG_SZ" comparison="version" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
      <embedfile sourcefilepath="#APPPATH\SupportFiles\dotNet2.0_SP1_x86\NetFx20SP1_x86.exe" targetfilepath="NetFx20SP1_x86.exe" />
    </component>
    <component command="cmd.exe /C &quot;#CABPATH\CRRedist2008_x86.msi&quot;" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="" id="Crystal Reports 10.5 (x86)" display_name="Crystal Reports 10.5 (x86)" os_filter_greater="" os_filter_smaller="" os_filter_lcid="" type="cmd" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" required="True" note="" processor_architecture_filter="x86" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False">
      <installedcheck path="SOFTWARE\Business Objects\10.5\Crystal Reports" fieldname="Path" fieldvalue="1" fieldtype="REG_SZ" comparison="exists" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value" description="Installed Check" />
    </component>
    <component command="cmd.exe /C &quot;#CABPATH\CRRedist2008_x64.msi&quot;" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="" id="Crystal Reports 10.5 (x64)" display_name="Crystal Reports 10.5 (x64)" os_filter_greater="" os_filter_smaller="" os_filter_lcid="" type="cmd" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" required="True" note="" processor_architecture_filter="x64" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False">
      <installedcheck path="SOFTWARE\Business Objects\10.5\Crystal Reports" fieldname="Path" fieldvalue="1" fieldtype="REG_SZ" comparison="exists" rootkey="HKEY_LOCAL_MACHINE" wowoption="WOW64_64" type="check_registry_value" description="Installed Check" />
    </component>
    <component package="#CABPATH\COPsyncSetupQA_x86.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" id="COPsync QA x86" display_name="COPsync QA x86" os_filter_greater="82" os_filter_smaller="" os_filter_lcid="" type="msi" installcompletemessage="COPsync QA has been successfully installed." uninstallcompletemessage="COPsync QA has been successfully uninstalled." mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" required="True" note="" processor_architecture_filter="x86" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True">
      <installedcheck id="e82c0da0-de6a-4b88-ad99-ebf6832df2e4" id_type="upgradecode" propertyname="ProductVersion" propertyvalue="2.11.13" comparison="exists" type="check_product" description="Installed Check" />
      <embedfile sourcefilepath="#APPPATH\SupportFiles\COPsyncSetupQA_x86.msi" targetfilepath="Crystal\COPsyncSetupQA_x86.msi" />
    </component>
    <component package="#CABPATH\COPsyncSetupQA_x64.msi" cmdparameters="" cmdparameters_silent="/qn" cmdparameters_basic="/qb-" uninstall_cmdparameters="/qb-" uninstall_cmdparameters_silent="/qn" uninstall_cmdparameters_basic="/qb-" id="COPsync QA x64" display_name="COPsync QA x64" os_filter_greater="82" os_filter_smaller="" os_filter_lcid="" type="msi" installcompletemessage="COPsync QA has been successfully installed." uninstallcompletemessage="COPsync QA has been successfully uninstalled." mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" required="True" note="" processor_architecture_filter="x64" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True">
      <installedcheck id="e82c0da0-de6a-4b88-ad99-ebf6832df2e4" id_type="upgradecode" propertyname="ProductVersion" propertyvalue="2.11.13" comparison="exists" type="check_product" description="Installed Check" />
      <embedfile sourcefilepath="#APPPATH\SupportFiles\COPsyncSetupQA_x64.msi" targetfilepath="COPsyncSetupQA_x64.msi" />
    </component>
    <embedfolder sourcefolderpath="#APPPATH\SupportFiles\Setup" targetfolderpath="" />
  </configuration>
</configurations>

 

 

Coordinator
Jan 30, 2010 at 4:48 PM

Try a full path to banner.bmp first. Then, can you please post the whole output from InstallerLinker? It should be saying something like "Embedding banner ... <full banner path>", maybe it just gets resolved wrong?

 

Feb 1, 2010 at 3:15 PM

It appears to have fixed it's self over the weekend. I know I was having some issues with the GUI and InstallerLinker saying it couldn't access the device or file, but now it seems to be working just fine.