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 will not work

Featured Replies

I made a runonceex.cmd using the runonceex.cmd creator. I put this file in %cdrom%\$OEM$ and put in it cmdlines.txt. This part is ok - the installer runs, but when it does, it says that it can't find any of the filenames if the apps. I'm sure I typed their names in correctly.

I specified the apps to be in %cdrom%\Apps, and that's exactly where they are.

This is my runoncecmd.exe:

____________________________________________________________________________

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:\win51ip.SP2 SET CDROM=%%i:

SET PP=%cdrom%\Apps\

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

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

REG ADD %KEY%\000 /VE /D ".net2" /f

REG ADD %KEY%\000 /V 1 /D "%PP%dotnet2.exe" /f

REG ADD %KEY%\001 /VE /D ".netsp1" /f

REG ADD %KEY%\001 /V 1 /D "%PP%dotnet11sp1.exe" /f

REG ADD %KEY%\002 /VE /D "java" /f

REG ADD %KEY%\002 /V 1 /D "%PP%jre506.exe" /f

REG ADD %KEY%\003 /VE /D "Kaspersky Antivirus" /f

REG ADD %KEY%\003 /V 1 /D "%PP%kavscript.exe" /f

REG ADD %KEY%\004 /VE /D "MSAntispyware" /f

REG ADD %KEY%\004 /V 1 /D "%PP%MSAntispyware.exe" /f

REG ADD %KEY%\005 /VE /D "MSN_Messenger_7.5.0322" /f

REG ADD %KEY%\005 /V 1 /D "%PP%MSN_Messenger_7.5.0322.exe" /f

REG ADD %KEY%\006 /VE /D "MsgPlus-362.exe" /f

REG ADD %KEY%\006 /V 1 /D "%PP%MsgPlus-362.exe /SilentInstallNoSponsor" /f

REG ADD %KEY%\007 /VE /D "reader705.exe" /f

REG ADD %KEY%\007 /V 1 /D "%PP%reader705.exe" /f

REG ADD %KEY%\008 /VE /D "Office 2003" /f

REG ADD %KEY%\008 /V 1 /D "%PP%Office2003\PRO11.msi /QB" /f

REG ADD %KEY%\009 /VE /D "Photoshop CS2" /f

REG ADD %KEY%\009 /V 1 /D "%PP%PhotoshopCS2\PhotoshopCS2Script.exe" /f

REG ADD %KEY%\010 /VE /D "Spybot.exe" /f

REG ADD %KEY%\010 /V 1 /D "%PP%Spybot.exe" /f

REG ADD %KEY%\011 /VE /D "UltraEdit" /f

REG ADD %KEY%\011 /V 1 /D "%PP%uesetup.exe /s" /f

REG ADD %KEY%\012 /VE /D "WinRAR" /f

REG ADD %KEY%\012 /V 1 /D "%PP%winrarscript.exe" /f

EXIT

___________________________________________________________________________

any idea what the problem is?


  • Author

Ok...since it says "cant find \Apps\etcetcetc" it just be the first line:

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:\win51ip.SP2 SET CDROM=%%i:

This is supposed to find the CDROM, but it doesn't.

Runonceex.cmd creator generated this, so what's wrong?

Since a DOS batch file knows where it executes, then try this:

cmdow @ /HID
@Echo Off

SET PP=%~d0Apps\

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

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

REG ADD %KEY%\000 /VE /D ".net2" /f
REG ADD %KEY%\000 /V 1 /D "%PP%dotnet2.exe" /f

REG ADD %KEY%\001 /VE /D ".netsp1" /f
REG ADD %KEY%\001 /V 1 /D "%PP%dotnet11sp1.exe" /f

REG ADD %KEY%\002 /VE /D "java" /f
REG ADD %KEY%\002 /V 1 /D "%PP%jre506.exe" /f

REG ADD %KEY%\003 /VE /D "Kaspersky Antivirus" /f
REG ADD %KEY%\003 /V 1 /D "%PP%kavscript.exe" /f

REG ADD %KEY%\004 /VE /D "MSAntispyware" /f
REG ADD %KEY%\004 /V 1 /D "%PP%MSAntispyware.exe" /f

REG ADD %KEY%\005 /VE /D "MSN_Messenger_7.5.0322" /f
REG ADD %KEY%\005 /V 1 /D "%PP%MSN_Messenger_7.5.0322.exe" /f

REG ADD %KEY%\006 /VE /D "MsgPlus-362.exe" /f
REG ADD %KEY%\006 /V 1 /D "%PP%MsgPlus-362.exe /SilentInstallNoSponsor" /f

REG ADD %KEY%\007 /VE /D "reader705.exe" /f
REG ADD %KEY%\007 /V 1 /D "%PP%reader705.exe" /f

REG ADD %KEY%\008 /VE /D "Office 2003" /f
REG ADD %KEY%\008 /V 1 /D "%PP%Office2003\PRO11.msi /QB" /f

REG ADD %KEY%\009 /VE /D "Photoshop CS2" /f
REG ADD %KEY%\009 /V 1 /D "%PP%PhotoshopCS2\PhotoshopCS2Script.exe" /f

REG ADD %KEY%\010 /VE /D "Spybot.exe" /f
REG ADD %KEY%\010 /V 1 /D "%PP%Spybot.exe" /f

REG ADD %KEY%\011 /VE /D "UltraEdit" /f
REG ADD %KEY%\011 /V 1 /D "%PPsetup.exe /s" /f

REG ADD %KEY%\012 /VE /D "WinRAR" /f
REG ADD %KEY%\012 /V 1 /D "%PP%winrarscript.exe" /f

EXIT

Sorry, codebox rips empty lines.

Edited by MHz

  • Author
Since a DOS batch file knows where it executes, then try this:

~code

Sorry, codebox rips empty lines.

what if the cdrom drive isn't D?

Based on the configuration of your RunOnceEx file, you need to create a CD.txt file and place it in the root folder of your XP install disk. More information on it here:

http://unattended.msfn.org/unattended.xp/v...074c5ece9d622c/

See if that helps.

Same dif right?

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:\win51ip.SP2 SET CDROM=%%i:

Runonceex.cmd uses the file win51ip.SP2 instead of CD.txt

What's the purpose of a blank file that can't be written to anyway?

Edited by bellsprout

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.