Pluginsdir and ini file
Hello.
I'm creating installer but I have problem with PLUGINSDIR and INI files. My code:
ReserveFile "system.bar"
...
Function .onInit
InitPluginsDir
; I am copying file into pluginsdir
File /oname=$PLUGINSDIR\system.bar "c:\tcmdpp\system.bar"
FunctionEnd
...
Section "Test" SectionTest
; I am writing into ini file strings
StrCmp $LANGUAGE ${LANG_POLISH} 0 +2
WriteINIStr "$PLUGINSDIR\system.bar" "Buttonbar" "menu1" "test2"
StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +2
WriteINIStr "$PLUGINSDIR\system.bar" "Buttonbar" "menu1" "test2"
...
SetOutPath "$INSTDIR\skins\smooth\"
; and copying changed ini file from pluginsdir into destination place INSTDIR
File "$PLUGINSDIR\system.bar" ; in this line is error -> no files found
SectionEnd
I dont want to change ini file in INSTDIR becouse this file has to be copy in few places.
What's wrong and how I can fixed it?
bye...