tags:

views:

84

answers:

1

My installer is checking if the program is already installed and I would like to skip the "Enter the path" page in that case.

How can I script that in NSIS 2.0 ?

+1  A: 

To skip a page, call the abort instruction in the pre callback function for that page

Anders
The pre callback function exists only in the Page function which I'm a bit relunctant to use since they do not seem to include normal headers. I prefer the "!insertmacro MUI_PAGE_INSTFILES" function (which have the right headers in the right language).
Silence
@Silence: You forgot to mention that you are using the MUI. You need to use the MUI_PAGE_CUSTOMFUNCTION_PRE define when using MUI pages.
Anders
Both your solutions works but I prefer the second one. Thank you !
Silence