在安装过程中,Inno安装程序将执行[UninstallRun] [英] Inno setup executes [UninstallRun] during installation

查看:448
本文介绍了在安装过程中,Inno安装程序将执行[UninstallRun]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Inno设置5.5.4(u)

Inno Setup 5.5.4(u)

代码:

[UninstallRun]
Filename: "{code:vJoyUnInstaller}";  Parameters: "/LOG /silent " ; StatusMsg: "Uninstalling vJoy device"; Flags: waituntilterminated

在安装过程中将调用vJoyUnInstaller函数.调试告诉我,它是从[UninstallRun]部分调用的.是虫子还是我抽了烟.

The function vJoyUnInstaller is called during installation. Debug tells me that it is called from the [UninstallRun] section. Is it a bug or I just smoked something.

推荐答案

[UninstallRun]部分也是可选的,它指定要执行的任何数量的程序作为卸载的第一步.除下面另有说明外,这两个部分使用相同的语法.

The [UninstallRun] section is optional as well, and specifies any number of programs to execute as the first step of uninstallation. Both sections share an identical syntax, except where otherwise noted below.

程序按照它们在脚本中出现的顺序执行.默认情况下,在处理[Run]/[UninstallRun]项时,除非使用nowait,shellexec或waituntilidle标志,否则Setup/Uninstall将等待程序终止,然后再继续执行下一个.

Programs are executed in the order they appear in the script. By default, when processing a [Run]/[UninstallRun] entry, Setup/Uninstall will wait until the program has terminated before proceeding to the next one, unless the nowait, shellexec, or waituntilidle flags are used.

请注意,默认情况下,如果在[运行]节中执行的程序将要在下一次重新引导时替换的文件排队(通过调用MoveFileEx或修改wininit.ini),则安装程序将检测到此情况并提示用户重新启动计算机在安装结束时.如果您不希望这样做,请将RestartIfNeededByRun指令设置为no. Inno-Setup-Documentation

Note that by default, if a program executed in the [Run] section queues files to be replaced on the next reboot (by calling MoveFileEx or by modifying wininit.ini), Setup will detect this and prompt the user to restart the computer at the end of installation. If you don't want this, set the RestartIfNeededByRun directive to no. Inno-Setup-Documentation

这篇关于在安装过程中,Inno安装程序将执行[UninstallRun]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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