Old 20th July 2004, 07:22   #1
markusha
Junior Member
 
Join Date: Jul 2004
Posts: 4
Web file install possible?

Hi,

Is the following scenario possible to author using NSIS?

User starts an update wizard which first lists available
servers. User selects a server and wizard lists available
files. User selects files to be downloaded from the server
and wizard finishes after that.

Markus
markusha is offline   Reply With Quote
Old 20th July 2004, 13:54   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Yes, it is possible with the combination of NSISdl and InstallOptions.


* 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 20th July 2004, 16:22   #3
markusha
Junior Member
 
Join Date: Jul 2004
Posts: 4
Thanks for pointing me to right direction. However, after getting to know InstallOptions I don't think it is very suitable for my purpose.

Offering the list of download servers in a listbox still works but I cannot come up with a way to show the available files in a list so that user can select them (preferably using check boxes) and then install them. Can I create the list of components dynamically for MUI_PAGE_COMPONENTS page? That page pretty much has the functionality but the list of files will be generated dynamically, on the fly.
markusha is offline   Reply With Quote
Old 20th July 2004, 16:33   #4
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
Oh, the TreeView control... I'm trying to add this control to InstallOptionsEx (see the thread with the same name) but it's not available now. I'm doing other changes to this plugin, so it will not be available soon.

However I would suggest to do that using the combination of DropList and ListBox. You could select a directory in DropList and files in ListBox.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 20th July 2004, 20:31   #5
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
You can dynamically generate the list of files using a combination of FindFirst and calling SendMessage to the listbox control on your IO page. Send the LB_ADDSTRING message with the text to be added. The syntax for this message is documented on MSDN.

I have used this technique with great success to circumvent the default NSIS restriction of 1024 characters for the LISTITEMS field in the IO ini file.
(I did not want to download a special build or recompile NSIS.)
This allows me to add as many items to a listbox using Windows API.

[edit]
In your case the list of files seems to come from a remote server.
What protocol are you using to get the files?
[/edit]

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Old 21st July 2004, 04:58   #6
markusha
Junior Member
 
Join Date: Jul 2004
Posts: 4
Quote:
Originally posted by iceman_k

[edit]
In your case the list of files seems to come from a remote server.
What protocol are you using to get the files?
[/edit]
Thx for the tip! I will look into it later. I figure that I first use NSISdl to download a text file containing the file names and then parse the file names to InstallOptions page. It is not going to be easy since I am a newbie in NSIS but this is fun to try at least.
markusha is offline   Reply With Quote
Old 21st July 2004, 13:17   #7
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
One more tip would be to use the Windows LB_XXXX messages to get the selected items from the listbox.
If it is just a few items you can get it from the STATE field in the IO ini file, but that again has a limit of 1024 characters in the default NSIS build.
If you need some help with this I can perhaps upload a simple example illustrating these techniques.

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Old 21st July 2004, 14:00   #8
markusha
Junior Member
 
Join Date: Jul 2004
Posts: 4
Quote:
Originally posted by iceman_k
One more tip would be to use the Windows LB_XXXX messages to get the selected items from the listbox.
If it is just a few items you can get it from the STATE field in the IO ini file, but that again has a limit of 1024 characters in the default NSIS build.
If you need some help with this I can perhaps upload a simple example illustrating these techniques.
No, thank you. I am leaning towards custom built MFC app that will do all that and more with great ease.
markusha 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