Nsis when restarting Windows-7 to install .NET 4 installation does not continue

When installing my application, I also install redistributable .NET 4.0 if .NET 4.0 is not available on the computer.

On Windows-7, this sometimes (possibly always) causes a reboot (out of nsis control).

I want the installation to continue after a reboot.

I would appreciate advice on how to solve this scenario with nsis.

+3
source share
3 answers

You can use the RunOnce section .

NSIS does not support the restart manager (but you can probably call RegisterApplicationRestart with a system plugin).

" ", , , , ( GetParameters PageJump).

+5

.net /norestart

+2

/norestart , , .NET 4.0 . , , .NET 3.5 Windows XP, SQL Server 2008 R2. SQL Server 2008 , .NET 3.5 , /norestart - , SQL Server 2008 . RunOnce - , .

0
source

Source: https://habr.com/ru/post/1762625/


All Articles