如何在一个安装程序exe中运行多个安装程序 [英] How to run multiple setups in one setup exe

查看:194
本文介绍了如何在一个安装程序exe中运行多个安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个安装exe文件,需要以正确的顺序安装;首先是setup1.exe,然后是setup2.exe.此外,在setup2.exe完成后,我还必须运行批处理脚本.

I got two setup exe files that needs to be installed in correct order; setup1.exe first, then setup2.exe. In addition, I also have to run a batch script after setup2.exe is finished.

我该怎么做最简单的方法?

How can I do this the easiest way?

推荐答案

我不确定您的专业水平,所以我的目标很低.

I'm not sure what level of expertise you're at, so I'm aiming low.

在记事本中键入以下内容:

Type the following into Notepad:

@echo off
setup1.exe
setup2.exe
call "batch script.bat"

然后Click File-> Save As
键入%userprofile%\Desktop\MainSetup.bat
点击-> OK

Then Click File -> Save As
Type %userprofile%\Desktop\MainSetup.bat
Click -> OK

下一步--Start
键入CMD.EXE->按[ENTER]
等待黑色命令提示符出现.
键入CD %userprofile%\Desktop->按[ENTER]
键入DIR MainSetup.*->按[ENTER]

Next Click -> Start
Type CMD.EXE -> Press [ENTER]
Wait for the black command prompt to appear.
Type CD %userprofile%\Desktop -> Press [ENTER]
Type DIR MainSetup.* -> Press [ENTER]

如果看到名为MainSetup.bat.txt的文件:
键入REN MainSetup.bat.txt MainSetup.bat->按[ENTER]

If you see a file named MainSetup.bat.txt:
Type REN MainSetup.bat.txt MainSetup.bat -> Press [ENTER]

现在,MainSetup.bat已准备好移动到您想要的位置.如果setup1.exesetup2.exebatch script.bat位于PATH中,则可以在任何位置使用它,包括桌面(现在位于此处).如果不是,那么您要么要将MainSetup.bat放置在与其他三个目录相同的目录中,要么更改MainSetup.bat以反映它们的位置. (在示例中,将setup1.exe更改为类似"C:\Program Files\Program\setup1.exe"的内容)

Now MainSetup.bat is ready to be moved to where ever you want it. If setup1.exe setup2.exe and batch script.bat are in the PATH, then you can use it anywhere, including your Desktop (Where it is right now). If not then you will either want to place MainSetup.bat in the same directory as the other three, or change the MainSetup.bat to reflect their locations. (In Example, change setup1.exe to something like this "C:\Program Files\Program\setup1.exe")

这篇关于如何在一个安装程序exe中运行多个安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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