Prev Previous Post   Next Post Next
Old 20th January 2012, 19:31   #1
cowwoc
Member
 
Join Date: Feb 2005
Posts: 51
Uninstaller does not reboot if run from installer

My installer code runs the uninstaller (in .onInit) if it detects the software is already installed. Once the software finishes uninstalling, it continues with the installation.

I am using "Delete /REBOOTOK" to delete files in my uninstaller. If one of the files cannot be deleted, it asks the user to reboot the system.

1. If I intentionally lock a file, run the uninstaller directly, and the user agrees to reboot the system *does* reboot.

2. If I do the same, but launch the uninstaller from inside the installer, it does *not* reboot.

The installer is invoking the uninstaller using this code:

code:
ExecWait '$0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file


Why isn't the uninstaller rebooting?

Thanks,
Gili
cowwoc is offline   Reply With Quote
 
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