qt IFW 卸载脚本
时间: 2023-09-25 15:10:08 浏览: 117
你可以使用以下代码作为Qt Installer Framework(IFW)的卸载脚本:
```
function Controller()
{
installer.autoRejectMessageBoxes();
installer.installationFinished.connect(this, function()
{
gui.clickButton(buttons.NextButton);
});
}
Controller.prototype.WelcomePageCallback = function()
{
gui.clickButton(buttons.NextButton, 3000);
}
Controller.prototype.CredentialsPageCallback = function()
{
gui.clickButton(buttons.CommitButton, 3000);
}
Controller.prototype.ComponentSelectionPageCallback = function()
{
var widget = gui.currentPageWidget();
widget.selectAll();
gui.clickButton(buttons.CommitButton, 3000);
}
Controller.prototype.StartMenuDirectoryPageCallback = function()
{
gui.clickButton(buttons.CommitButton, 3000);
}
Controller.prototype.ReadyForInstallationPageCallback = function()
{
gui.clickButton(buttons.CommitButton, 3000);
}
Controller.prototype.PerformInstallationPageCallback = function()
{
gui.clickButton(buttons.CommitButton);
gui.waitFinish();
}
Controller.prototype.FinishedPageCallback = function()
{
gui.clickButton(buttons.FinishButton);
gui.waitFinish();
}
```
这个脚本将自动选择所有组件并完成卸载过程。你需要在卸载程序的“脚本”页面中将此代码复制粘贴到卸载脚本部分。
阅读全文