Inno Setup - How to create checkboxes at finished

2020-08-01 06:53发布

问题:

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



标签: inno-setup