MSFN Forum: RunOnceEx on windows 2000? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RunOnceEx on windows 2000? Rate Topic: -----

#1 User is offline   TooMuchFreeTime 

  • Junior
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 16-June 05

Posted 20 July 2005 - 12:09 AM

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!


#2 User is offline   jbm 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 626
  • Joined: 16-September 04
  • OS:Windows 7 x64
  • Country: Country Flag

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.

#3 User is offline   marek722 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 12-March 05

Posted 20 July 2005 - 04:12 AM

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.

#4 User is offline   TooMuchFreeTime 

  • Junior
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 16-June 05

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
;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 User is offline   marek722 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 12-March 05

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
@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 User is offline   amitri 

  • Junior
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 24-April 04

Posted 20 July 2005 - 05:15 PM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy