New
#31
I think I might have a solution. Since I want it automated so the user does not have to perform the initial steps.
- In the Windows installations \sources folder, create the folder $OEM$\$$\setup\scripts and place a script called setupcomplete.cmd in there
- The setupcomplete script runs on first boot, scans the drives for two scripts called start.cmd and chgdrive.cmd and copies them to the C:\ drive if they are found, or pops up an error if not
- If these scripts are found, run start.cmd which figures out which drive needs to be changed based on the username, since the drive configuration is known for each user
- Once we've figured out which drive needs to be renamed, call chgdrive to do that.
- Once done, delete the setupocomplete.omd and the two scripts copied to c:\
In the second last step I could conceivably change all drives that need to be renamed at that point, rather than doing those drives later via the main postintall.cmd script, but I want the output fore those in the log file. I can't create the log file in the initial script because stuff will then be out of order, so start.cmd and cghdrive.cmd initially won't log anything.