Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Pluginsdir and ini file (http://forums.winamp.com/showthread.php?t=239502)

BuKoX 28th February 2006 17:13

Pluginsdir and ini file
 
Hello.
I'm creating installer but I have problem with PLUGINSDIR and INI files. My code:
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...

dienjd 28th February 2006 17:20

I think you want to use the CopyFiles command instead of the File command. The File command is just for extracting a file from your installer to the destination system.

BuKoX 28th February 2006 17:34

Thx for help. It's work :)

bye...


All times are GMT. The time now is 04:56.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.