简体   繁体   English

我如何获取Inno安装程序卸载程序脚本以删除服务

[英]How can i get Inno setup uninstaller script to remove a service

我使用inno setup创建了一个安装程序。此安装程序将我的应用程序作为服务安装。当我尝试卸载我的应用程序时,它将删除该文件夹,但我只希望它首先搜索特定的服务并删除它,然后继续进行操作删除。

If I recall correctly you can remove a service in by 如果我没记错,您可以通过以下方式删除服务

[UninstallRun]
Filename: {sys}\sc.exe; Parameters: "stop mysrv" ; Flags: runhidden
Filename: {sys}\sc.exe; Parameters: "delete mysrv" ; Flags: runhidden

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Inno Setup IDE编译iss文件列表 - How do I compile a list of iss files with Inno Setup IDE 如何在 Inno Setup 中卸载时执行批处理文件? - How to execute a batch file on uninstall in Inno Setup? 如何在C#中的Windows服务中执行批处理脚本? - How can I execute a batch script in a windows service in C#? 使用ShellExecuteEx从Inno Setup中的批处理文件获取退出代码 - Get exit code from batch file in Inno Setup using ShellExecuteEx Inno Setup:如何创建批处理文件并在安装完成后运行它 - Inno Setup: How to create batch file and run it after install is done 如何使用Inno Setup安装程序为运行的批处理文件提供输入? - How to provide an input to a batch file ran using Inno Setup installer? 如何在 Inno Setup 中捕捉删除文件的 bat 文件错误信息? - How to catch the error message of bat file for deleting files in Inno Setup? 如何在使用 Inno Setup 安装和卸载时运行批处理 - How to run batch while installing and uninstalling with Inno Setup Inno Setup:如何以编程方式运行已安装的批处理文件 - Inno Setup: How to run an installed batch file programmatically 如何仅通过在批处理脚本中知道Windows服务的显示名称来删除Windows服务? - How can I delete a windows service by just knowing display name of the service in a batch script?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM