Please see my comments below:
1. When specifying a default .sif file the script goes ahead and deletes ristndrd.sif but does not make the[guirunonce]amendments to the custom sif file. This in turns causes the finish.cmd and cleanup.cmd not to be exexuted post install. Ive gotten around this by commenting out the default sif section and renaming my default .sif to ristndrd.sif. This way the entries are correctly made to my custom file.
I have found the problem here. I have not carried through the variable that defines the custom.sif file. At one point there is still a hard linked "ristndrd.sif" specified. I have made a change that should fix this, but I am away from the desk at the moment so am unable to test it! If you have the time I'd appreciate it if you could run RISult and give some feedback.
Maybe I've missed an update of BTS or maybe the way in which I've used RISult previously wasn't impacted by this - but I can see that WatchDriverSigningPolicy.exe is not located within OEM/bin. I've amended the path now so you should not get a file not found error again.
2. I still seem to be getting a file not found error in the script around this stage
REM Move necessary BTS files to RIS suitable locations
MOVE /Y OEM\bin\7za.exe $OEM$\$$\System32 >> "%LOGALL%"
MOVE /Y OEM\bin\SetDevicePath.exe $OEM$\$1\D >> "%LOGALL%"
MOVE /Y OEM\bin\WatchDriverSigningPolicy.exe $OEM$\$1\D >> "%LOGALL%"
MOVE /Y OEM\*.7z $OEM$\$1 >> "%LOGALL%"
Im not able to pinpoint the exact location as the logfile (which ive attached) appears to stop loggin after the error has occured. The script does however finish. There are several entries below these lines that appear to require logging but do not appear on the log.
3. There seems to be a problem with your amended BTS cleanup and finish.cmd. (although ive not actually ran them in the context you have due to the problem stated in section 1) i have manually clicked them and seen some problems.
I've had a look at this and it is something I'll need to spend a little time on. I've fixed the problem with BTS...Cleanup.cmd. There should have been a "DEL" in there. Presetup.cmd should now no longer be run but deleted instead - I blame cut and paste for that one
The problem with moving BTS...Finish.cmd to a new location is unusual. It must be to do with the parsing of that particular command line within the context of an fedit statement. The MOVE command is correctly formatted when used in a simple batch file - it isn't working here though. I'll have a look and see if I can fix it. Failing that I'll see if I can do a copy/delete instead.
With regard to the errors you get after executing BTS...Cleanup.cmd I suspect that's caused, as you suppose, by presetup.cmd erroneously executing. As such, this should now also be fixed. I (and others) have previously had problems with the "D" folder not getting deleted at end of the build installation. If the "D" folder is still present after you have otherwise successfully installed then this may not be a RISult issue.
I would like to thankyou once again for all the hard work you have put into this project and look forward to your feedback.
I'm currently in the middle of creating a VB version of RISult, as I have moved on a larger project - which incorporates RISult, as well as ISO and PE build creation in a GUI VB environment. As such, one of the things I'm working on is improving the logging abilities and making the file/folder specification process less error prone/intuitive. It's still a while away so I'm still supporting the batch RISult but I hope you can see that the idiosyncracies of batch file operation should eventually be a thing of the past!
Given that the current 1.0.7 build of RISult has problems I'm going to post 1.0.8 immediately, with the caveat that it hasn't yet had the testing it usually gets and that the MOVE BTS...Finish problem appears to still exist. If you could re-run 1.0.8 and let me know of any remaining problems/improvements I'd be most grateful (I'm on vacation this week and have no VPN access to my work).
Thank you for taking the time to report all of this.