tcarman Posted October 17, 2006 Posted October 17, 2006 Hey Guys,I have one last issue with my WPI config which I can't seem to figure out. The issue is with detecting drives in order to (or not to) create a D: partition.As part of the standard Windows install I create the C: partition and let it go through until WPI kicks in. At this point WPI loads and the first two steps are to move CD-ROM to X: and an option to create a D: partition. Here is where my issue lies, I need a way to GCOND the option to create the D: partition if there is no partition to create on or if D: already exists as a fixed drive. As default, Windows sets the CD-ROM to D: during install and using DriveExists finds the CD-ROM at D: before it gets moved and I can't think of any other way to do this ?Does anybody have an idea of how to get this to work?pn=1;prog[pn]=['Set CD-ROM to X:'];ordr[pn]=[1];uid[pn]=['CDROM'];dflt[pn]=['yes'];cat[pn]=['System'];forc[pn]=['no'];gcond[pn]=['DriveExists("X:")'];cmd1[pn]=['hidecmd /w cscript c:\\Build\\Scripts\\cdrom.vbs //B'];pn++;prog[pn]=['Create D: Partition'];ordr[pn]=[2];uid[pn]=['CREATEDPARTITION'];dflt[pn]=['yes'];cat[pn]=['System'];forc[pn]=['no'];deps[pn]=['CDROM'];gcond[pn]=['DriveType("D:")=="FIXED"'];cmd1[pn]=['hidecmd /w cscript c:\\build\\scripts\\partition.vbs //B'];pn++;
zorphnog Posted October 17, 2006 Posted October 17, 2006 (edited) I don't know how advanced your vbscript skills are, but if you know how to write files via a script this wouldn't be too hard. The main problem you have is that your CD-ROM cannot be located at D: prior to starting WPI.One way I think you can get around this is to write a script that moves the cd-rom to a temporary drive letter and writes a vbs file to change it back to the original drive letter. Run this script prior to running WPI, and make sure that the file it writes is saved to the hdd, something like C:\cdromfix.vbs. If Set CD-ROM or Create D: Partition are selected, the cdromfix.vbs file is replaced with a script that moves the cd-rom to the appropriate location. Run the C:\cdromfix.vbs script at the end of your WPI installation. Edited October 17, 2006 by zorphnog
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