SajiB_BD Posted August 6, 2007 Posted August 6, 2007 (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!!!! I added them below.....any Idea???RunsonceExcmdow @ /HID@echo offFOR %%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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Softwares for Service Pack 3 Build 2" /fREG ADD %KEY%\1% /VE /D "Winamp 5.35" /fREG ADD %KEY%\2% /V 1 /D "%CDROM%\install\winamp.exe /S /NCRC" /fSET /A i+=1REG ADD %KEY%05 /VE /D "Adobe Reader 7" /fREG ADD %KEY%05 /V 1 /D "%CDROM%\Install\adobe.exe -p -s /v/qn" /fREG ADD %KEY%25 /VE /D "Windows Live Messenger 8.1" /fREG ADD %KEY%25 /V 1 /D "%CDROM%\install\msn.exe /s" /fREG ADD %KEY%30 /VE /D "Winrar" /fREG ADD %KEY%30 /V 1 /D "%CDROM%\install\wirar.exe /s /fREG ADD %KEY%35 /VE /D "Flashget 1.9" /fREG ADD %KEY%35 /V 1 /D "%CDROM%\install\flashget\fgf140.exe /S" /fREG ADD %KEY%40 /VE /D "K Lite Codec" /fREG ADD %KEY%40 /V 1 /D "%CDROM%\Install\klcodec.exe /s" /fREG ADD %KEY%48 /VE /D "C Cleaner" /fREG ADD %KEY%48 /V 1 /D "%CDROM%\iinstall\ccsetup.exe /S" /fREG ADD %KEY%49 /VE /D "SkyPe" /fREG ADD %KEY%49 /V 1 /D "%CDROM%\install\SkypeSetup.exe /VERYSILENT /SP- /NORESTART" /fREG ADD %KEY%50 /VE /D "uTorrent" /fREG ADD %KEY%50 /V 1 /D "%CDROM%\install\utorrent.exe /S /fExitCommand line[COMMANDS]"RunOnceEx.cmd"Winnt.sif; Generated by nLite 1.4 beta[Data]Autopartition=0MsDosInitiated=0UnattendedInstall="Yes"AutomaticUpdates=yes[unattended]UnattendMode=DefaultHideUnattendSwitch="Yes"OemPreinstall="Yes"OemSkipEula="Yes"FileSystem=*WaitForReboot="No"NoWaitAfterTextMode=1NoWaitAfterGUIMode=1DriverSigningPolicy=IgnoreNonDriverSigningPolicy=Ignore[Display]Xresolution=1024Yresolution=768BitsPerPel=32Vrefresh=85AutoConfirm=1[systemRestore]MaximumDataStorePercentOfDisk=05RestorePointLife=10[GuiUnattended]TimeZone=130OEMSkipRegional=1OemSkipWelcome=1[Components]Iis_common=OnIis_inetmgr=OnIis_nntp=OnIis_smtp=OnIis_webadmin=OnIis_webdav=OnIis_www=OnIis_asp=On[userData]ProductKey="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"ComputerName=MOBILEDGEFullName = SajiBOrgName="SajiB."[RegionalSettings]Language= "0409"[Networking]InstallDefaultComponents="Yes"[identification]JoinWorkgroup="Sajib_World" Edited August 6, 2007 by SajiB_BD
Red Barchetta Posted August 6, 2007 Posted August 6, 2007 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\RunOnceExfor CURRENT_USER:SET KEY=HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceExIt sounds stupid, but SOFTWARE is different than Software - that drove me crazy for the longest time to.
0d14r3 Posted August 7, 2007 Posted August 7, 2007 @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\RunOnceExtoSet KEY=HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceExAnd change the name of your "RunsonceEx.cmd" to be equal at below of [COMMANDS]0d
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