Old 13th July 2007, 08:25   #1
aemik
Member
 
Join Date: Jun 2007
Location: Böblingen
Posts: 94
abort problem

Hello,

I use this script to show a costumpage two times. It works very well but I have one problem. When I press the Cancel Button on the first page, my Installer doesnt close. Instead of this the second costum page is displayed.
Do you know a simple way to solve this problem?

PHP Code:
!insertmacro MUI_INSTALLOPTIONS_WRITE "software.ini" "Settings" "NextButtonText" "Reload"
  
!insertmacro MUI_INSTALLOPTIONS_WRITE "software.ini" "Field 20" "Text" "Note: Please install all the missing software now and click the Refresh Button to check once more."
  
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "software.ini"
  
call software ;Function to check and change something
  
!insertmacro MUI_INSTALLOPTIONS_WRITE "software.ini" "Field 20" "Text" ""
  
!insertmacro MUI_INSTALLOPTIONS_WRITE "software.ini" "Settings" "NextButtonText" "Next >"
  
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "software.ini" 

Thanks aemik
aemik is offline   Reply With Quote
Old 13th July 2007, 09:18   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Attach the complete script. It's impossible to know what's the problem without seeing it. Though I'd guess you have the two pages in the same function. You should use two Page commands with two functions for two pages. Each page should have its own Page command and its own function.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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