SyntaxError, on Jan 5 2009, 04:32 AM, said:
A single Visual Basic Script (.vbs) can do everything you want with your sfx files, even create all your shortcuts with parameters and custom icons, and VBS is a lot more powerful than batch file scripting.
.vbs files can even self-delete since they are run entirely from ram, unlike batch files.
There's plenty of resources out there on the subject, so do a little research and you will quickly figure it out. I use .vbs scripts to configure my start menu and quicklaunch and I figured it out in maybe an hour, with a little trial and error and google.
Be sure you have the Windows Scripting Host (WSH) installed.
Here's a good resource on vbs:
http://msdn.microsoft.com/en-us/library/ms950396.aspx
Yah, but the stripped down XP box isn't going to have Windows Scripting Host installed, it won't even be on the custom XP install CD.
Second time around, I redid the batch files to delete each archive by full file name after each one is extracted, (takes less room than extracting them all THEN deleting) and just stuffed the shortcut for D: install into its own folder and it worked perfectly. I still want to know WTH caused a command to only delete EXE files to delete ALL the files in the folder and why it then killed the batch instead of doing the copy/extract/delete for the D: install shortcut.
Quote
.vbs files can even self-delete since they are run entirely from ram, unlike batch files.
Why would I want it deleted??? It wouldn't be copied to the hard drive, just like the batch files aren't. They simply copy the files to their proper locations, command the self extracting archives to extract themselves, then command the OS to delete those archives.
Completely un-needed complexity for this particular install! I have it working where it's completely non-dependent on any specific thing (like WSH) being present on the PC, aside from Windows XP or Vista itself and whichever things like DirectX or .NET may be required by the software AFTER it's installed.
Once I got the steps sorted out, batch files are the *least complex* and *easiest* method for
this specific use. With pre-made shortcuts, it does not depend on Windows having whatever some extra software requires in order to create them on the fly. Anything else would be using a hammer to swat gnats.
This works and I've tested it a few times now and it looks to be 100% foolproof. The satisfaction of making it work, combined with the feeling of "more work than fun" that caused me to give up on writing software around 15 years ago. (I said I hadn't done this sort of thing in a while...)
With this out of the way, I still need to modify a BIOS, create a custom screensaver, desktop wallpaper and do a Windows sound theme... Lots to do but fortunately some months to do it in. At least there's just the ONE PC this year instead of the eight I had to do on short notice last year, though those didn't have any custom stuff like this one.