Jump to content

RunOnceEx on windows 2000?


Recommended Posts

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!

Link to comment
Share on other sites


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.

Link to comment
Share on other sites

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=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?

Edited by TooMuchFreeTime
Link to comment
Share on other sites

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

Link to comment
Share on other sites

No problem with this code in W2K, hope it helps:

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.

Link to comment
Share on other sites

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