Very Newbie question.
Hi,
I am trying to make an installer.
I need to read two directories one for the programs and one for the data and copy files to both directory. while I could accomplish the above, the results are not pretty.
my skeleton of the script is appended below. The issue i have is
1. i need to read both directory first and then do all the copying in one go . what i want to do is read prog dir first and t hen copy the prog and then ask the user for the data dir and copy the data ( additionally asking the user if he wants to copy the data or not )
2. the uninstall does not seem to work . I do get the uninstall exe but running it does not delete the files i want deleted.
3. if I use DirText, both the times i read the two directories I get same text. If I try to set it to two different values , i get multiple definition error
==================
outFile "Setup.exe"
Var P_DIR
PageEx directory
DirVar $P_DIR
PageExEnd
Var D_DIR
PageEx directory
DirVar $D_DIR
PageExEnd
Page instfiles
section
setOutPath $P_DIR\bin
File "prog.exe"
sectionEnd
section
setOutPath $D_DIR
File /r data
sectionEnd
section
writeUninstaller $P_DIR\uninstaller.exe
sectionEnd
section "Uninstall"
delete "$P_DIR\bin\prog.exe"
delete $D_DIR\data
sectionEnd