Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 2nd April 2002, 15:59   #1
dvanill
Junior Member
 
Join Date: Apr 2002
Location: Rochester
Posts: 3
Sections question...

Is it possible to check/uncheck sections programatically? What I would like to do is save registry entries to indicate which sections a user has selected during the install. Then, if/when they perform an upgrade, I'd like to read the registry entries to dynamically check or uncheck the sections to be the same as when they ran the previous install.

Is this possible?

Any information would be greatly appreciated, thanks.
dvanill is offline   Reply With Quote
Old 2nd April 2002, 17:53   #2
Schultz
Member
 
Join Date: Oct 2001
Posts: 71
No it is not possible to do this at runtime.. This has been requested a few times before but noone has ever tried to implement it at all.. I would sure like to see this feature. I tried to implement it at one time but failed to get it done.. Cause couldn't figure out the Custun list flags etc and how to get them select/unselect from the default..
Schultz is offline   Reply With Quote
Old 2nd April 2002, 20:37   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,166
Send a message via ICQ to Yathosho
mmh, maybe i dont really understand the problem, but it sounds possible to me. each section can write an entry to the registry, unselected sections won't do that naturally. when you run your update you can read the entry from the registry and skip it if it matches a defined value...
Yathosho is online now   Reply With Quote
Old 2nd April 2002, 21:16   #4
dvanill
Junior Member
 
Join Date: Apr 2002
Location: Rochester
Posts: 3
Yes, I understand that I can skip sections. But, I want to be able to show the sections as unchecked, so the person installing the update realizes that they will be skipped, and doesn't (think they) need to uncheck the unwanted sections.
dvanill is offline   Reply With Quote
Old 3rd April 2002, 03:26   #5
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,166
Send a message via ICQ to Yathosho
maybe don't think in sections then. you could have one section that reads the registry and then use InstallOptions that comes with NSIS (nsis\installoptions). if you can't use all this in one section you could still create an installer for each section, executed by InstallOptions. this is of course not very elegant, but it will do for the time until there's better ways..
Yathosho is online now   Reply With Quote
Old 3rd April 2002, 20:02   #6
superrock
Member
 
superrock's Avatar
 
Join Date: Jan 2002
Location: Graz, Austria
Posts: 50
Section enable & disable

Hi Dvanill,

I implemented such an extension to Nsis 1.95. It works properly. So I am using it for professional installation.

For further details see: http://forums.winamp.com/showthread....376#post471376

There you'll find the sources and the description. The binary version
can be downloaded from ftp://ftp.tdv.at/ftpclipboard/makensis.zip.

I hope Justin will implement it in a future version.
superrock is offline   Reply With Quote
Old 3rd April 2002, 22:11   #7
spanky
Senior Member
 
Join Date: May 2000
Posts: 295
Send a message via ICQ to spanky
I would like to see this added to NSIS because I would like my installer to remember previous flag options.. this way, for example, a user upgrading my software doesn't have to go through the custom installation options each time.

all work and no play makes jack a dull boy
spanky is offline   Reply With Quote
Old 4th April 2002, 16:06   #8
dvanill
Junior Member
 
Join Date: Apr 2002
Location: Rochester
Posts: 3
Thanks Andreas, that is exactly what I was looking for. I had already implemented a solution using the InstallOptions extension. Now, I have two equally viable solutions to choose from.

Thanks everyone for your answers.
dvanill is offline   Reply With Quote
Old 14th April 2002, 02:35   #9
Schultz
Member
 
Join Date: Oct 2001
Posts: 71
Superrock,
Can these patches be applied to nsis 1.96 without problems? cause i would like to try this functionality out in 1.96 but if i have to use 1.95 to get this then that isn't a problem at all.
Schultz is offline   Reply With Quote
Old 21st April 2002, 09:32   #10
superrock
Member
 
superrock's Avatar
 
Join Date: Jan 2002
Location: Graz, Austria
Posts: 50
Patch only for Nsis 1.95

Hi Schultz!

Sorry for my late reply. I stayed a week in the wonderful Tuskany/Italy.

I had a short look on it. It does not seem to work. Please download my Makensis 1.95 exe file from :

ftp://ftp.tdv.at/ftpclipboard/makensis.zip

first.
I will try to generate the patches for Nsis 1.96 later on, if you are interested?
superrock is offline   Reply With Quote
Old 21st April 2002, 21:04   #11
Schultz
Member
 
Join Date: Oct 2001
Posts: 71
Superrock,
ya i would be interested in it.. And i can't seem to download the file off that ftp site that you posted a link to.
Schultz is offline   Reply With Quote
Old 22nd April 2002, 21:57   #12
superrock
Member
 
superrock's Avatar
 
Join Date: Jan 2002
Location: Graz, Austria
Posts: 50
Try other address

Hi Schultz,

Please try my mirror address if the above address ist not reachable:

http://members.telering.at/andreas.r...d/makensis.zip
superrock is offline   Reply With Quote
Reply
Go Back   Winamp 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