Using RMDir with both /R and /REBOOTOK: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.)
m (Adding new author and category links.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|align=right
{{PageAuthor|virtlink}}
|<small>Author: [[{{ns:2}}:virtlink|virtlink]] ([[{{ns:3}}:virtlink|talk]], [[{{ns:-1}}:Contributions/virtlink|contrib]])</small>
 
|}
This is no longer an issue for NSIS version 2.01 and above.
<br style="clear:both;">
; Issue
; Issue
: I want to delete a complete directory structure, but I don't know if the files it contains are in use. But RMDir ... /R /REBOOTOK doesn't work.
: I want to delete a complete directory structure, but I don't know if the files it contains are in use. But RMDir ... /R /REBOOTOK doesn't work.
Line 10: Line 9:


; Solution
; Solution
: Use Delete /REBOOTOK (works with wildcards) and use RMDir /REBOOTOK on an empty directory, or a directory that's about to become empty after a reboot.
: Upgrade to the latest version of NSIS. If you can't upgrade, use Delete /REBOOTOK (works with wildcards) and use RMDir /REBOOTOK on an empty directory, or a directory that's about to become empty after a reboot.
 
[[Category:Minor Issues]]

Latest revision as of 14:03, 24 June 2005

Author: virtlink (talk, contrib)


This is no longer an issue for NSIS version 2.01 and above.

Issue
I want to delete a complete directory structure, but I don't know if the files it contains are in use. But RMDir ... /R /REBOOTOK doesn't work.
Cause
You can't use the /R and /REBOOTOK switches at the same time.
Solution
Upgrade to the latest version of NSIS. If you can't upgrade, use Delete /REBOOTOK (works with wildcards) and use RMDir /REBOOTOK on an empty directory, or a directory that's about to become empty after a reboot.