Thread: NSIS CopyFiles
View Single Post
Old 29th March 2017, 21:01   #25
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 882
Quote:
Originally Posted by Coby View Post
#Copy Files

PHP Code:
 ${If} $== $
    CreateDirectory 
`$2
    
CopyFiles /SILENT `$1` `$2
 ${Else} 
    
CreateDirectory `$2
    
CopyFiles /SILENT `$1` `$2
 ${EndIf} 
This is pointless having an 'if' statement because both branches have the same code.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote