Old 27th July 2022, 11:01   #1
shekara
Junior Member
 
Join Date: Oct 2020
Posts: 47
force reboot post installaton

I want to force restart my installer post successful install. by having reboot in onInstSuccess , i can reboot . But it options (snapshot attached) as Reboot now or later. Even when i click on later, it reboots. I dont want any options. it should always force reboot post-install without giving any options like reboot later or reboot now.
any help is much appreciated.
Attached Thumbnails
Click image for larger version

Name:	restart.jpg
Views:	77
Size:	68.7 KB
ID:	54926  
shekara is offline   Reply With Quote
Old 27th July 2022, 12:31   #2
shekara
Junior Member
 
Join Date: Oct 2020
Posts: 47
i have set SetRebootFlag false in .onInstSuccess and flipflopped true/false with no positive results
shekara is offline   Reply With Quote
Old 27th July 2022, 19:02   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,539
Do you still want to show the finish page?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 4th August 2022, 12:57   #4
shekara
Junior Member
 
Join Date: Oct 2020
Posts: 47
i resolved it by using !define MUI_FINISHPAGE_NOREBOOTSUPPORT and SetRebootFlag false on init
shekara is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump