Skip to content
⌘ NSIS Forum Archive

.onVerifyInstDir and new MUI

3 posts

Vytautas#

.onVerifyInstDir and new MUI

I am trying to convert an old (MUI 1.65) script to the new MUI 1.66. I had two directory pages in the old script. Now I have set them up using the new Page system. In the old script I used the .onVerifyInstDir function to allow the path to be set to the root folder for the data (2nd) directory but not the first.

Now my question is there a way to detect which directory page is displayed in the .onVerifyInstDir function so that I can still allow the root folder selection for the data folder but not for the installation folder.

Vytautas 😕
kichik#
Set some variable in the pre function of one page to a certain value and set it to another value in the pre function of the other page. This way you can know which page you're testing in .onVerifyInstDir.
Vytautas#
OK, thanks. Thats what I did in the old version of the script. I thought that the new page system might have introduced some other way of getting this information.

Vytautas