glocK_94 Posted December 1, 2009 Share Posted December 1, 2009 (edited) I'm trying to make a more modular 98SE install CD. My goal is to increase the number of options avaible in the custom install menu. So far, I've used successfully the 98Lite scripts to make components become options. I also modded a few *.inf files myself to turn other components into optional (such as taskmonitor). The problem is I'd like to customize the default, compact and portable installs to get rid of uneeded components.In every *.inf files which contains the install scripts of optional components, you can find code similar to this :[Optional Components]WSH[WSH]OptionDesc = %DESC_WSH%Tip = %TIPS_WSH%Parent = AccessTopCopyfiles = WSH.Copy.CScript, WSH.Copy.WScript, WSH.Copy.OCX, WSH.Copy.Samples, WSH.Copy.Help, WSH.Copy.OCX2AddReg = WSH.AddReg.WSH, WSH.AddReg.Installed, WSH.AddReg.OCX2InstallType = 14;Typical, Portable, CustomIconIndex = 4 UnInstall = WSH.UninstallI'm interested by the InstallType variable. It determines in which type of install the component is installed (typical, minimal, laptop, custom).Problem is, the comments sometimes contained in the *.inf files (as above) are often contradictory. Besides, I've only been able to find the InstallType references for Windows XP/2K on the net.So far, here are the codes I came across :0 (custom only)4 (laptop only)10 (typical only ?)12 (?)14 (typical, laptop and custom ?)15 (all cases)Other ones might do exist. Oh, and by the way, the options selected by default for a custom install are the same as for a typical setup (Edit : in the Windows default Inf, but that's not mandatory).If anyone has a full list of InstallType codes, please share !Edit : View post n°3 for a spreadsheet of all InstallTypes. Edited December 3, 2009 by glocK_94 Link to comment Share on other sites More sharing options...
ShadeTreeLee Posted December 3, 2009 Share Posted December 3, 2009 You got me curious so I went thru the inf folder and copied out every one that was different from any seen before to get this:InstallType = 0 ;Manual onlyInstallType = 0 ;Maunual Install OnlyInstallType = 4 ;PortableInstallType = 10 ;Typical, CustomInstallType = 10 ; 1 = Compact, 2 = Typical, 4 = Portable, 8 = CustomInstallType = 12 ;Portable, Custom.InstallType = 14 ;Typical, Portable, CustomInstallType = 15 ;Manual onlyInstallType = 15 ;All CasesThe second 10 listing from SWFLSH16.INF is the one that holds the key. If you wanted an installation for Compact and Typical only you would use 3. Portable and Custom add together and become 12. Add them all and you have 15 or in other words All Cases or all 4 of them.You add them up to get what you want. Lots of inf flags work the same way, popular method among machine language too. That is the complete list sure enough.Every time I get next to an INF file, I want to toss some bones and do some conjuring it seems. Link to comment Share on other sites More sharing options...
glocK_94 Posted December 3, 2009 Author Share Posted December 3, 2009 Brilliant ! I would never have figured it myself.I got confused about Custom and Manual since Microsoft technet states that (about Win95 install process) "Notice that for Custom Setup, the options selected by default are the same as for a Typical installation".That led me to believe that custom and manual were the same when actually, this just means that everytime they selected a component for Typical setup (2), they actualy also added the Custom flag (8). That's why you never find any "InstallType = 2" or "= 6".Well, thanks a lot for the info ShadeTreeLee.Here's a little spreadsheet listing all InstallType variables: Link to comment Share on other sites More sharing options...
jaclaz Posted December 3, 2009 Share Posted December 3, 2009 How shameful. A windows 98 Frenchman that does not know/use a French program :WillyPadhttp://snoopy81.ifrance.com/pages/willy.htmFrom it's help:InstallType refers to the Compact (1), Typical (2), Portable (4), Custom (8) Windows Setup type. With this flag you choose when your option is selected. Just add the figures to select two or more flags.(the data about 0 is missing though) jaclaz Link to comment Share on other sites More sharing options...
glocK_94 Posted December 3, 2009 Author Share Posted December 3, 2009 A windows 98 Frenchman that does not know/use a French program :WillyPad Nope. Never heard about Willypad! (handy tool by the way)... when I use Resolnow from the same author... Link to comment Share on other sites More sharing options...
jaclaz Posted December 3, 2009 Share Posted December 3, 2009 Nope. Never heard about Willypad! (handy tool by the way)Yep, I guess it's syntax highlighting may come useful for your stated goal, personally I like it a lot, making .inf much more readable than "usual". jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now