Jump to content

Recommended Posts

Posted (edited)

Guys....I'm trying to make a unattended version of winxp.I stuck on software installation using RunsonceEx.The prob is Its doesnt start automatic install during the setup... dont knw whr is the error!!!! :wacko: I added them below.....any Idea???

RunsonceEx

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:\win51 SET CDROM=%%i:

SET PP=%CDROM%\Install\

Set KEY = HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Softwares for Service Pack 3 Build 2" /f

REG ADD %KEY%\1% /VE /D "Winamp 5.35" /f

REG ADD %KEY%\2% /V 1 /D "%CDROM%\install\winamp.exe /S /NCRC" /f

SET /A i+=1

REG ADD %KEY%05 /VE /D "Adobe Reader 7" /f

REG ADD %KEY%05 /V 1 /D "%CDROM%\Install\adobe.exe -p -s /v/qn" /f

REG ADD %KEY%25 /VE /D "Windows Live Messenger 8.1" /f

REG ADD %KEY%25 /V 1 /D "%CDROM%\install\msn.exe /s" /f

REG ADD %KEY%30 /VE /D "Winrar" /f

REG ADD %KEY%30 /V 1 /D "%CDROM%\install\wirar.exe /s /f

REG ADD %KEY%35 /VE /D "Flashget 1.9" /f

REG ADD %KEY%35 /V 1 /D "%CDROM%\install\flashget\fgf140.exe /S" /f

REG ADD %KEY%40 /VE /D "K Lite Codec" /f

REG ADD %KEY%40 /V 1 /D "%CDROM%\Install\klcodec.exe /s" /f

REG ADD %KEY%48 /VE /D "C Cleaner" /f

REG ADD %KEY%48 /V 1 /D "%CDROM%\iinstall\ccsetup.exe /S" /f

REG ADD %KEY%49 /VE /D "SkyPe" /f

REG ADD %KEY%49 /V 1 /D "%CDROM%\install\SkypeSetup.exe /VERYSILENT /SP- /NORESTART" /f

REG ADD %KEY%50 /VE /D "uTorrent" /f

REG ADD %KEY%50 /V 1 /D "%CDROM%\install\utorrent.exe /S /f

Exit

Command line

[COMMANDS]

"RunOnceEx.cmd"

Winnt.sif

; Generated by nLite 1.4 beta

[Data]

Autopartition=0

MsDosInitiated=0

UnattendedInstall="Yes"

AutomaticUpdates=yes

[unattended]

UnattendMode=DefaultHide

UnattendSwitch="Yes"

OemPreinstall="Yes"

OemSkipEula="Yes"

FileSystem=*

WaitForReboot="No"

NoWaitAfterTextMode=1

NoWaitAfterGUIMode=1

DriverSigningPolicy=Ignore

NonDriverSigningPolicy=Ignore

[Display]

Xresolution=1024

Yresolution=768

BitsPerPel=32

Vrefresh=85

AutoConfirm=1

[systemRestore]

MaximumDataStorePercentOfDisk=05

RestorePointLife=10

[GuiUnattended]

TimeZone=130

OEMSkipRegional=1

OemSkipWelcome=1

[Components]

Iis_common=On

Iis_inetmgr=On

Iis_nntp=On

Iis_smtp=On

Iis_webadmin=On

Iis_webdav=On

Iis_www=On

Iis_asp=On

[userData]

ProductKey="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"

ComputerName=MOBILEDGE

FullName = SajiB

OrgName="SajiB."

[RegionalSettings]

Language= "0409"

[Networking]

InstallDefaultComponents="Yes"

[identification]

JoinWorkgroup="Sajib_World"

Edited by SajiB_BD

Posted

I am not quite sure what the idea of some of those SET statements are - but I didn't think they are the problem anyway.

What I do see is the SET KEY line. I had the same problem a while back. It's looking for a key that dose not exist essentially, and if it dose create the key, it's not the one the OS is going to look at..

for LOCAL_MACHINE entries what you want in the example is:

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

for CURRENT_USER:

SET KEY=HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

It sounds stupid, but SOFTWARE is different than Software - that drove me crazy for the longest time to.

Posted

@SajiB_BD

I have low experience with variables in batch files but the spaces before and after '=' are relevants, then try this:

change

Set KEY = HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

to

Set KEY=HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

And change the name of your "RunsonceEx.cmd" to be equal at below of [COMMANDS]

0d

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