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"