Jump to content

INf install for graphic mode how to


Recommended Posts

ok for the first my cmd files seem ot execute properly so I have not worried about it. I never really thought about weather or not they waited as I know they do it's just that they execute so fast or at least the ones I use do execute fast.

I'm not sure what you mean by problem with wfp the only way you get that is if you try to replace windows files. AS for me Ido have a few things that remove files but they are cmd files and as such an eror is genereated but you simply ignore the error and wait for the ssytem to reboot.

Note: you can only do that as part of guirunonce and not part of cmdlines.txt as used here.

Link to comment
Share on other sites


well for the inf file it is just putting in regitry entries so after the registry entry you see

"the name you want displayed on the installer",0,"the command line to execute"

in there I have given examples on how to do msi installer types also. For iss(install shield) installers I use cmd files to install them with wich seems ot work just fine.

Link to comment
Share on other sites

Thanks very helpful and i must say i like how you put that Information on it as you cant seem to do that in the other one i tryed out.

EDIT:webmedic do you think that you could add a option to play a game on your setup thing say maybe sol or minesweeper just incase the person is there one time and bored with watching it setup.

Link to comment
Share on other sites

lol youve done a few to many linux installs. I'm not sure if it could be done or not. You know I do have a few older gamed that are like majong and stuff that are not micrsoft games but really the soonest you would be able to call it would be durring cmdlines.txt and by that time the install is almost done or at least 2/3's the way done.

Link to comment
Share on other sites

lol youve done a few to many linux installs. I'm not sure if it could be done or not. You know I do have a few older gamed that are like majong and stuff that are not micrsoft games but really the soonest you would be able to call it would be durring cmdlines.txt and by that time the install is almost done or at least 2/3's the way done.

lol...I like that game on Linux makes the time past quicker :)

Just a thought for your inf files but maybe pictures could be include in the setup windows instead you no just to make it look nice and all.

Link to comment
Share on other sites

medic: I'm using part of your 2 cd cmd for the windows update method and it works, but it doesn't work on the inf method, any suggestions?

CLS
@ECHO OFF
ECHO.
ECHO Expulsando CD-ROM...
ECHO.
ECHO Si est  instalando desde CD por favor ret¡relo ahora de la unidad de CD.
ECHO Si tiene un segundo CD por favor ins‚rtelo  en la unidad en este momento
ECHO Si est  utilizando un DVD para la instalaci¢n por favor ret¡relo ahora.
ECHO.
ECHO Espere hasta que la unidad de cdrom/dvd deje de parpadear y luego
start cscript %systemdrive%\install\Tools\cd_eject.vbs >nul
PSKill cscript.exe >nul
PAUSE

IF EXIST %systemdrive%\install\apps.cmd GOTO RUNBATCH
SET CDROM2=
IF EXIST D:\install\apps.cmd SET CDROM2=D:
IF EXIST E:\install\apps.cmd SET CDROM2=E:
IF EXIST F:\install\apps.cmd SET CDROM2=F:
IF EXIST G:\install\apps.cmd SET CDROM2=G:
IF EXIST H:\install\apps.cmd SET CDROM2=H:
IF EXIST I:\install\apps.cmd SET CDROM2=I:
IF EXIST J:\install\apps.cmd SET CDROM2=J:
IF EXIST K:\install\apps.cmd SET CDROM2=K:

IF NOT EXIST %CDROM2%\install\apps.cmd GOTO RUNBATCH

ECHO.
ECHO Por favor sea paciente mientras se copian los archivos a su disco duro,
ECHO esto puede llevar varios minutos. . . .
xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /Y
ECHO.

:RUNBATCH
ECHO.
EXIT

Link to comment
Share on other sites

IF EXIST %systemdrive%\install\apps.cmd GOTO RUNBATCH
SET CDROM2=
IF EXIST D:\install\apps.cmd SET CDROM2=D:
IF EXIST E:\install\apps.cmd SET CDROM2=E:
IF EXIST F:\install\apps.cmd SET CDROM2=F:
IF EXIST G:\install\apps.cmd SET CDROM2=G:
IF EXIST H:\install\apps.cmd SET CDROM2=H:
IF EXIST I:\install\apps.cmd SET CDROM2=I:
IF EXIST J:\install\apps.cmd SET CDROM2=J:
IF EXIST K:\install\apps.cmd SET CDROM2=K:

IF NOT EXIST %CDROM2%\install\apps.cmd GOTO RUNBATCH

ECHO.
ECHO Por favor sea paciente mientras se copian los archivos a su disco duro,
ECHO esto puede llevar varios minutos. . . .
xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /Y
ECHO.

:RUNBATCH
ECHO.
EXIT

this

should be

IF EXIST %systemdrive%\install\apps.inf GOTO RUNBATCH
SET CDROM2=
IF EXIST D:\install\apps.inf SET CDROM2=D:
IF EXIST E:\install\apps.inf SET CDROM2=E:
IF EXIST F:\install\apps.inf SET CDROM2=F:
IF EXIST G:\install\apps.inf SET CDROM2=G:
IF EXIST H:\install\apps.inf SET CDROM2=H:
IF EXIST I:\install\apps.inf SET CDROM2=I:
IF EXIST J:\install\apps.inf SET CDROM2=J:
IF EXIST K:\install\apps.inf SET CDROM2=K:

IF NOT EXIST %CDROM2%\install\apps.inf GOTO RUNBATCH

ECHO.
ECHO Por favor sea paciente mientras se copian los archivos a su disco duro,
ECHO esto puede llevar varios minutos. . . .
xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /Y
ECHO.

:RUNBATCH
ECHO.
EXIT

I also see at the end you are not calling the inf file you need to call it at some point for it ro run.

for instance in guirunonce.

[GuiRunOnce]
Command0="%systemdrive%\WINDOWS\SYSTEM32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\apps.inf"

Link to comment
Share on other sites

hmmm... maybe I dind't make myself clear, im using apps.cmd only to let the batch file know if the correct disc is inserted and begin copying files, actually I don't use that file, the applications setup is called within setup.inf (which is called from cmdlines.txt) setup.inf searches for applications on %systemdrive% but it wont find anything because the content of the second disc was not copied to %systemdrive% that's my problem.

PS Jus ta thought: perhaps setup is not giving copy.cmd enough time to do the job and it terminates before it can copy a thing

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