我需要部署针对Windows 64位和32位的软件设置.我为每个平台都有两个独立的Windows Installer数据库(使用WiX创建),我使用dotNetInstaller将它们组合成一个安装的bootstrapper可执行文件.
我目前正在使用dotNetInstaller的1.10版并设置auto_close_if_installed=True,因为我想完全隐藏用户的引导程序.尽管如此,dotNetInstaller坚持在我的安装程序运行时显示窗台进度条窗口,并且不会自动关闭.用户需要确认一个对话框,告诉他应用程序已成功安装.但真正的交易破坏者是它还不支持Windows 8.
升级到更高版本的dotNetInstaller似乎打破了auto_close_if_installed,所以情况更糟.
所以我的问题是:在一个可执行文件中部署这两个设置的当前技术水平是什么.Wix Burn会成为一个选择吗?
我知道在理想的世界里,我只是为我的客户提供单独的安装程序.但他们碰巧完全没有意识到这些微妙之处,他们中的大多数甚至都不知道他们正在使用什么平台.
我目前正在使用wix工具集3.8开发一个msi安装程序.
此安装程序必须是"多实例",这可以通过<InstanceTransform>wix中的指令实现.(感谢Yan Sklyarenko和他关于多实例msi的博客文章
现在,我可以创建一个多个实例msi,我知道安装/更新/删除我的产品的特定实例的cmdlines.
但是,"InstanceTransforms"技巧不适用于wix bootstrapper(刻录),我需要一个轻松安装我的产品(我不会要求用户键入一些cmdlines并找到正确的产品代码...... )
现在,我正在寻找一个能够:
我被告知dotnetinstaller,在先决条件方面似乎没问题,但我对多实例检测一无所知......有没有办法用dotnetinstaller做到这一点?如果没有,是否有人知道另一种可以做到这一点的工具?
任何帮助,将不胜感激.
windows-installer wix multiple-instances bootstrapper dotnetinstaller
我想制作一个bat文件来在Windows Server 2012上安装.net Framework 3.5。我尝试这样做但没有成功:
cd /D %userprofile%
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Import-Module ServerManager
powershell -ImportSystemModules Add-WindowsFeature NET-Framework-Features
Run Code Online (Sandbox Code Playgroud)
似乎进入 powershell 控制台后最后 2 个命令没有执行。
有谁知道为什么会卡住?
或者是否有人有其他 bat 文件如何在 Windows Server 2012 中自动安装 .net 3.5?
经过更多尝试后,我让蝙蝠在手动运行时使用以下命令。
call C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ImportSystemModules Add-WindowsFeature NET-Framework-Features
Run Code Online (Sandbox Code Playgroud)
但是当我尝试从 dotnetInstaller 运行它时,同一个蝙蝠不再工作
<component command="CMD.EXE /K "#APPPATH\Install.net3.5.bat"" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="" disable_wow64_fs_redirection="False" id=".Net 3.5 SP1 Win8Server" display_name=".Net 3.5 SP1" uninstall_display_name="" os_filter="" os_filter_min="winServer2008R2" os_filter_max="" os_filter_lcid="" type="cmd" 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="" …Run Code Online (Sandbox Code Playgroud) powershell batch-file .net-3.5 dotnetinstaller windows-server-2012