Old 30th May 2007, 17:53   #1
Athfar
Junior Member
 
Join Date: May 2007
Posts: 1
Abort / Retry for Active File

I just want the user to be prompted that the file they are trying to install is already active (opened). I don't know that a FindWindow will work correctly because the window titles change with each version and class remains the same.

How can I just prompt the user to retry / abort the install?
Athfar is offline   Reply With Quote
Old 30th May 2007, 18:25   #2
goldy1064
Senior Member
 
Join Date: Jun 2005
Posts: 211
If the name of the file will be static, you could try doing:
code:

Section -
CopyFiles /SILENT "$INSTDIR\myfiletocheck.ext" "$PLUGINSDIR"
ClearErrors
Delete "$INSTDIR\myfiletocheck.ext"
IfErrors 0 next
#prompt user to take action
next:
SectionEnd

goldy1064 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