|
|
#1 |
|
Junior Member
Join Date: Apr 2006
Location: Germany
Posts: 3
|
Hello,
I'm new in NSIS programing and my problem is that I need an installer for some XLS-files. I need an installer to install some files in a so called "program directory" and some other files in an "data directory". The user shold be able to chose this directories. There are some examples of installations with a second target directory, but I found no way to use it for me. I think the main problem for me is the connection between the page and the file lists. Sorry for my english, |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2006
Location: Germany
Posts: 3
|
Thank you for your help Afrow UK,
I found this tread for my self, but it's very complex for me at this time (components, more than 1 section ...). The other thread i found was Problem to have two directories in one installer ? but there is no realy usable example, now I tried it with the following solution, I look forward to your comment. ;----------------------------------------------- ;Test.nsi OutFile "Setup.exe" XPStyle on InstallDir "$PROGRAMFILES\Test" Var DATA_DIR Page Directory PageEx directory DirText "Data" DirVar $DATA_DIR PageCallbacks DirectoryPre PageExEnd Page Instfiles Section SetOutPath $INSTDIR File "C:\Test\Prog\*" SetOutPath $DATA_DIR File "C:\Test\Dat\*" SectionEnd Function DirectoryPre StrCpy $DATA_DIR "$PROGRAMFILES\Test\Data" FunctionEnd ;----------------------------------------------- |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
That's how it's done normally. It'd be easier with Modern UI though.
code: -Stu |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2006
Location: Germany
Posts: 3
|
It works very fine - thank you!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|