There is a software distribution created by Inno Setup. It restarts computer when installation finished: /silent. I decompiled it and found In install_script.is there is line:
[Run]
Filename: "WinShutdown.exe"; Parameters: "-r"; Description: "{cm:LaunchProgram,Restart computer}"; MinVersion: 0.0,5.0; Flags: postinstall
Is there a way to make the installation not to restart PC when I launch original distribution from a command line? What would be a proper way of creating installation with restart option?