Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

setupcomplete


 Share

Recommended Posts

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 setupcomplete

my 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\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\01 /VE /D "messenger" /f

REG ADD %KEY%\01 /V 1 /D "%systemdrive%\Software\Live2011_setup.exe" /f

REG ADD %KEY%\02 /VE /D "adobeflash" /f

REG ADD %KEY%\02 /V 1 /D "%systemdrive%\Software\adoflash.exe" /f

REG ADD %KEY%\03 /VE /D "framework" /f

REG ADD %KEY%\03 /V 1 /D "%systemdrive%\Software\Net4.exe" /f

REG ADD %KEY%\04 /VE /D "micro office" /f

REG 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" /f

REG ADD %KEY%\05 /V 1 /D "%systemdrive%\Software\reboot.exe" /f

REG ADD %KEY%\06 /VE /D "avast" /f

REG ADD %KEY%\06 /V 1 /D "%systemdrive%\Software\avastfree.exe" /f

REG ADD %KEY%\07 /VE /D "bootskin" /f

REG ADD %KEY%\07 /V 1 /D "%systemdrive%\Software\boot.exe" /f

EXIT

sorry my bad english

Edited by djpatch
Link to comment
Share on other sites


do you want to run a restart in the middle of app install and then after continue the remaining app install?.

yes

you 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\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\01 /VE /D "messenger" /f

REG ADD %KEY%\01 /V 1 /D "%systemdrive%\Software\Live2011_setup.exe" /f

REG ADD %KEY%\02 /VE /D "adobeflash" /f

REG ADD %KEY%\02 /V 1 /D "%systemdrive%\Software\adoflash.exe" /f

REG ADD %KEY%\03 /VE /D "framework" /f

REG ADD %KEY%\03 /V 1 /D "%systemdrive%\Software\Net4.exe" /f

REG ADD %KEY%\04 /VE /D "micro office" /f

REG 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" /f

REG ADD %KEY%\05 /V 1 /D "%systemdrive%\Software\REMAPP.cmd" /f

REG ADD %KEY%\06 /VE /D "riavvio sistema" /f

REG ADD %KEY%\06 /V 1 /D "%systemdrive%\Software\reboot.exe" /f

EXIT

BATCH FILE "REMAPP.cmd"

@Echo Off

SetLocal enableextensions

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\08 /VE /D "avast" /f

REG ADD %KEY%\08 /V 1 /D "%systemdrive%\Software\avastfree.exe" /f

REG ADD %KEY%\09 /VE /D "bootskin" /f

REG ADD %KEY%\09 /V 1 /D "%systemdrive%\Software\boot.exe" /f

EndLocal

EXIT

the 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 by RTK999
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...