Jump to content

scott45333

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by scott45333

  1. I saw gotenks98 made a reference to a first run command. Here is a little tutorial I wrote that I have never had an issue with: Sometimes it is necessary to use a FirstRun.cmd instead of the SETUPCOMPLETE.cmd when integrating your silent apps in a custom build. The reason for this is some applications need the user to be logged in to install correctly. Here is a short tutorial to show you how to create a FirstRun.cmd. First, you must get the apps you want to install. (make sure they are silent if you want it to be an unattended installation). Second, if you want to include registry tweaks in the install, you need to make a .reg file containing the tweaks you want. Now, with Notepad++ we are going to make the first batch file. It should look something like this: @echo off ren "%programdata%\Microsoft\Windows\Start Menu\Programs\StartUp\Start.bat" "temp.TMP" DEL /F /Q "%programdata%\Microsoft\Windows\Start Menu\Programs\StartUp\temp.TMP" DEL /F /Q "%windir%\Setup\scripts\AppName1.EXE" DEL /F /Q "%windir%\Setup\scripts\AppName2.EXE" DEL /F /Q "%windir%\Setup\scripts\AppName3.EXE" Shutdown /r /f *AppName* is the FULL name of the apps install .exe you want. Save this file as Install.bat With your Windows image mounted, you will save this .bat file, all of your silent apps and your reg tweak file in: Windows/Setup/Scripts (you will have to create the Scripts folder in the Setup folder. Next, we will create the Start.bat Open Notepad++ again. This file should look like this: @echo off TITLE scott45333's Post Install Configurator echo. echo Please wait while the post install configures your system... echo ... the configuration process may take up to 10 minutes and will reboot automatically when finished. echo. cmd /c REGEDIT /S %windir%\Setup\scripts\Tweaks.reg START /WAIT %windir%\Setup\scripts\AppName1.EXE START /WAIT %windir%\Setup\scripts\AppName2.EXE START /WAIT %windir%\Setup\scripts\AppName3.EXE START /WAIT %windir%\Setup\scripts\install.bat END Save this file as Start.bat With Windows still mounted, this file will be saved in: ProgramData/Microsoft/Windows/StartMenu/Programs/StartUp Now, when Windows is install and the user logs on for the first time, all tweaks and apps will be installed silently and the temporary files deleted after the computer restarts.
  2. I get the same error if I try to do a clean install on a new partition of the computer itself, not just in VMWare.
  3. I installed windows on one partition in audit mode and sysprepped after getting everything install. Rebooted into my main OS and captured the wim with imagex /compress maximum /flags Ultimate /capture F:\ \captured\install.wim "Windows 7 ULTIMATE" "Windows 7 ULTIMATE" /check I keep getting this error The thing I can't figure out is my captured OS is installed on my F drive. My main is on C drive. I have the ISO in C:\W7\ISO, the capture folder is on my C drive and the DVD folder is C:\W7\DVD. I created the ISO using WAIK. I can't figure out way I keep getting a D drive error. I am testing in VMWare. Any suggestions would be greatly appreciated. And I am using NAOS as my primary, so the D drive is the 100 Mb System Reserve.
×
×
  • Create New...