简体   繁体   English

使用dotnetInstaller(installer.exe)进行安装时出错

[英]Error while making setup using dotnetInstaller (installer.exe)

I have a setup of my project names a Final__.msi . 我的项目名称为Final__.msi Before installing project setup i want to install Sqlserver R2 Express . 在安装项目安装程序之前,我要安装Sqlserver R2 Express So i use dotnetinstaller to created exe . 所以我用dotnetinstaller来创建exe。 I have put all my pre-requites file under folder names supportedFiles 我已将所有我的预先申报文件放在受支持的文件夹名称下

Here my Folder structure : 这是我的文件夹结构

在此处输入图片说明


Now i added Exe component for installing sql server. 现在,我添加了用于安装sql server的Exe component
Whether i am doing it wrong by setting executable as #APPPATH\\SUppotedFIels\\sql.exe 通过将executable设置为#APPPATH \\ SUppotedFIels \\ sql.exe,我是否做错了

在此处输入图片说明

Now while creating EXE i got this error 现在在创建EXE时出现此错误

在此处输入图片说明

This is my Configuration.xml : 这是我的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="#TEMPPATH\dotNetInstallerLog.txt">
  <schema version="2.2.824.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="SECS Installer" dialog_message="In order to install SECS 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 other components?" installation_completed="SECS installed successfully!" uninstallation_completed="SECS uninstalled successfully!" installation_none="SECS is already installed!" uninstallation_none="SECS 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="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="True" administrator_required_message="SECS 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 executable="#CABPATH\SQLEXPWT_X86_ENU.exe" executable_silent="" executable_basic="" install_directory="" responsefile_source="" responsefile_target="" responsefile_format="none" uninstall_executable="" uninstall_executable_silent="" uninstall_executable_basic="" uninstall_responsefile_source="" uninstall_responsefile_target="" returncodes_success="" returncodes_reboot="3010" exeparameters="" exeparameters_basic="" exeparameters_silent="" uninstall_exeparameters="" uninstall_exeparameters_basic="" uninstall_exeparameters_silent="" disable_wow64_fs_redirection="False" id="SQLEXPRWT_x86_ENU" display_name="SQLEXPRWT_x86_ENU" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="exe" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="True" 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="False" show_progress_dialog="True" show_cab_dialog="True">
      <embedfile sourcefilepath="#APPPATH\SupportedFiles\SQLEXPRWT_x86_ENU.exe" targetfilepath="SupportedFiles\SQLEXPRWT_x86_ENU.exe" />
    </component>
    <component package="#CABPATH\FinalSecs.msi" cmdparameters="" 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="FinalSecs" display_name="FinalSecs" 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">
      <embedfile sourcefilepath="#APPPATH\SupportedFiles\Final___.msi" targetfilepath="SupportedFiles\Final___.msi" />
    </component>
  </configuration>
</configurations>

You can add other Cab file for SQLEXPWT_X86_ENU.exe as Final___.msi . 您可以将SQLEXPWT_X86_ENU.exe其他Cab文件添加为Final___.msi

Then, change Install\\Executable parameter from value: 然后,从值更改Install\\Executable参数:

#APPPATH\SUppotedFIels\sql.exe

to value: 值:

#CABPATH\SQLEXPWT_X86_ENU.exe

If you open your dotNetInstaller xml configuration file, you should have something like this: 如果打开dotNetInstaller xml配置文件,则应具有以下内容:

  ...
  <configuration ...>
    ...
    <component package="#CABPATH\Final___.msi" ... />
    <component package="#CABPATH\SQLEXPWT_X86_ENU.exe" ... />
    <embedfile sourcefilepath="yourResourcePath\Final___.msi" targetfilepath="" />
    <embedfile sourcefilepath="yourResourcePath\SupportedFiles\SQLEXPWT_X86_ENU.exe" targetfilepath="" />
  </configuration>

Detailed: 详细:

<?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" />
  <configuration dialog_caption="SECS Installer" dialog_message="In order to install SECS 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 other components?" installation_completed="SECS installed successfully!" uninstallation_completed="SECS uninstalled successfully!" installation_none="SECS is already installed!" uninstallation_none="SECS 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="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="True" administrator_required_message="SECS 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 executable="#CABPATH\SupportedFiles\SQLEXPWT_X86_ENU.exe" executable_silent="" executable_basic="" install_directory="" responsefile_source="" responsefile_target="" responsefile_format="none" uninstall_executable="" uninstall_executable_silent="" uninstall_executable_basic="" uninstall_responsefile_source="" uninstall_responsefile_target="" returncodes_success="" returncodes_reboot="3010" exeparameters="" exeparameters_basic="" exeparameters_silent="" uninstall_exeparameters="" uninstall_exeparameters_basic="" uninstall_exeparameters_silent="" disable_wow64_fs_redirection="False" id="SQLEXPRWT_x86_ENU" display_name="SQLEXPRWT_x86_ENU" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="exe" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="True" 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="False" show_progress_dialog="True" show_cab_dialog="True">
      <embedfile sourcefilepath="SupportedFiles\SQLEXPRWT_x86_ENU.exe" targetfilepath="SupportedFiles\SQLEXPRWT_x86_ENU.exe" />
    </component>
    <component package="#CABPATH\Final___.msi" cmdparameters="" 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="FinalSecs" display_name="FinalSecs" 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">
      <embedfile sourcefilepath="SupportedFiles\Final___.msi" targetfilepath="Final___.msi" />
    </component>
  </configuration>
</configurations>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Windows Installer安装过程中运行第三者exe(使用安装和部署项目) - how to run a 3rd party exe during a windows installer installation (using setup and deployment project) C#Visual Studio安装程序设置项目输出为一个.exe - c# visual studio installer setup project output as one .exe MSI安装程序相对于标准setup.exe有什么好处? - What are the benefits of a MSI installer over a standard setup.exe? 在运行安装程序(安装程序类)时创建表时,针对版本&#39;v2.0.50727&#39;..的混合模式组装错误 - Error Mixed mode assembly against version 'v2.0.50727' .. when creating tables while running setup , Installer class 在另一个安装程序中启动安装程序 (setup.exe),程序不会出现在已安装程序列表中 - Launching an installer (setup.exe) within another installer, program will not appear on installed programs list 使用dotNetInstaller检查是否已安装SQL Server 2008 - Using dotNetInstaller to check whether SQL Server 2008 is installed 在Installer项目中使用自定义操作提交.exe失败 - Commiting .exe fails using Custom Action in Installer Project 如何创建安装程序,以安装第三方安装程序(exe)并将自定义文件定位到同一目录? - How to create a installer, that installs a 3rd-Party Setup (exe) and locates custom files to the same directory? 尝试构建WiX安装程序时出错 - Error while trying to build WiX installer 在Windows 7上使用服务安装程序安装Windows服务时出现“无法打开Security Manager数据库”错误 - “Unable to open the Security Manager Database” Error while installing a windows service using service installer on Windows 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM