Run application after silent install using command line in Installshield

你说的曾经没有我的故事 提交于 2019-12-25 04:26:58

问题


I created a setup.exe for my project using Install-shield Limited for visual studio 2015. I was able to run it silently with this command line:

Setup.exe /s /v/qb

It works fine. Now I want to run the installed application after completing the installation. How can I do it?

(I prefer to add something to the above command-line to do this).

EDIT: There is another question like mine. That question wants to run application after installation too. but my question is to run after silent installation (using command-line) and the other question is to run after a normal installation by user. I tried the answers of that question before and they don't work in my case.


回答1:


Thank you to @Michael-Urman I found the answer:

I should use the batch command executing. You can execute more than one command by using & symbol (or &&).

But I need to run setup first completely then run the program. So I used start /wait command.

The final command was this:

start /wait setup.exe /w /s /v/qb && "C:\Program Files (x86)\Company\Product\program.exe"

/wait suspends cmd until setup finishes then runs next command.

/w keeps setup.exe alive until msi package installs successfully.

/s installs the program silently and /v passes arguments to msi installer (see documentation).

/qb shows basic UI of msi installer. (see documentation).

&& (in comparison with &) runs 2nd command if 1st command runs successfully.



来源:https://stackoverflow.com/questions/38906450/run-application-after-silent-install-using-command-line-in-installshield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!