![]() Firstly, if you need a restart, batch files can be designed to continue running commands after the restart (unlike nLite). You may think why not to put all the commands directly in the nLite RunOnce tab? Not doing so can have two benefits. As a result the only command I put in RunOnce tab is (remember that the variable includes a backslash, so no need to include it again): NLite gives u an environment variable for DVD drive, it’s %SOURCE%. I name my first batch file r.bat and I put it inside R directory, therefore the address is 'DVD:\R\r.bat' I just put a single command here, & that is the command to run my (first) batch file. For example in nLite, in unattended section, there’s a RunOnce tab, in which you can enter commands to run after the windows installation. Second, you need to somehow pass control to your (first) batch file after windows installation. I create a folder in the root of the DVD to hold all of my extra files. So, let’s get started.įirst, you need to consider the directory structure of the windows installation DVD (or CD). I mention the whole design of the batch files, the clues, important notes and the examples all in one place here. I don’t describe how to make the unattended installation of windows itself, or how to work with DriverPacks BASE, you can find out about them by doing a search on the web. These batch files are originally designed for Windows XP, but most of them are usable for newer versions of windows as well (some may need minor adjustments). Configuring files to run only the first time each user logs inĭuring these steps we do minor stuff as well, like: creating directories, copying and deleting files, and making delays.Continue running batch files after a system restart.Inserting executable files into startup of windows. ![]() Disabling the automatic login behavior of windows.Changing windows user’s account password based on the user input in step 8.Inserting commands into batch files from another batch file.Changing the computer name to the name we got by user input in the previous step.Getting the user input to use later (the only step which requires user interaction, obviously!).Placing a shortcut on all users’ desktop.Installing a troublesome VB6 (visual basic 6) program.Installing Microsoft hotfixes, patches & fixes (which you didn’t embed already for whatever reason) with.Installing programs like kmplayer, Office (2003), and Adobe Reader.Changing the default input language by creating & importing a.So we write batch files to do the following silently & automatically: You have created an unattended installation of windows (using nLite + DriverPacks BASE or other programs), but usually this isn’t enough, you need more things to be done.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |