我无法掌握自定义卸载过程,尽管我可以在某种程度上成功地自定义安装过程。当我注册信号“installationFinished”时,我在 installscript.qs 中的函数会被调用,但令人惊讶的是,如果我注册某些函数,信号“uninstallationStarted 和uninstallationFinished”就不会被调用。不知道为什么?同样在 qinstaller.h 中,我们有以下代码用于识别不同的安装状态/阶段,但我如何才能获得类似的卸载信息?
enum Status {
InstallerUnfinished,
InstallerCanceledByUser,
InstallerRunning,
InstallerFailed,
InstallerSucceeded,
};
int status() const;
enum WizardPage {
Introduction = 0x1000,
TargetDirectory = 0x2000,
ComponentSelection = 0x3000,
LicenseCheck = 0x4000,
StartMenuSelection = 0x5000,
ReadyForInstallation = 0x6000,
PerformInstallation = 0x7000,
InstallationFinished = 0x8000,
End = 0xffff
};