Jump to content

Recommended Posts

Posted

i was reading the expert section of the msfn guide ,and it says you can install your programs from the cd instead of copying them to the hard drive.

the methods used are

runonceex from cd

windows post installer

windows installation helper utility

xplode

But...what if you are using batchfiles

can it still be done or do i have to start using runonceex again

(i've tryed using runonceex before and didn't like it much)

i hope someone can help.


Posted

ohh...i thought that because it contains reg values it was different.

so all i have to do is replace the %systemdrive% to %cdrom% and it will work.

Posted (edited)

%cdrom% by itself is not a permanent variable.

therefor you have to put this line on top of your runonceex.cmd

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

and the file cd.txt has to be on the root of your CD.

check it out here:

EDIT:

to get back on your last question:

ohh...i thought that because it contains reg values it was different.

This is like BoardBabe already said not true. the command REG ADD is a commandline utity to add values to the register. It doesn't contain reg values.

Edited by erik_demon
Posted

ok...thanks for all your responses

sorry i was a bit vauge in my posts,

but you answered my question.....i'ii have to try it out tonight

bye

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...