TooMuchFreeTime Posted July 20, 2005 Posted July 20, 2005 After finishing my uA XP-CD I started making uA 2K-CD...Everything else works fine except RunOnceEx.cmd.It just "doesn't happen".Does win2k support RunOnceEx?If it does what do I have to do to make it work?Thanks in advance and sorry for bad English!
jbm Posted July 20, 2005 Posted July 20, 2005 It does according to this KB article http://support.microsoft.com/default.aspx?...kb;en-us;232509But I don't have windows 2000 so I can't tell you for sure.
marek722 Posted July 20, 2005 Posted July 20, 2005 it works in w2k, for instance I use this code imported via reg-file[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zx100]@="Komponenten-Anpassungen""1"="%SystemRoot%\\System32\\regsvr32.exe /s /u %SystemRoot%\\system32\\regwizc.dll""2"="%SystemRoot%\\System32\\regsvr32.exe /s %SystemRoot%\\apppatch\\slayerui.dll""3"="%SystemRoot%\\regedit.exe /s %SystemDrive%\\INSTALL.TMP\\settings.reg"the order is alphabetically (zx100 ... next key I use is zx110 and so on) and "Komponenten-Anpassungen" is then displayed for all actions in key "zx100". If you add a "!" before the value name (example: instead of "1" use "!1") the entry is deleted only if it really executed.Caution: you can't use any system variables like in the example above (%SystemRoot%) because w2k does not accept keys of type "REG_EXPAND_SZ" and only there variables get expanded. In the example I replace the variables with the apropriate paths before importing to the registry. So all values will be of type "REG_SZ" without variables. Don't know if wxp will do better.
TooMuchFreeTime Posted July 20, 2005 Author Posted July 20, 2005 (edited) Well I have been testing and trying to find information but I still cannot get RunOnceEx.cmd to run on my unattended win2k install...I'm sure someone knows what I am doing wrong...svcpack.inf;Windows 2000[Version]Signature="$Windows NT$"MajorVersion=5MinorVersion=0BuildNumber=2195[SetupData] CatalogSubDir="\i386\SVCPACK"[ProductCatalogsToInstall][SetupHotfixesToRun]dotnetfxAdmin.exedxsetup.exe /silentie6setup.exe /Q:A /R:NIE6_ROE.EXE /Q:A /R:N"Q832483.exe /C:""dahotfix.exe /q /n"" /q:a"KB329115.exe /passive /norestart /quietKB883939.exe /passive /norestart /quietKB842773.exe /passive /norestart /quietKB890046.exe /passive /norestart /quietKB891861.EXE /passive /norestart /quietKB893803.exe /passive /norestart /quietKB894320.exe /passive /norestart /quietKB896358.exe /passive /norestart /quietKB896422.exe /passive /norestart /quietKB901214.exe /passive /norestart /quietKB903235.exe /Q:A /R:NlangPack.exe /q:a /c:"inst /q"REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /fqchain.exe cmdlines.txt[COMMANDS]"RunOnceEx.cmd" start of RunOnceEx.cmd@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:\CDROM_NT.5 SET CDROM=%%i:SET KEY=HKLM\EXTRA\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Asennetaan ohjelmia" /f Reg.exe and Regini.exe are copied in my system32 folder...Does or does not win2k support RunOnceEx during ua install?One more thing I still get the promt when installing .net langpack from svcpack.inf...but langPack.exe /q:a /c:"inst /q" is supposed to be correct syntax.What is wrong with it? Edited July 20, 2005 by TooMuchFreeTime
marek722 Posted July 20, 2005 Posted July 20, 2005 Well I have been testing and trying to find information but I still cannot get RunOnceEx.cmd to run on my unattended win2k install...I'm sure someone knows what I am doing wrong...start of RunOnceEx.cmd@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:\CDROM_NT.5 SET CDROM=%%i:SET KEY=HKLM\EXTRA\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Asennetaan ohjelmia" /fshouldn't the reg-keys be written toSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExno idea about the langpack problem, always used a 7zip archive containing all together
amitri Posted July 20, 2005 Posted July 20, 2005 No problem with this code in W2K, hope it helps:cmdow @ /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:\cdrom_ip.5 SET CDROM=%%i:SET PP=%cdrom%\Oem\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D ".Net Framework 1.1 SP1 with updates" /fREG ADD %KEY%\001 /V 1 /D "%PP%netfxsp1.exe" /fREG ADD %KEY%\003 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\003 /V 1 /D "%PP%MPsetup.exe /Q:A /R:N" /fREG ADD %KEY%\005 /VE /D "WMP9 hotfix KB828026" /fREG ADD %KEY%\005 /V 1 /D "%PP%KB828026.exe /Q /O /N /Z" /fREG ADD %KEY%\007 /VE /D "Adobe Reader 7.0.2" /fREG ADD %KEY%\007 /V 1 /D "%PP%acroread702.exe" /fREG ADD %KEY%\009 /VE /D "Sun Java 5.0 update 4" /fREG ADD %KEY%\009 /V 1 /D "%PP%jre504.exe" /fEXITUsing the guide from UA XP CD works OK, changes are reg.exe in system 32 and cdrom_ip.5 for CD check.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now