Old 27th September 2006, 01:01   #1
Taake
Junior Member
 
Taake's Avatar
 
Join Date: Sep 2006
Location: Australia
Posts: 3
Prompt user to locate a file?

Hey guys.

I have finished coding my installer using NSIS, but there are a few little features that I'd like to sort out to make it more 'user-friendly'.
The main one that I'm having trouble with is being able to prompt the user to locate a file (this will be inside a certain section). Basically, the user has selected a certain install configuration at the components page which enables them to use their own file in the installation progress, and I want to be able to prompt them for that file's location to be able to use it.
Right now I've basically told the user, with a messagebox, to place the file (named exactly a certain name) on the Desktop so I can pick it up. Of course, as you can imagine, this isn't very friendly and could be a lot better using a prompt.

I've searched extensively (well, at least, I'd like to think so) and haven't found anything on the matter, so I was wondering if anybody around here has some method to do this.
Thanks in advance.
Taake is offline   Reply With Quote
Old 27th September 2006, 18:37   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Did you search on PageEx instruction or Dialogs & DialogEx plugins


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 27th September 2006, 22:21   #3
Taake
Junior Member
 
Taake's Avatar
 
Join Date: Sep 2006
Location: Australia
Posts: 3
PageEx wouldn't work, as this can only happen inside a section (unless I use SectionGetFlags I guess). The plug-in will, though.

Considering that I couldn't get any good results by typing 'nsis dialogs' into Google just then, it must've been pretty well hidden :/

Looks like you made this one yourself.
Thanks for it.
Taake is offline   Reply With Quote
Old 28th September 2006, 17:51   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Quote:
Originally posted by Taake

Considering that I couldn't get any good results by typing 'nsis dialogs' into Google just then, it must've been pretty well hidden :/
Did you try the same search query on wiki


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 28th September 2006, 22:32   #5
Taake
Junior Member
 
Taake's Avatar
 
Join Date: Sep 2006
Location: Australia
Posts: 3
Quote:
Originally posted by Joel
Did you try the same search query on wiki
Not initially, no. I searched the wiki, but didn't look in the Plugins category.
Thanks again, I implemented it yesterday and it works very well.
Taake 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