djpatch Posted March 17, 2011 Share Posted March 17, 2011 (edited) Hello everyone, I would write the file setupcomplete.cmd, so it runs a system restart, but the next reboot, install the remaining programs are always included in the file setupcompletemy setupcomplete:FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\sources\install.wim SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\01 /VE /D "messenger" /fREG ADD %KEY%\01 /V 1 /D "%systemdrive%\Software\Live2011_setup.exe" /fREG ADD %KEY%\02 /VE /D "adobeflash" /fREG ADD %KEY%\02 /V 1 /D "%systemdrive%\Software\adoflash.exe" /fREG ADD %KEY%\03 /VE /D "framework" /fREG ADD %KEY%\03 /V 1 /D "%systemdrive%\Software\Net4.exe" /fREG ADD %KEY%\04 /VE /D "micro office" /fREG ADD %KEY%\04 /V 1 /D "%systemdrive%\Software\Office14\SETUP.EXE /config %systemdrive%\Software\office14\proplus.WW\CONFIG.XML" /f REG ADD %KEY%\05 /VE /D "riavvio sistema" /fREG ADD %KEY%\05 /V 1 /D "%systemdrive%\Software\reboot.exe" /fREG ADD %KEY%\06 /VE /D "avast" /fREG ADD %KEY%\06 /V 1 /D "%systemdrive%\Software\avastfree.exe" /fREG ADD %KEY%\07 /VE /D "bootskin" /fREG ADD %KEY%\07 /V 1 /D "%systemdrive%\Software\boot.exe" /fEXITsorry my bad english Edited March 17, 2011 by djpatch Link to comment Share on other sites More sharing options...
Major Posted March 17, 2011 Share Posted March 17, 2011 you have written "reboot.exe.exe" two .exe, i don´t know if it is an error or you have put this name yourself? Link to comment Share on other sites More sharing options...
djpatch Posted March 17, 2011 Author Share Posted March 17, 2011 my mistake to write Link to comment Share on other sites More sharing options...
RTK999 Posted March 17, 2011 Share Posted March 17, 2011 do you want to run a restart in the middle of app install and then after continue the remaining app install?. Link to comment Share on other sites More sharing options...
djpatch Posted March 18, 2011 Author Share Posted March 18, 2011 do you want to run a restart in the middle of app install and then after continue the remaining app install?.yes Link to comment Share on other sites More sharing options...
RTK999 Posted March 18, 2011 Share Posted March 18, 2011 (edited) do you want to run a restart in the middle of app install and then after continue the remaining app install?.yesyou can make a batch file to run the remaining app.Example:FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\sources\install.wim SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\01 /VE /D "messenger" /fREG ADD %KEY%\01 /V 1 /D "%systemdrive%\Software\Live2011_setup.exe" /fREG ADD %KEY%\02 /VE /D "adobeflash" /fREG ADD %KEY%\02 /V 1 /D "%systemdrive%\Software\adoflash.exe" /fREG ADD %KEY%\03 /VE /D "framework" /fREG ADD %KEY%\03 /V 1 /D "%systemdrive%\Software\Net4.exe" /fREG ADD %KEY%\04 /VE /D "micro office" /fREG ADD %KEY%\04 /V 1 /D "%systemdrive%\Software\Office14\SETUP.EXE /config %systemdrive%\Software\office14\proplus.WW\CONFIG.XML" /f REG ADD %KEY%\05 /VE /D "Remaining APP" /fREG ADD %KEY%\05 /V 1 /D "%systemdrive%\Software\REMAPP.cmd" /fREG ADD %KEY%\06 /VE /D "riavvio sistema" /fREG ADD %KEY%\06 /V 1 /D "%systemdrive%\Software\reboot.exe" /fEXITBATCH FILE "REMAPP.cmd"@Echo OffSetLocal enableextensionsSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\08 /VE /D "avast" /fREG ADD %KEY%\08 /V 1 /D "%systemdrive%\Software\avastfree.exe" /fREG ADD %KEY%\09 /VE /D "bootskin" /fREG ADD %KEY%\09 /V 1 /D "%systemdrive%\Software\boot.exe" /fEndLocalEXITthe bash file will load the keys into runonceex reg key and install after restart like setupcomplete does.also you dont need this line "FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\sources\install.wim SET CDROM=%%i:" if you're not installing app from CD/DVD Drive. Edited March 19, 2011 by RTK999 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now