matze84
21st October 2004 09:34 UTC
en-/disable a page
Hy, i've wrote an installer which has two options:
1) It is the first time, that the programm will be installed
- Page DIRECTORY and Page INSTFILES appear
2) The Program already exists and the installer should do only an update - that means that i don't wanna show the Page DIRECTORY... how can ein realize that??
Maybe with this commands??
PageEx
PageCallBacks
Anders
21st October 2004 15:00 UTC
call abort in the pre or show callback for the directory page
Page DIRECTORY skipDirPage
Page INSTFILES
function skipDirPage
#check if it is already installed and maybe call Abort
functionend
matze84
22nd October 2004 13:07 UTC
Originally posted by Anders
call abort in the pre or show callback for the directory page
Page DIRECTORY skipDirPage
Page INSTFILES
function skipDirPage
#check if it is already installed and maybe call Abort
functionend
thx, but i don't understand what you mean..
matze84
22nd October 2004 15:17 UTC
ok, here is a part from my script:
!include "MUI.nsh"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "german"
i've included now this:
!include "MUI.nsh"
!define MUI_PAGE_CUSTOMFUNCTION_PREfunction
!define MUI_PAGE_CUSTOMFUNCTION_SHOWfunction
!define MUI_PAGE_CUSTOMFUNCTION_LEAVEfunction
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "german"
but waht can i do now with this stuff??
in which funktion can i say that DIRECTORY-PAGE sould not be shown???
matze84
25th October 2004 08:58 UTC
hello? is there somebody who can help me? :(
matze84
25th October 2004 10:04 UTC
ok, what i need is a possibility to skip an page inside a function... or the possibilitt to call a page inside a function (or not)
..i't very important..
kichik
25th October 2004 18:59 UTC
You are missing a space in each custom function line. It should be
!define MUI_PAGE_CUSTOMFUNCTION_PRE prefunction
!define MUI_PAGE_CUSTOMFUNCTION_SHOW showfunction
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leavefunction