安装后启动应用程序 [英] Start application after installation

查看:38
本文介绍了安装后启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在谷歌上搜索并找到了一些主题,例如

I've googled around and found some topics like

http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm

安装完成后启动应用程序,开启 UAC在

但是,我不使用任何用户界面.只是简单的安装!到目前为止

but, i don't use any ui. Just simple installation! So far

<CustomAction Id="LaunchApp" Directory="INSTALLDIR" ExeCommand="[SystemFolder]cmd.exe /C MyExe.exe" />

<InstallExecuteSequence>
      <RemoveExistingProducts Before="InstallInitialize" /> 
      <Custom Action="LaunchApp" After="InstallFinalize" />
    </InstallExecuteSequence>

但是当我启动安装程序时,会弹出一个窗口:Windows 正在配置 MyProgram,请稍候".最重要的是 cmd.exe 只是一个闪烁的光标,当我关闭 cmd 时,我收到消息:此 Windows 安装程序包存在问题.无法运行此安装所需的程序."虽然程序保持打开状态.我怎样才能正确地做到这一点(没有任何用户界面)?提前致谢!

but when i start the installer, a window pops up: "Please wait while Windows configures MyProgram". and on top of it comes cmd.exe just with a blinking cursor, when i close cmd i get message :"There is a problem with this Windows Installer package. A program required for this install to complete could not be run." Though program remains opened. How can i do that properly (without any UI)? Thanks in advance!

推荐答案

如果使用会发生什么

ExeCommand="[SystemFolder]cmd.exe /C start MyExe.exe"

这篇关于安装后启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆