2017-03-16 43 views

回答

1

添加[Run] section entry with postinstall flag。要運行安裝程序,您還可能需要runascurrentuser flag才能提升特權。

[Run] 
Filename: "{tmp}\dxwebsetup.exe"; Description: "Install DirectX"; \ 
    Flags: postinstall runascurrentuser 

Post install run

+0

我有這個代碼的一個問題,當我用這個http://stackoverflow.com/questions/42391190/inno-setup-how-to-close-finished-installer-after-一定的時間。當我關閉它時,directx的安裝會再次啓動。 –

+0

DirectX安裝第一次如何啓動?你按下完成嗎?還是自動超時? –

+0

當我使用以下兩種方式時,問題都會發生:http://textuploader.com/dth44 –