Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th September 2014, 05:27   #1
getmanup
Junior Member
 
Join Date: Sep 2014
Posts: 3
First of all, thanks a lot Afrow UK

I'm using the same code which I got from web, But its throwing an error every time I run the makensis.exe

#CODE

Section
#MessageBox mb_iconstop '$INSTDIR'
StrCpy $R0 "$INSTDIR"
StrCpy $R1 "$INSTDIR_BKP"
StrCpy $R2 0
StrCpy $R3 0

${locate::Open} "$INSTDIR" "/L=FD" "Example5"

IfErrors 0 +2
MessageBox MB_OK 'error' IDOK +4
StrCmp $R3 0 0 +2
MessageBox MB_OK '$R2 files were moved' IDOK +2
MessageBox MB_OK '$R2 files were moved$\n$R3 files were NOT moved'
SectionEnd

Function Example5
StrCmp $R8 $R1 +6
IfFileExists '$R1\$R7' +4
Rename $R9 '$R1\$R7'
IntOp $R2 $R2 + 1
goto +2
IntOp $R3 $R3 + 1

Push $0
FunctionEnd



#ERROR
[nsis] Error in macro locate::Open on macroline 2
[nsis] Error in script "<PATH>\FullInstall.nsi" on line 50 -- aborting creation process

Line no 50 is the one with ${locate::Open} call
getmanup is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
locate plugin, moving files and folders

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