Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RunOnceEx.cmd and Cleanup.cmd path

Featured Replies

Anybody pls tell me where I have to keep RunOnceEx.cmd and Cleanup.cmd in $OEM$ folder

and what shud i mentions winnt.sif and cmdlines.txt file

i wanna install apps automatically


no body's helping me ???

Try to be a bit more patient. One hour isn't such a long time, especially not at 4 o'clock in the morning.

RunOnceEx.cmd should go in $OEM$ itself and should be referenced in cmdline.txt like so:

[COMMANDS]
"REGEDIT /S regtweaks.reg"
"useraccounts.cmd"
"RunOnceEx.cmd"

Cleanup.cmd can go wherever you like. The only reference to it is in RunOnceEx.cmd, so just make sure the path there matches where you actually place it.

  • Author

My Problem is that My Applns are not getting installed automatically. Even Runonceex.cmd is not at all executing. Can't understand where I'm wrong.

My files goes like below

cmdlines.txt

---------------

[COMMANDS]
"REGEDIT /S regtweaks.reg"
"useraccounts.cmd"
"RunOnceEx.cmd"

runonceex.cmd

------------------

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\035 /VE /D "Flashget 1.4" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\flashget\flashget.exe /S" /f
REG ADD %KEY%\035 /V 2 /D "REGEDIT /S %systemdrive%\install\flashget\register.reg" /f

REG ADD %KEY%\037 /VE /D "IsoBuster 1.6" /f
REG ADD %KEY%\037 /V 1 /D "%systemdrive%\install\isobuster\IsoBuster.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\037 /V 2 /D "taskkill /F /IM isobuster.exe" /f

REG ADD %KEY%\047 /VE /D "MSN Messenger 6.2 Final" /f
REG ADD %KEY%\047 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /QB" /f

REG ADD %KEY%\050 /VE /D "Yahoo Messenger 6.0 Final" /f
REG ADD %Key%\050 /V 1 /D "%systemdrive%\install\yahoo\yahoo.exe /S" /f
REG ADD %Key%\050 /V 2 /D "PSKILL.EXE YPAGER.EXE" /f


REG ADD %KEY%\055 /VE /D "TweakXP Powertoy" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\tweakxp\Tweakxp.exe /VERYSILENT /SP-" /f


REG ADD %KEY%\057 /VE /D "Windows Media Player Version 10" /f
REG ADD %KEY%\057 /V 1 /D "%SystemDrive%\Install\WMP10\mp10setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\080 /VE /D "Winzip 8.1 Cracked" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\"Program Files"\winzip\winzip32.exe /noqp /autoinstall" /f

REG ADD %KEY%\082 /VE /D "Chipset INF Updates" /f
REG ADD %KEY%\082 /V 1 /D "%SystemDrive%\Install\Chipset_INF\infinst_enu.exe /verysilent /sp-" /f

REG ADD %KEY%\083 /VE /D "Motherboard USB 2.0 Updates" /verysilent /sp-" /f
REG ADD %KEY%\083 /V 1 /D "%SystemDrive%\Install\USB2.0\setup.exe /verysilent /sp-" /f

REG ADD %KEY%\084 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\084 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\085 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

winnt.sif

------------

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"
   AutomaticUpdates=yes

[Unattended]
   FileSystem=*
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   UnattendSwitch="yes"
   TargetPath=\WINDOWS
   OemPnDriversPath="Drivers\000Motherboard\Audio;Drivers\001Display;Drivers\002Modem"
   DriverSigningPolicy=Ignore      


[GuiUnattended]
   AdminPassword="admin"
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=165
   OemSkipWelcome=1

[UserData]
   ProductKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   FullName="XP-SUPERCD-USER"
   OrgName="XP-SUPERCD"
   ComputerName=XP-SUPERCD-PC

[Display]
   BitsPerPel=32
   Xresolution=800
   YResolution=600
   Vrefresh=60

[TapiLocation]
   CountryCode=971
   Dialing=Tone
   LongDistanceAccess="4004444"

[RegionalSettings]
   LanguageGroup=1
   SystemLocale=00000409
   UserLocale=00000409
   InputLocale=0409:00000409

[Branding]
   BrandIEUsingUnattended=Yes

[Proxy]
   Proxy_Enable=1
   Use_Same_Proxy=1
   HTTP_Proxy_Server=proxy1.emirates.net.ae:8080
   Proxy_Override=<local>

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes


[Components]
   msmsgs=off
   msnexplr=off
   freecell=off
   hearts=off
   minesweeper=off
   pinball=off
   solitaire=off
   spider=off
   zonegames=off
   
[Shell]
   DefaultStartPanelOff = Yes

[GuiRunOnce]
   %systemdrive%\install\RunOnceEx.cmd

I have placed my files cmdlines.txt, autologon.reg,regtweaks.reg,useraccounts.cmd in $OEM$ folder.

And I have placed runonceex.cmd and cleanup.cmd in $OEM$\$1\Install folder

I have placed my applications in OEM$\$1\Install folder (separetly in each folder)

Have I placed runonceex.cmd in correct place ???

Pls help :wacko:

Zahir

Well, the way you did it should work, but the problem is that you're importing your RunOnceEx on first login. So your applications will be installed on second login. It's better to do what cartoonite said.

  • Author

so what's the way for doing it in first login itself ???

move your RunOnceEX.cmd file into your $OEM$ folder.

slightly off topic, didn't you just have another topic on this same issue the other day?

  • Author

Ya... my problem is not solved yet .

I had tried moving the runonceex.cmd file in $OEM$ folder also.

Still was not working !!!

tell me whether I have to use [guirunonce] in winnt.sif or just mention in cmdlines.txt only ?

Remove the GUIRunOnce section. The guide says to use CMDLINES.TXT. USE IT.

put RunOnceEX.cmd in $OEM$ in the SAME folder as CMDLINES.TXT

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.