Archive: Single install EXE (beginner)


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


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


Thank you
Thank you

that was it, I was using CopyFiles rather than File :-(