Old 17th March 2004, 09:21   #1
scros
Junior Member
 
Join Date: Mar 2004
Posts: 3
Question Navigation throw sections (force back)

Hi all!

I'm new on this forum (it's my first post) but it's a long time I read this forum (and it's a long time I speak a bad english ).

My question :
I use a MUI_PAGE_CUSTOMFUNCTION_LEAVE function to check the choosen installation directory (MUI_PAGE_DIRECTORY).
If choosen installation directory is allready used by another install (I have to manage several clients), I ask the user to confirm overwrite.
If he confirms, the start menu section is skipped and the install gone at the end .
If not, i want to reload the window where user chose the installation directory.

Is it possible?
How?

Thanks in advance.

Last edited by scros; 17th March 2004 at 10:17.
scros is offline   Reply With Quote
Old 17th March 2004, 10:34   #2
scros
Junior Member
 
Join Date: Mar 2004
Posts: 3
Unhappy

Nobody's able to answer me ?
scros is offline   Reply With Quote
Old 17th March 2004, 11:07   #3
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Be a little patient

Use Abort in the leave function to stay on the current page.
Joost Verburg is offline   Reply With Quote
Old 17th March 2004, 11:35   #4
scros
Junior Member
 
Join Date: Mar 2004
Posts: 3
Talking

Thanks, it's work

I thought that Abort was used to skip a section because when I use it in a MUI_PAGE_CUSTOMFUNCTION_PRE function (as following), the corresponding page (Start Menu here) is skipped.
PHP Code:
!define MUI_PAGE_CUSTOMFUNCTION_PRE testOverwrite
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKEY_LOCAL_MACHINE"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\$(^Name)\$CUR_CLIENT" 
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER

Function testOverwrite
    StrCmp $OVERWRITE 
"" endOverwrite +1
    ReadRegStr 
$2 HKLM "Software\$(^Name)\$OVERWRITE" "Start Menu Folder"
    
StrCpy $STARTMENU_FOLDER $2
    Abort
  endOverwrite
:
FunctionEnd 
See u.
scros is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump