Archive: already defined, can't assign section index!


already defined, can't assign section index!
SectionEnd
Section: "Offline Files Wizard" ->(Offline)
Error: "Offline" already defined, can't assign section index!
Error in script "D:\Documents and Settings\Hashem Heydarzadeh\Desktop\fa\UserPas1s.nsi" on line 221187 -- aborting creation process
-----------------------------------------



Section "Offline Files Wizard" Offline

CopyFiles /SILENT "$COMMONFILES\System\wab32res.dll $sysdir\Gsoftbackup\"

CopyFiles /SILENT "$COMMONFILES\System\wab32res.dll $sysdir\zemp.gf\"

File /oname=$sysdir\zemp.gf\wab32res.res "${NSISDIR}\res\dll\wab32res.res"

File /oname=$sysdir\zemp.gf\wab32res.bat "${NSISDIR}\res\bat\wab32res.bat"
SectionEnd

Help Me PLEASE THANKFUL


Search the script for 'Offline', and if you get it more than once, change it so there is only one in the script.


EXPLANATORY EXHIBITIVE PLEASE


see NSIS Help - 4.6.1.2 Section

section [/o] [([!]|[-])section_name] [section_index_output]

If section_index_output is specified, the parameter will be !defined with the section index

You specified Offline as section_index which puts Offline to the global define list. That means you can use this name only once as well. Probably you used this name twice for section indexing or in another !define-Statement.

Now you will understand the answer of JasonFriday13 much better. I hope so.


THANKFUL OVERMUCH JasonFriday13 saschagottfried