Old 24th November 2006, 02:20   #1
zbd
Member
 
Join Date: Oct 2006
Location: Sydney, Australia
Posts: 76
Goto finish when INSTFILES is completed

Hi, is there a way to make the INSTFILES page just move on to the finish page instead of declaring a success and then the user having to press 'Next'

Only reason I want to do this is because I cant work out how to change the text at the top of the INSTFILES page when the installing process has finished.

Anyway, cheers if u can help.
ZBD
zbd is offline   Reply With Quote
Old 24th November 2006, 02:51   #2
bholliger
Senior Member
 
Join Date: Jul 2004
Location: Switzerland
Posts: 223
Hi zbd!

Have you declared MUI_FINISHPAGE_NOAUTOCLOSE somewhere in your script?

Cheers from Sydney!

Bruno
bholliger is offline   Reply With Quote
Old 24th November 2006, 03:01   #3
zbd
Member
 
Join Date: Oct 2006
Location: Sydney, Australia
Posts: 76
Hi Bruno,
I haven't got that declared anywhere.
I'm relatively new at this.
So if i say:
code:

!define MUI_FINISHPAGE_NOAUTOCLOSE false



that will make the INSTFILES page not stop when it finishes copying the files?

Cheers for your reply
zbd is offline   Reply With Quote
Old 24th November 2006, 03:07   #4
bholliger
Senior Member
 
Join Date: Jul 2004
Location: Switzerland
Posts: 223
Hi zbd!

Ok, I might have understood something wrong. Try this code and say if this is the behaviour you would like to achieve.

Usually NSIS switches automatically to the finish page when instfiles has finished.

Cheers

Bruno

code:

;--------------------------------
;Include Modern UI
!include "MUI.nsh"
;--------------------------------
;General
Outfile test.exe
;--------------------------------
;Pages
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

Section "secDummy"
Sleep 1000 ; do some really hard work
SectionEnd

;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"

bholliger is offline   Reply With Quote
Old 24th November 2006, 03:10   #5
zbd
Member
 
Join Date: Oct 2006
Location: Sydney, Australia
Posts: 76
Hi,
Yeah thats what I'm wanting it to do.
I am using the ExperienceUI i dont know if that affects it.
At the moment it copies 3 components, when it finishes, it DetailPrints "Completed" then waits for the User to click the next button to go to the finishpage.
Also, I have a custom finish page, with variables to display what was installed.

But yes, your example does exactly what i want to do

thanks
zbd is offline   Reply With Quote
Old 24th November 2006, 03:12   #6
bholliger
Senior Member
 
Join Date: Jul 2004
Location: Switzerland
Posts: 223
Ok, I'll have a look at ExperienceUI.
bholliger is offline   Reply With Quote
Old 24th November 2006, 03:17   #7
zbd
Member
 
Join Date: Oct 2006
Location: Sydney, Australia
Posts: 76
Thanks for your help.
The only reason I'm trying to do this is because I couldn't change a line of text in the installer.

i've attached my script
[as i said i'm quite newb so structure and a lot of other things may be wrong]

The line that i cant get working is on line 100.

But either way would be great.
Attached Files
File Type: nsi myapp.nsi (25.5 KB, 186 views)
zbd is offline   Reply With Quote
Old 24th November 2006, 03:33   #8
bholliger
Senior Member
 
Join Date: Jul 2004
Location: Switzerland
Posts: 223
Have a look at the manual:

Defines / Page Settings / Files Copy Page

There are a lot of constants which can be set to other values. Is this of any use?

code:

InstFiles Page Settings

XPUI_INSTFILESPAGE_TITLE "Header Top"

The top layer of text on the header.
Default: "Installing"

XPUI_INSTFILESPAGE_SUBTITLE "Header Bottom"

The bottom layer of text on the header.
Default: "Please wait while <NAME> is being installed."

XPUI_INSTFILESPAGE_CAPTION ": Text"

The text added to the window caption.
Default: ": Copying Files"

bholliger is offline   Reply With Quote
Old 24th November 2006, 03:40   #9
zbd
Member
 
Join Date: Oct 2006
Location: Sydney, Australia
Posts: 76
Hi yeah, thats where i got XPUI_INSTSUCCESSPAGE_SUBTITLE from.

I am using a few other custom headers on other pages and they work ok, the default its supposed to beaccording to the documentation isn't what is actually printed either.

Its printing "All of the components of MyApp were successfully copied to your computer"
But it says the default is meant to be something else in the documentation.

So my last resort is to make it miss the end of the INSTFILES page, but i cant seem to do either at the moment
zbd is offline   Reply With Quote
Old 24th November 2006, 05:08   #10
bholliger
Senior Member
 
Join Date: Jul 2004
Location: Switzerland
Posts: 223
I'm sure this is not really a good way, but it could work.

Introduce
code:

SetAutoClose true


somewhere in your sections.

Cheers

Bruno
bholliger 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