Old 18th March 2005, 15:50   #1
steveculshaw
Junior Member
 
Join Date: Mar 2005
Posts: 2
Question Single install EXE (beginner)

I know this is dumb, but it's late on Friday, so please forgive this

I've tried the FAQ and looked through the doc's, but I can't see how I create a single installer EXE ???

I have a directory \SRC with various files, sub-directories, etc. in, including my NSIS script

My script installs into \MyApp Ok on my PC, but I've copied the MyInstall.exe to another PC and it fails, as the files aren't there :-(

All I seem to be getting is the commands in my EXE
- if the source directory is present, things worka
steveculshaw is offline   Reply With Quote
Old 18th March 2005, 16:03   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You must be using CopyFiles.
This copies files from one location to another on the same computer.
You must be after the File command which compresses files into the installer exe and extracts them to $OUTPATH which must be set with SetOutPath

E.g.
SetOutPath $INSTDIR
File /r "C:\myApp-Files\*.*"

This will compress all files inside the directory on your system and extract them to $INSTDIR on the user's system, keeping the sub-directory structures intact.

-Stu
Afrow UK is offline   Reply With Quote
Old 18th March 2005, 16:22   #3
steveculshaw
Junior Member
 
Join Date: Mar 2005
Posts: 2
Thumbs up Thank you

Thank you

that was it, I was using CopyFiles rather than File :-(
steveculshaw is offline   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