cvx_borg
16th May 2003 15:26 UTC
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 :)
Afrow UK
16th May 2003 16:18 UTC
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:
Page Directory DirectoryFunc
Function DirectoryFunc
StrCmp $0 1 dontSkip # if $0 = 1 don't skip page
Abort # skip the page
dontSkip:
FunctionEnd
-Stu
cvx_borg
16th May 2003 16:22 UTC
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.. :(
kichik
16th May 2003 17:11 UTC
You can't set or get the current installation type yet without setting all of the flags of the related sections.
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?
cvx_borg
20th May 2003 09:05 UTC
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.. :/
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 :)
kichik
21st May 2003 13:38 UTC
You can't set the current install options yet. You'll have to set every section manually.