0
Inno Setup Compiler: How to auto start the default browser with given url?不是我想要的。當我想要我的setup.exe
時,Inno安裝程序中的/代碼如何關閉/完成/卸載,它將轉到某個站點。安裝程序關閉/完成/卸載時訪問網站
Inno Setup Compiler: How to auto start the default browser with given url?不是我想要的。當我想要我的setup.exe
時,Inno安裝程序中的/代碼如何關閉/完成/卸載,它將轉到某個站點。安裝程序關閉/完成/卸載時訪問網站
要打開一個Pascal腳本的web瀏覽器中使用這樣的功能:
procedure OpenBrowser(Url: string);
var
ErrorCode: Integer;
begin
ShellExec('open', Url, '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end;
要觸發它,當安裝程序關閉後,您可以使用CurStepChanged(ssDone)
event:
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssDone then
begin
OpenBrowser('https://www.example.com/');
end;
end;
同樣對於卸載程序,請使用CurUninstallStepChanged(usDone)
event:
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usDone then
begin
OpenBrowser('https://www.example.com/');
end;
end;
非常感謝! – DDoS