..........
5th March 2006 17:20 UTC
How to install directory ?
Hi ! I'm from Bulgaria and I can't install directory with tne Nullsoft Installer..
This is my script :
; The name of the installer
Name ".:Dido.Trepach.COm:. Script"
; The file to write
Icon "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
OutFile "mIRC.exe1"
; The default installation directory
InstallDir $PROGRAMFILES\mIRC
; The stuff to install
Section ""
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File control.ini
File aliases.ini
File mIRC.exe
File ircintro.hlp
File mirc.GID
File mirc.hlp
File mirc.ini
File popups.ini
File readme.txt
File remote.ini
File script.ini
File script1.ini
File servers.ini
File urls.ini
File versions.txt
//And here I wont to put the directory.. How to do it ?
SectionEnd ; end the section
Please HELP ! :(
kichik
5th March 2006 18:19 UTC
Try:
SetOutPath $INSTDIR\subdir
or
CreateDirectory $INSTDIR\subdir
..........
5th March 2006 19:05 UTC
Noo.. I want to install directory whit files in it.. :)
I think you understand me.. :(
kichik
5th March 2006 19:33 UTC
Then:
SetOutPath $INSTIDR\subdir
File /r subdir\*.*
Comperio
5th March 2006 19:38 UTC
From the help files regarding the FILE command:
If the /r switch is used, matching files are recursively searched for in subdirectories. If a directory name matches, all of its contents is added recursively. Directory structure is preserved.
Therefore, use this:
SetOutPath "$INSTDIR"
File /r "C:\path_to_source_files\*.*"
The path_to_source_files should be the root level of your source file directory. You can use different wildcards as needed to limit the files that actually get included.
Edit:
Looks like kichik beat me to it! LOL!
:D
..........
5th March 2006 20:31 UTC
THANK YOU ALL !!! :D
..........
5th March 2006 21:42 UTC
It isn't work !
I just wont to creat installation for one mIRC script..
In the directoryes I have files, and when the mIRC script is install I wont these files to be in the mIRC directory.
Sample :
Files :
File control.ini
File aliases.ini
File mIRC.exe
File ircintro.hlp
File mirc.GID
File mirc.hlp
File mirc.ini
File popups.ini
File readme.txt
File remote.ini
File script.ini
File script1.ini
File servers.ini
File urls.ini
File versions.txt
Directoryes :
download
Images
logs
sounds
sys
And I wont to install these directoryes when the mIRC is installing..
I thing you understand me.. :(
Comperio
6th March 2006 03:54 UTC
The previous answers should have resolved your issue.
Perhaps you can attach a copy of your script to help illustrate the problem.
..........
6th March 2006 15:19 UTC
How must the script look ?
Pls write it here..