Old 5th March 2006, 17:20   #1
..........
Guest
 
Posts: n/a
Unhappy 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 ".ido.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 !
  Reply With Quote
Old 5th March 2006, 18:19   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Try:
code:
SetOutPath $INSTDIR\subdir
or
code:
CreateDirectory $INSTDIR\subdir

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 5th March 2006, 19:05   #3
..........
Guest
 
Posts: n/a
Noo.. I want to install directory whit files in it..
I think you understand me..
  Reply With Quote
Old 5th March 2006, 19:33   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Then:
code:
SetOutPath $INSTIDR\subdir
File /r subdir\*.*


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 5th March 2006, 19:38   #5
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
From the help files regarding the FILE command:
Quote:
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:
code:

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!

Comperio is offline   Reply With Quote
Old 5th March 2006, 20:31   #6
..........
Guest
 
Posts: n/a
THANK YOU ALL !!!
  Reply With Quote
Old 5th March 2006, 21:42   #7
..........
Guest
 
Posts: n/a
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..
  Reply With Quote
Old 6th March 2006, 03:54   #8
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
The previous answers should have resolved your issue.

Perhaps you can attach a copy of your script to help illustrate the problem.
Comperio is offline   Reply With Quote
Old 6th March 2006, 15:19   #9
..........
Guest
 
Posts: n/a
Unhappy

How must the script look ?

Pls write it here..
  Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump