Old 2nd March 2017, 07:52   #1
kiemann
Junior Member
 
Join Date: Mar 2017
Posts: 1
Cancel uninstall

Hallo, I have the following problem.

In my unistall process I checked if a file could not delete. If the file could not delete a MessageBox opening with Retry and Cancel now I want, that if the user click on cancel the window of the uninstall process should close. Similar the Cancel Button on the uninstall window.

At this moment the user click at the messagebox on cancel and have to click on the uninstall cancel button. But i want that the user must only click on one button.

code:

CopyFiles "$PROGRAMFILES65\*\awt.dll" "$PROGRAMFILES64\*\awt.origi.dll"

Delete "$PROGRAMFILES64\*\awt.dll"
IfFileExists "$PROGRAMFILES64\*\awt.dll" 0 fileNotFound
MessageBox MB_RETRYCANCEL $(nls_client_stop_01) IDRETRY retry IDCANCEL cancel
retry: Goto -3
cancel: Abort
fileNotFound:

kiemann is offline   Reply With Quote
Old 2nd March 2017, 14:47   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,558
Quit

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
abort, cancel, messagebox, uninstall

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