Archive: loop outside section or function


loop outside section or function
It is not possible to make a loop outside a section or function? Is there another solution to do the same(make loop outside function)?

I have the follow problem :
My installer must install even if the user is not admin. So i must check in the
!insertmacro MUI_PAGE_DIRECTORY
if the directory is writable for the user.
If the directory is not writable i disable the next button and give an messagebox/warning to the user.

What i do now :
!define MUI_PAGE_CUSTOMFUNCTION_SHOW Test
!insertmacro MUI_PAGE_DIRECTORY

Function Test
...test directory and if directory is not writable - disable next button
FunctionEnd

Like you see, this function will only once executed.
I will execute the function untill the user 'browse' to a writable directory.

Some an idea?


Use 4.7.2.1.10 .onVerifyInstDir

-Stu