Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 16th May 2003, 14:26   #1
cvx_borg
Junior Member
 
Join Date: Feb 2003
Location: Budapest, Hungary
Posts: 14
can i modify InstType runtime?

hello, i have the following question: is there a possibility (in 2.0b0) to be able to _set_ the installation type? i need a restartable installation tool that (during the 2nd run) skips the initial screens, starts right at the installation options, having set the insttype to the saved one. (saving it is no problem, but setting it back is.. ) does anyone have an idea? (apart from saving the "enabledness" of all sections on the 1st run and setting it back on the 2nd and so on.) it would be great
cvx_borg is offline   Reply With Quote
Old 16th May 2003, 15:18   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Have a look at this topic: http://forums.winamp.com/showthread....hreadid=135217

That shall help you a lot.

If you aren't using MUI, then set pre functions like so:
code:
Page Directory DirectoryFunc
Function DirectoryFunc
StrCmp $0 1 dontSkip # if $0 = 1 don't skip page
Abort # skip the page
dontSkip:
FunctionEnd



-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 16th May 2003, 15:22   #3
cvx_borg
Junior Member
 
Join Date: Feb 2003
Location: Budapest, Hungary
Posts: 14
Quote:
Originally posted by Afrow UK
[B]Have a look at this topic: http://forums.winamp.com/showthread....hreadid=135217
thanks, i did not mention that i already solved the skipping pages part of the problem i only have problems with setting the insttype. since i abort the components page the insttype gets reset to the 1st one, even if the user chose the 2nd in the last session..
cvx_borg is offline   Reply With Quote
Old 16th May 2003, 16:11   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
You can't set or get the current installation type yet without setting all of the flags of the related sections.

Quote:
since i abort the components page the insttype gets reset to the 1st one, even if the user chose the 2nd in the last session..
Care you supply an example script?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 20th May 2003, 08:05   #5
cvx_borg
Junior Member
 
Join Date: Feb 2003
Location: Budapest, Hungary
Posts: 14
Quote:
Originally posted by kichik
You can't set or get the current installation type yet without setting all of the flags of the related sections.
btw, can i tweak the mui somehow so that the (to-be-aborted-anyway) components page would start up with insttype #2 by default? i guess it would solve my problem as well, although it's not too nice but would do the work else i guess i really should resort to save all flags-restore all flags in the very first hidden section.. :/

Quote:
Care you supply an example script?
i would, but can't sorry, it's about 1000-1500 lines long, with a modification in the mui core, so i guess it would be a bit too tiring besides, parts of it are company confidental in this phase , and most of all, as far as i understand, i need a yet-non-existent code to be inserted somewhere, so the current code would not help too much, would it
cvx_borg is offline   Reply With Quote
Old 21st May 2003, 12:38   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
You can't set the current install options yet. You'll have to set every section manually.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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