Skip to content

Only delete the installation folder if it is empty #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2014

Conversation

brad-anderson
Copy link
Contributor

Prevents deleting stuff added by end users in the root of the installation folder.

Prevents deleting stuff added by end users in the root of the installation folder.
@@ -485,7 +492,7 @@ Section "Uninstall"
RMDir /r /REBOOTOK "$INSTDIR\dm"
RMDir /r /REBOOTOK "$INSTDIR\dmd"
RMDir /r /REBOOTOK "$INSTDIR\dmd2"
RMDir /r /REBOOTOK "$INSTDIR"
RMDir /REBOOTOK "$INSTDIR"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't you need some sort of silent option here (/Q or so)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RMDir only supports /R and /REBOOTOK. All NSIS commands are silent, basically.

MartinNowak added a commit that referenced this pull request Jan 9, 2014
Only delete the installation folder if it is empty
@MartinNowak MartinNowak merged commit 570d35c into dlang:master Jan 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants