Jump to content

RunOnceEx.cmd Creator


frederikshavn

Recommended Posts

Hey

I got a big problem,i want to mske a xp disk with all the programs i use to use,so the programs is installed with xp,i use RunOnceEx.cmd Creator,but i cant get it to work,it get a error message,some thing like this:windows can not find c:program name,i have a$OEM$ folder,and inside i have a folder called$$ and inside that there is a folder called $install,can any one help me so i can get it to work PLEASE,sorry for my english.i'm from Denmark

Link to comment
Share on other sites


Hi,

Use this in your runonceex.cmd:

@Echo Off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

SET PP=%cdrom%\Apps\

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

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


REG ADD %KEY%/005 /VE /D "Winrar 3.30" /f
REG ADD %KEY%/005 /V 1 /D "%PP%winrar\Winrar330.exe /s" /f

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

I included 2 examples of programs, just look up the silent switches in the guide. Make sure you have a CD.txt file on your cd (just an empty file). And make a directory on the root of your disk called "Apps" and put there all the applications, or change the code above.

Good Luck!

Edited by Bolus123
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...