卸载后如何打开网站? [英] How to open a web site after uninstallation?
本文介绍了卸载后如何打开网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
安装软件后,我可以打开一个网站:
I can open a web site after software installation like this:
[Run]
Filename: "http://example.com"; Flags: shellexec runasoriginaluser
卸载软件后是否可以打开另一个网站?
Is there a way to open another web site after software uninstallation?
推荐答案
要在卸载完成后打开不可执行的文件,我会这样写:
For opening a non-executable file after the uninstallation finishes I would write this:
[Code]
const
UninstSiteURL = 'http://example.com/uninstalled.html';
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
ErrorCode: Integer;
begin
if CurUninstallStep = usDone then
ShellExec('', UninstSiteURL, '', '', SW_SHOW, ewNoWait, ErrorCode);
end;
这篇关于卸载后如何打开网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文