weist123 Posted October 29, 2004 Share Posted October 29, 2004 i will user RunOnceEx.cmd in my win2000 unattended install .does it work? Link to comment Share on other sites More sharing options...
Rthr Posted October 29, 2004 Share Posted October 29, 2004 It works but there will be a problem with environmental variables - you cannot use them. Link to comment Share on other sites More sharing options...
weist123 Posted October 29, 2004 Author Share Posted October 29, 2004 all of environmental variables can't be userd in win2000 unattended?for e.g?%systemroot%%cdrom%%systemdrive%%windir%which is can't be used? Link to comment Share on other sites More sharing options...
Incroyable HULK Posted October 29, 2004 Share Posted October 29, 2004 There is a way to do it... just give me a couple minutes to get the method I employed from my cd Link to comment Share on other sites More sharing options...
Incroyable HULK Posted October 29, 2004 Share Posted October 29, 2004 Ok, here we go1- in your $OEM$ folder, you must have a file named cmdline.txt with this content:[Commands]".\parse.bat"".\runonce.bat"2- Here is the content of parse.bat (commands always on a single line):@echo offecho BlaBlaBlatype %systemdrive%\install\Applications\runonce.txt|%windir%\system32\sed.exe 's/\%%systemdrive\%%/%systemdrive%/g'>%systemdrive%\runonce.reg3- Here is the content of runonce.bat:@echo offecho BlaBlaBla%windir%\regedit.exe /s %systemdrive%\runonce.reg4- You can put runonce.txt where you want in $OEM$ but ajust parse.bat in consequence. Here is the content of it:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]"Title"="Your TITLE"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz01]"1"="%systemdrive%\\install\\Applications\\directx\\dxsetup.exe /silent"@="Installation de DirectX 9.0c"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz02]"1"="%systemdrive%\\winnt\\regedit.exe /s %systemdrive%\\winapps\\Nero\\register.reg""2"="%systemdrive%\\install\\Applications\\Nero\\NERO.exe /silent /noreboot /no_ui""3"="%systemdrive%\\install\\Applications\\Nero\\FR.exe /silent /noreboot /no_ui"@="Nero Burning ROM Reloaded 6.6.0.1"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz03]"1"="%systemdrive%\\install\\Applications\\AdobeReader\\AR6.msi /qn"@="Acrobat Reader 6.0.1"And so on... you get the idea...5- Lastly, you must put sed.exe in $OEM$\$$\System32DOWNLOAD HEREWell, that's about it... hope I haven't forgot anything B) Link to comment Share on other sites More sharing options...
hasi001 Posted October 29, 2004 Share Posted October 29, 2004 %cdrom% isn't a system varable set by microsoft. the others are. So you can use all vars you mentioned but %cdrom%.If you'd like a graphical interface for runonceex, try WPI Link to comment Share on other sites More sharing options...
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