Old 22nd April 2006, 03:01   #1
pauzed
Junior Member
 
Join Date: Apr 2006
Posts: 2
Install Shield

Our old installer script uses Install Shield. We have now decided to start using the Nullsoft Installer. Currently, when we detect the Install Shield version, we have Nullsoft delete the old install. However, this requires a reboot at the end of the uninstallation. Uninstalling and reinstalling with Nullsoft doesnt require reboot. Uninstalling Install Shield and reinstalling with Nullsoft prompts for reboot. Does anyone have a fix?
pauzed is offline   Reply With Quote
Old 22nd April 2006, 10:43   #2
{_trueparuex^}
Senior Member
 
{_trueparuex^}'s Avatar
 
Join Date: Dec 2005
Location: Glow
Posts: 285
So all you want to do is to get NSIS to reboot the system?
NSIS Manual => 4.9.11 Reboot Instructions

code:
; If reboot is required set the SetRebootFlag
SetRebootFlag true

...

; At the end check if SetRebootFlag is set and prompt for reboot if it is set
IfRebootFlag 0 noreboot
MessageBox MB_YESNO "A reboot is required bla bla ... reboot now?" IDNO noreboot
Reboot
noreboot:


Not sure about this case (Since I haven't seen the script), but the reboot prompt is good to place in .onInstSuccess function so that it prompts only if the install was successful.
{_trueparuex^} is offline   Reply With Quote
Old 23rd April 2006, 02:17   #3
pauzed
Junior Member
 
Join Date: Apr 2006
Posts: 2
Im sorry for not being more clear. Currently, the system only prompts for reboot when you are uninstalling the Install Shield version, and installing the Nullsoft Version. I did not code the reboot option, and I do not want users to have to reboot when going Install Shield to Nsis installers. The reboot isn't necessary, either, so I've no idea why it forces the option.

Thank you!
pauzed is offline   Reply With Quote
Old 23rd April 2006, 07:15   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Hmm, the reboot prompt caused from IS uninstaller. Probably you should try to find out if there is a param you can use to suppress IS messages e.g. "uninstall /S". If not, then you may try to catch the reboot prompt window at runtime, and send it message to close. In this case, a forum search will show you examples on how this can be done.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine 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