It just occurred to me that IE, and by extention, MSHTA, can access DLL files for some specific resources via the res:// protocol. Since WPI is usually run from a CD (and increasingly as a generic mass application installer), I'm wondering how hard/neat it would be to have WPI read the setup billboard resources. This would be user-configurable (incase you don't want this).
I might give it a crack, but I'm putting this on the table for anyone that wants to give it a go.
And some administrative relief
The other idea I was thinking of included application "tags" - INI files that resided in the slightly higher-level directories that defined applications, instead of putting inside config.js. This would allow WPI to dynamically configure itself for admins, so a particular 'class' of user could have a particular feature set (though to have this idea refined, a brave or foolhardy admin would have to be asked for assistance). There are simple ways of parsing lists of directories and ini files using VBS, which could probably be ported to JS, which would facilitate this.
Example of the above:
[CD-Root] -$oem$ --WPI --Nero Burning ROM ---Nero Setup.exe ---app.wpi --Quake 2 ---QUake 2 setup.ini ---app.wpi
The app.wpi file might look like this:
[WPINFO] name=Winrar 3.42 desc=WinRAR is a 32-bit Windows version of the RAR archiver, the powerful archiver and archive manager. WinRAR compresses up to 30% better than ZIP. WinRAR provides complete support for RAR and ZIP archives and is also able to unpack CAB, ARJ, LZH, TAR, GZ, ACE, UUE, BZ2, JAR, ISO, Z and 7-Zip archives. cmd1=%cdrom%\\Software\\WinRAR\\wrar342.exe /S rega=%cdrom%\\Software\\WinRAR\\winrar.reg dflt=yes forc=false cat=Application ordr=340
I tested the idea in VBScript, and I think it could work, but this was a while ago, and admittedly, not in the context of an HTA file (My intentions were to include it in WPI, but I never get any 'me' time
if (app.wpi.fileexists) then
name[pn] = (parse app.wpi ('wpinfo','name'))
end if
pn++
(of course, the parser could be optimized by storing the entire app.wpi file as a string, which would reduce the need for file openings)
But the big one that no one will agree to (heh)...
I think it might be necessary to consider a move to VBS. Originally, JS was used, because I... well... didn't know VBS that well, and I wanted something that the community could dissect. While JS has served WPI nicely, VBS offers a lot more in the way of features (WPI uses the filesystem object, but larger amounts of the code are using more VBS features). I know it's possible to integrate the two languages, but I think using one language is better than hacking with two, and I don't think it's fair to have developers work between two languages.
I don't think it would be fair to anyone if this was done without putting it on the table first.
Well, that concludes my ideas and suggestions. I'm tired, so I' should go to bed (While watching the Daily Show). What do y'all think?



Help
Back to top








