Documents and settings folder
Hi, I would like to create an installer for a really simple course, it's only necesary to copy all the files to a certain directory, because then I must add this directory to flash security settings.
The problems are: how can I copy the .cfg file to user directory?
Contents are:
file1.jpg
file2.html
/folder/file3.swf
(of course there are more folders and files, but I'll keep it simple for the example)
Installer should:
a) copy file1.jpg file2.html to 'c:\MyDir\'
b) copy file3.swf to 'c:\MyDir\swf\
and then copy a config.cfg to the user settings folder. Vista, Windows XP, etc are different, so how should I do it?
c-in VISTA) copy file.cfg to 'c:\Users\_USERNAME_\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust\'
c-in XP) copy file.cfg to 'c:\Users\_USERNAME_\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust\'
and maybe sometimes this folder does not exist so I think I should create it first
If anyone can help I would really apreciate it!
; myproject.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there.
;--------------------------------
; The name of the installer
Name "MyProject"
; The file to write
OutFile "myproject.exe"
; The default installation directory
InstallDir $DESKTOP\MyProject
; Request application privileges for Windows Vista
RequestExecutionLevel user
;--------------------------------
; Pages
Page directory
Page instfiles
;--------------------------------
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File file1.jpg
File file2.html
SectionEnd ; end the section