tags:

views:

59

answers:

1

When installing my application I also install the .NET 4.0 redistributable if .NET 4.0 is not present on the machine.

On Windows-7 this sometimes (maybe always) causes a reboot (outside of nsis's control).

I should like the installation to continue after the reboot.

I should be grateful for advice on how to address this scenario with nsis.

+2  A: 

You can use the RunOnce registry key.

NSIS does not support the restart manager (But it is probably possible to call RegisterApplicationRestart yourself with the system plugin).

Either way, the "restart command" probably needs to include a parameter you can detect so your installer does start from the beginning again (Use GetParameters and PageJump).

Anders