Archive: 2 directory pages


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
...

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


Thx for the fast reply Stu,

but my problem is how to set NEUDIR to a default value.
(Page/PageEx did work,too)


Set it with StrCpy in .onInit

-Stu


Hm was really easy in the end. So it works now as i want it.

Again big thanks Stu