Jump to content

<RESTART>NO</RESTART>


Recommended Posts

In the old WinPE/winnt32 it was not required to reboot the computer *immediantely* after setup completes. With that, you could WinPE OPK a image over and once it was done manipulate the image if required.

As an example, you could utilize the Winbom.ini as follows:

[Version]
signature=$CHICAGO$

[Factory]
Logging=YES
LogFile=%WINDIR%\winbom.log
Username=guest
Password=


[ComputerSettings]
AuditAdminAutoLogon=Yes
SourcePath=%windir%
FontSmoothing=ClearType
DisplayResolution=1024x768x32
Hibernation=No
ExtendPartition=1

[NetCards]

[WinPE]
Restart=No
Lang=ENG
Sku=pro.sp2
ConfigSet=XP PRO SP2
SourceRoot=\\10.210.1.6\OPKTools
Username=guest
Password=

[WinPE.net]
StartNet=Yes

[StartMenuMFUlist]
Link0=
Link1=
Link2=

(notice the RESTART=No)

As you can see, this would install pro then continue on in a batch script. So you'd have your startnet.cmd look like so:

factory -winpe
mkdir C:\additional-utilities
xcopy /s /e /y /i \\10.210.1.6\OPKTools\additional-utilities C:\additional-utilities

Now... it appears you cannot do that according to MS's documentation...

RestartRestart specifies whether to restart or shut down the system after the windowsPE configuration pass. This setting is specific to Windows PE scenarios. Once image-based installation begins, this setting is ignored.

ValuesRestart
Specifies that the computer immediately restarts after the windowsPE configuration pass. End users cannot disable the restart. This is the default value.

Shutdown
Specifies that the computer immediately shuts down after the windowsPE configuration pass. End users cannot disable the shutdown.


This string type does not support empty elements. Do not create an empty value for this setting.
Valid PasseswindowsPE
Parent HierarchyMicrosoft-Windows-Setup | Restart
Applies ToThis element is available in the following editions and architectures.

Editions Architectures
the Windows Vista family
All

XML ExampleThe following XML output shows how to set the computer to shut down after the windowsPE configuration pass.

<Restart>Shutdown</Restart>

See Also Microsoft-Windows-Setup

Has anyone out there been more successful than myself at this?

Edited by Metzen
Link to comment
Share on other sites

  • 1 month later...

I got the same problem, but created a work around for it;

Just edit startnet.cmd;


wpeinit

net use s: \\preloadserver\vista

diskpart /s wipe.txt

s:
cd cmd
call xcopy.cmd ;where it finds xcopy /s /e /y /i \\10.210.1.6\OPKTools\additional-utilities C:\additional-utilities

cd \
cd 32bitDVD
setup.exe /unattend:s:\xml\basic.xml

I will post my complete script tomorrow at work!

Good luck!

[Edit] Forgot to mention I diskpart the HD with "diskpart /s wipe.txt" so I do not need the .xml answer file settings to make a partition.

Edited by Sanderrr
Link to comment
Share on other sites

I got the same problem, but created a work around for it;

Just edit startnet.cmd;


wpeinit

net use s: \\preloadserver\vista

diskpart /s wipe.txt

s:
cd cmd
call xcopy.cmd ;where it finds xcopy /s /e /y /i \\10.210.1.6\OPKTools\additional-utilities C:\additional-utilities

cd \
cd 32bitDVD
setup.exe /unattend:s:\xml\basic.xml

I will post my complete script tomorrow at work!

Good luck!

[Edit] Forgot to mention I diskpart the HD with "diskpart /s wipe.txt" so I do not need the .xml answer file settings to make a partition.

I found that setup.exe has a /noreboot switch. So, setup.exe /unattend:s:\xml\basic.xml /noreboot will remove the reboot.

Link to comment
Share on other sites

Hmm, interesting. That way I don't have to copy files in place (in example c:\blah\background.jpg to c:\windows\blah\background.jpg) with a script via RynSynchronous after install. Thats the problem I ran in, because copy to c:\windows before setup then setup renames it to c:\windows.old.

Thanks for the idea mate!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...