Joker2006
29th August 2006 13:58 UTC
2 directory pages
Hi,
I have got some problem using NSIS although i think this is some great language. My script uses 2 directory pages and 2 variables for the path.
The first directory-page makes no problem but I am unable to set the default path for the second one. Is there a way to make this?
Do I have to set a value for NEUDIR?
Is this possible without a section?
...
!insertmacro MUI_PAGE_DIRECTORY
Var NEUDIR
PageEx directory
DirVar $NEUDIR
PageExEnd
!insertmacro MUI_PAGE_INSTFILES
...
Afrow UK
29th August 2006 14:06 UTC
Don't use Page/PageEx with Modern UI. Use another !insertmacro MUI_PAGE_DIRECTORY. Use !define MUI_DIRECTORYPAGE_VARIABLE $NEUDIR before the second page macro.
-Stu
Joker2006
29th August 2006 14:29 UTC
Thx for the fast reply Stu,
but my problem is how to set NEUDIR to a default value.
(Page/PageEx did work,too)
Afrow UK
29th August 2006 19:47 UTC
Set it with StrCpy in .onInit
-Stu
Joker2006
30th August 2006 08:09 UTC
Hm was really easy in the end. So it works now as i want it.
Again big thanks Stu