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!
Page 1 of 1
RunOnceEx on windows 2000?
#2
Posted 20 July 2005 - 02:47 AM
It does according to this KB article
http://support.microsoft.com/default.aspx?...kb;en-us;232509
But I don't have windows 2000 so I can't tell you for sure.
http://support.microsoft.com/default.aspx?...kb;en-us;232509
But I don't have windows 2000 so I can't tell you for sure.
#3
Posted 20 July 2005 - 04:12 AM
it works in w2k, for instance I use this code imported via reg-file
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.
[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.
#4
Posted 20 July 2005 - 01:20 PM
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
cmdlines.txt
start of RunOnceEx.cmd
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?
I'm sure someone knows what I am doing wrong...
svcpack.inf
;Windows 2000 [Version] Signature="$Windows NT$" MajorVersion=5 MinorVersion=0 BuildNumber=2195 [SetupData] CatalogSubDir="\i386\SVCPACK" [ProductCatalogsToInstall] [SetupHotfixesToRun] dotnetfxAdmin.exe dxsetup.exe /silent ie6setup.exe /Q:A /R:N IE6_ROE.EXE /Q:A /R:N "Q832483.exe /C:""dahotfix.exe /q /n"" /q:a" KB329115.exe /passive /norestart /quiet KB883939.exe /passive /norestart /quiet KB842773.exe /passive /norestart /quiet KB890046.exe /passive /norestart /quiet KB891861.EXE /passive /norestart /quiet KB893803.exe /passive /norestart /quiet KB894320.exe /passive /norestart /quiet KB896358.exe /passive /norestart /quiet KB896422.exe /passive /norestart /quiet KB901214.exe /passive /norestart /quiet KB903235.exe /Q:A /R:N langPack.exe /q:a /c:"inst /q" REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /f qchain.exe
cmdlines.txt
[COMMANDS] "RunOnceEx.cmd"
start of RunOnceEx.cmd
@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:\CDROM_NT.5 SET CDROM=%%i: SET KEY=HKLM\EXTRA\Microsoft\Windows\CurrentVersion\RunOnceEx REG 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?
This post has been edited by TooMuchFreeTime: 20 July 2005 - 01:21 PM
#5
Posted 20 July 2005 - 03:05 PM
TooMuchFreeTime, on Jul 20 2005, 09:20 PM, said:
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
I'm sure someone knows what I am doing wrong...
start of RunOnceEx.cmd
@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:\CDROM_NT.5 SET CDROM=%%i: SET KEY=HKLM\EXTRA\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Asennetaan ohjelmia" /f
shouldn't the reg-keys be written to
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
no idea about the langpack problem, always used a 7zip archive containing all together
#6
Posted 20 July 2005 - 05:15 PM
No problem with this code in W2K, hope it helps:
Using the guide from UA XP CD works OK, changes are reg.exe in system 32 and cdrom_ip.5 for CD check.
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:\cdrom_ip.5 SET CDROM=%%i: SET PP=%cdrom%\Oem\Install\ SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REG ADD %KEY%\001 /VE /D ".Net Framework 1.1 SP1 with updates" /f REG ADD %KEY%\001 /V 1 /D "%PP%netfxsp1.exe" /f REG ADD %KEY%\003 /VE /D "Windows Media Player 9" /f REG ADD %KEY%\003 /V 1 /D "%PP%MPsetup.exe /Q:A /R:N" /f REG ADD %KEY%\005 /VE /D "WMP9 hotfix KB828026" /f REG ADD %KEY%\005 /V 1 /D "%PP%KB828026.exe /Q /O /N /Z" /f REG ADD %KEY%\007 /VE /D "Adobe Reader 7.0.2" /f REG ADD %KEY%\007 /V 1 /D "%PP%acroread702.exe" /f REG ADD %KEY%\009 /VE /D "Sun Java 5.0 update 4" /f REG ADD %KEY%\009 /V 1 /D "%PP%jre504.exe" /f EXIT
Using the guide from UA XP CD works OK, changes are reg.exe in system 32 and cdrom_ip.5 for CD check.
- ← Kill "This document was sent to the printer"?
- Unattended Windows 2000/XP/2003
- Unattended XP Freeze at Harddrive Partition Screen →
Share this topic:
Page 1 of 1



Help
Back to top









