2013-04-30 49 views
0

我有一个设置我的项目名称Final__.msi。在安装项目设置之前,我想安装Sqlserver R2 Express。所以我使用dotnetinstaller来创建exe文件。我已经把我所有的预requites文件文件夹下的名supportedFiles使用dotnetInstaller(installer.exe)进行设置时出错

这里我的文件夹结构

enter image description here


现在我加入Exe component安装SQL Server。
无论我这样做不对通过设置executable作为#APPPATH \ SUppotedFIels \ sql.exe

enter image description here

现在在创建EXE我得到这个错误

enter image description here

这是我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> 

回答

0

您可以将SQLEXPWT_X86_ENU.exe的其他Cab文件添加为Final___.msi

然后,Install\Executable参数从值改为:

#APPPATH\SUppotedFIels\sql.exe 

价值:

#CABPATH\SQLEXPWT_X86_ENU.exe 

如果你打开你的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> 

详细说明:

<?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> 
+0

thnsnk for reply,那么embededfile的''resourcepath'是什么'#APPPATH \ SupportedFiles \ FinalSecs.msi' – 2013-04-30 09:13:58

+0

同样在'install' - >'自解压CAB''''' cab_path' '#TEMPPATH \#GUID',在这里设置什么? – 2013-04-30 09:24:58

+0

我已经设置了我的配置文件,请看看 – 2013-04-30 10:03:22

相关问题