Old 29th January 2009, 13:57   #1
JohnE
Junior Member
 
Join Date: Jan 2009
Posts: 3
Question Link finish page back to components

Could anyone let me know how from the finish page I can link back to the component selection page. I need the user to either finish or go back to select another or the same component again to install.

The various options have different custom pages that are run, so I cannot go back just a fixed number of pages. Also the Back button on the finish page is disabled. I understand that is is due to it not allowing the installation function to run again, but I want to get back beyond this to the component selection.

I have had a search around but cannot see any functions to do this. Would I need to create a custom finish page, and if so, even then how do I get back to the components page.

Many thanks
JohnE is offline   Reply With Quote
Old 30th January 2009, 01:10   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
you might be able to use..
http://nsis.sourceforge.net/Go_to_a_NSIS_Page

The number of pages it counts depends on your source code, not on whether those pages are actually displayed or not.

However.. going back past InstFiles is... iffy at best, and there's no standard built-in way to go back a page in general.
Any particular reason you would need this functionality that couldn't be re-worked to let the user do the needed things from the get-go?
Animaether is offline   Reply With Quote
Old 30th January 2009, 08:11   #3
JohnE
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks. I saw that article, but was concerned about the "iffy" statements people are making. Thanks for clearing up how the pages are numbered.

The installer includes a script to upgrade SQL databases and depending how many systems they have they may want to run that more than once, but also when they have updated the database, depending on the result, they may then wish to upgrade another part of the system.

I have considered just execing the installer again. Juts had a though there. Don't know whether the installer can accept parameters and based on that skip the welcome page, in which case I could launch it again and it would go to the components page. When runnint on Vista though would come up with UAC request again.
JohnE is offline   Reply With Quote
Old 30th January 2009, 09:10   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
yes, you can feed an installer command-line paramers. See the help file - or the wiki - for handling those. Alternatively you could set a (temporary) registry value.

As far as UAC goes - I haven't tried this - but if you are already elevated from the installer, then the process it spawns (the installer) shouldn't pop up another UAC? Unless installers are exempt from that behavior.
Animaether is offline   Reply With Quote
Old 30th January 2009, 09:50   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
starting another instance will not bring up UAC a 2nd time

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 30th January 2009, 11:21   #6
JohnE
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks. Looks like that will be the way then. I will need to put another button on the finish page that will relaunch the installer.
JohnE 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