I have a small AutoIT script - it asks the user to pick a *.TBI file for restoration to the machine (please don't ask why I'm not using imagex/WIM)..
Anyway - AutoIT line is..
$message="Please Select File to Restore" $Restore_File2 = FileOpenDialog($message, "G:\", "Image for Windows Backup Files (*.tbi)", 3)
The problem is - under WinPE 3.1 / Win7PE_SE - the File dialog box comes up okay, but it does not filter out the appropriate files - it just lists every file in the directory.
(I had tried this previously just building a winpe from the windows 7 waik, and came up with the same results).
Did some digging out on the AutoIT forums - some people had run across this, and came to the conclusion it was due to Explorer libraries not being loaded (or Internet explorer libraries..)
So - I figure - hey, this win7pe_se thing has internet explorer, AND explorer built into it.. that might work.
So - I have gotten this to work properly ONE Time. I have no idea what I did different between the build that worked and the build that didn't. (Have been having some trouble getting it to behave exactly how I wanted it).
Options I've got turned on / enabled. (things I can think of that are different than the standard build)
Build in ram.
boot manager - standard
had turned on 'use your extracted wim folders' at one point - but that made things blow up, so disabled that.
Using Windows 7 Enterprise x86 as source. (DVD extracted to a folder)
cddrive - run all programs from ram (This is primarily a restoration boot drive - but would like to have windows explorer and such handy for troubleshooting a machine, etc)
shell - explorer shell - disabled PE start menu (but have tried with it enabled)
components - additional files, calc, hwpnp, ie 8, ie flash, (have tried it without flash, and without IE), mmc, msi, paint, photoviewer, wordpad,notepad,penetwork,remotedesktop,ms visual c++
tweaks, default wallpaper, bginfo, classic shell (again, tried without it - doesnt seem to matter), clearlock, context menu, reboot and shutdown, shutdownpe-disabled (tried with it enabled, no difference)
apps - defaults.
drivers - usb, virtual pc, vmware, driver integration - integrating lan packs from driverpacks.net, and a winpe cab file supplied by dell for 90% of their network drivers.
finalize - standard items, i think. tried adding a Pin item, but didn't have any luck. Am using a modified autorun.cmd (put into additional files) to launch a batch file that waits for the network to become available, then maps a drive based on your IP. This also copies a link to the desktop, then runs the autoit script.
autoit script asks what file to restore, then launches Image for Windows with the appropriate command and passes it the filename, etc.
Now - if I hadn't seen this work, I'd just give up on having it behave.
But I hope I'm just missing something simple here.
Thinking about it - having typed it all out..
I did have some confusion on the whole autorun thing. It was extremely unclear to me as to what to edit to get my programs / batch file to run correctly. Mucking around a bit, I found that if I just made my own autorun.cmd and put it in additional files / windows / system32 / autorun.cmd - this seemed to have the desired effect. But since it's my own, did I break something?
Is there a better way to have the win7pese call my own custom batch file? I saw mentions of adding it to the registry, etc - but I don't see an easy place to do that in the winbuilder structure. / win7pese project.
Any advice you can provide would be appreciated.