Jump to content

Recommended Posts

Posted (edited)

I set up my unatended XP pro with nlite and then took it a bit further and tried to use runonceex and for some reason when I go to install it asks me for the windows xp pro sp2 disk. We at have the sp2 disc built into out XP install.. So I got that on there and when it went into installing it did not add it to the network right then it added none of my custom apps like i asked it to in runonceex I dont know what im doing wrong but its all messed up.

cmdow @ /HID

@Echo Off

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:\win51ip.SP2 SET CDROM=%%i:

SET PP=%cdrom%\Install\

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

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

REG ADD %KEY%\000 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\000 /V 1 /D "%PP%\adobe\AdbeRdr707_en_US.exe /silent" /f

REG ADD %KEY%\001 /VE /D "Spybot Search and Destroy" /f

REG ADD %KEY%\001 /V 1 /D "%PP%\spybot\spybotsd14.exe /silent" /f

REG ADD %KEY%\002 /VE /D "Ultra VNC" /f

REG ADD %KEY%\002 /V 1 /D "%PP%\vnc\UltraVNC-101-Setup.exe /silent" /f

EXIT

Thats how I have it set up and It wont do nothing..

below is also my winnt.sif

_______________________________________________________

; Generated by nLite 1.0 RC7

[Data]

Autopartition = 0

MsDosInitiated = 0

UnattendedInstall = "Yes"

[unattended]

UnattendMode = FullUnattended

UnattendSwitch = "No"

OemPreinstall = "Yes"

OemSkipEula = "Yes"

FileSystem = *

WaitForReboot = "No"

NoWaitAfterTextMode = 1

NoWaitAfterGUIMode = 1

DriverSigningPolicy = Ignore

NonDriverSigningPolicy = Ignore

[systemRestore]

[GuiUnattended]

EncryptedAdminPassword = "No"

AdminPassword = "*******"

OEMSkipRegional = 1

OemSkipWelcome = 1

[shell]

DefaultThemesOff = "Yes"

DefaultStartPanelOff = "Yes"

[Components]

[userData]

ProductKey = "xxxx-xxxx-xxxx-xxxx"

ComputerName = xxxxx

FullName = "xxxx"

[RegionalSettings]

Language = "0409"

[Networking]

InstallDefaultComponents = "Yes"

[identification]

DomainAdmin = *******

DomainAdminPassword = "*******"

JoinDomain = "blah"

_____________________________________________

I honestly think i have no idea what im doing and thats probly why its not working :)

Edited by minusbfold

Posted

Simple typos are the nemesis of the first time unattender.

Put your backslash here, where you designate your variable...

RunOnce.jpg

...or in each installation path--but not both.

You can test the script afterward by executing your RunOnceEx command, and reviewing regedit to verify the settings have been properly placed. This short a list of programs might make it worth your while to restart afterwards (avoiding boot from CD), to test programs independent of Windows installation.

Posted (edited)

Just change:

SET PP=%cdrom%\Install\

to

SET PP=%cdrom%\Install

Your problem, is as Lazy8 describes (in his picture) that you are working with double backslashes in your paths.

See when you do; SET PP=something then %PP% will output 'something'.

See why your path in the line:

REG ADD %KEY%\000 /V 1 /D "%PP%\adobe\AdbeRdr707_en_US.exe /silent" /f

then becomes

REG ADD %KEY%\000 /V 1 /D "%cdrom%\Install\\adobe\AdbeRdr707_en_US.exe /silent" /f

Please remember to use [ code ] tags in future posts :)

Edited by BoardBabe

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...