t_vgemert
11th February 2003 09:10 UTC
File command, syntax question
:weird:
In one of my installers I trie to pack one file out of a directory and on installation extract that file to the same directory on the installation system, but I can't seem to get it right!!?? What imma be doing wrong?
I use this command:
file "playlists\${MUI_FILE}.epp" "playlists\${MUI_FILE}.epp"
Sunjammer
11th February 2003 09:55 UTC
You could do that like this:
File /oname="playlists\${MUI_FILE}.epp" "playlists\${MUI_FILE}.epp"
Or like this:
SetOutPath "playlists"
File "playlists\${MUI_FILE}.epp"
I *think* that in both cases the playlists directory would be relative to the $INSTDIR directory, i.e. a subdir of the directory you choose to install to. If you wanted the target directory to be fixed you'd have to specify a complete path (e.g. c:\playlists\)
t_vgemert
11th February 2003 10:10 UTC
Thank you very much!
The first method I already tried before but it results in errors during compiling. The second method works fine, now I understand why/how to use 'SetOutPath' !!
Sunjammer
11th February 2003 10:13 UTC
Glad I could help. Welcome to the forum by the way :)
t_vgemert
11th February 2003 10:33 UTC
Thanks, been around for a while. I ve been using the NSIS for about 3/4 of a year now. Basically I make installers for our presentation tool we've developped in MM Director, so instead of telling our clients to just copy the contents of the CD to their harddrive we tell them to run the install.exe. C'est tres chic!
Sunjammer
11th February 2003 10:49 UTC
Your mention of an installer developed at your company reminded me to say this: (OT kinda)
If you (or anyone else reading this) has a full installation script you'd care to share I'd be grateful if you'd create a page for it in the NSIS Archive. The script doesn't have to be runnable (because it would require the files in the installer and probably other things too) but gives a good idea of what can be done and how to use NSIS.
Additionally, if you have a pretty installer, or one that uses a custom UI, pictures would be appreciated, and even better would be comments on how it was done or the code itself would be even better.
I appreciate that sometimes people can't give out this information because it is owned by the company or they just don't want to. That's fine. This is just a gentle reminder that these kinds of things are helpful and interesting to others. Thankx :D
t_vgemert
11th February 2003 21:01 UTC
BTW.. I've posted this script to the archives so people can use it as a reference. Hope it helps...
rainwater
11th February 2003 23:48 UTC
Btw, the reason the first method might not work is because the directory may not exist. Using SetOutPath will autocreate the directory.