问题
How to create checkboxes at finished page to install DirectX? (dxwebsetup.exe for example).
I see this with some information: Is it possible to create checkbox tree view in Inno Setup? but i want to understand how to give it action to these checkboxes.
回答1:
Add [Run] section entry with postinstall flag. To run an installer you also may need the runascurrentuser flag to retain elevated privileges.
[Run]
Filename: "{tmp}\dxwebsetup.exe"; Description: "Install DirectX"; \
Flags: postinstall runascurrentuser
来源:https://stackoverflow.com/questions/42836022/inno-setup-how-to-create-checkboxes-at-finished-page