Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 如何在使用Inno安装程序安装和卸载时运行批处理_Windows_Batch File_Inno Setup - Fatal编程技术网

Windows 如何在使用Inno安装程序安装和卸载时运行批处理

Windows 如何在使用Inno安装程序安装和卸载时运行批处理,windows,batch-file,inno-setup,Windows,Batch File,Inno Setup,我想安装带有批处理文件的服务: testapp\apache\apache_installservice.bat testapp\mysql\mysql_installservice.bat testapp\apache\apache_uninstallservice.bat testapp\mysql\mysql_uninstallservice.bat 我已经尝试了批处理文件,它们工作正常 我需要知道的是,在使用Inno Setup安装应用程序时,如何运行安装批处理文件? 以及如何在卸载应

我想安装带有批处理文件的服务:

testapp\apache\apache_installservice.bat
testapp\mysql\mysql_installservice.bat
testapp\apache\apache_uninstallservice.bat
testapp\mysql\mysql_uninstallservice.bat
我已经尝试了批处理文件,它们工作正常

我需要知道的是,在使用Inno Setup安装应用程序时,如何运行安装批处理文件?

以及如何在卸载应用程序时运行卸载批处理文件?

最简单的方法是使用:


另请参见Inno设置知识库中的

[Run]
Filename: "{app}\apache\apache_installservice.bat"; StatusMsg: "Installing Apache service"
Filename: "{app}\mysql\mysql_installservice.bat"; StatusMsg: "Installing MySQL service"

[UninstallRun]
Filename: "{app}\apache\apache_uninstallservice.bat"
Filename: "{app}\mysql\mysql_uninstallservice.bat"