My problem is that I want to create a single DVD that brings up WPI, but only with certain applications available to install. Why? In my case, it's hardware-specific information, but it can be almost any reason. The attached version of WPI, which for simplicity I'll dub WPI-BL, adds a new entry in the Config screen for each application called 'Condition' that expects a Javascript statement. When generating the menu, WPI will evaluate the condition -- if it evaluates to true (1) then it's displayed...if it evaluates to false (0) then the entry won't appear on the menu.
As a practical example:
fso.FileExists("%windir%\\System32\\Drivers\b57xp32.sys") || fso.FileExists("%windir%\\System32\\Drivers\\bcm4sbxp.sys")
This will check to see if (in this case) the Broadcom Ethernet drivers are installed in the system. I have attached to an entry that installs the Broadcom Advanced Diagnostics for Windows. Installing this (or even making it an option) just doesn't make sense on a system that doesn't have the right network card.
fso.FileExists("%windir%\\System32\\atiddc.dll")
This checks to see if the ATI drivers are installed...I have this condition attached to an entry to install some ATI-specific software. In my environment, I need a swiss army knife installation CD -- I know what all the hardware combinations are and rather than be inundated with options for things that don't make sense on the machine I'm on at the moment, we just hide them...but I still have all the convinience of keeping a single image to maintain.
Enjoy...
Attached File(s)
-
WPI_BL.zip (75.81K)
Number of downloads: 101



Help
Back to top









