Jump to content

Recommended Posts

Posted

1º - I have been seeing in some topics samples of ROE files, and they put this line at the beggining of their files:

FOR %%D IN (d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x:) DO IF EXIST %%D\WIN51IP SET CDROM=%%D
what does that mean?

for instance, i have 3 partitions in my HD. C:, D: and E: for personal files. so my 2 cd-rom drives are given their drive letter by windows automaticly. So, sometimes one cd-rom drive are G:, othertimes (if i disable from BIOS), the other goes H:, and so on. And i use my CD to install windows in other people computers, whos not always have three partitions at their HDs. I usually create 2 partitions at the HDs of people i install my winxp cd, C: for sys and progs files, and D: for personal files.

And i wish to know how this works, so i can put it on my ROE.cmd file to set CDROM drives, and then some apps can be executed from the cd, instead of copying them to the hard disk. so if i want my xp cd to "find" witch cd-rom drives are available on the computer, and detects witch one is the XP CD, how do i do?

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

2º - For running two ROE windows at 1º logon, to install different types of apps, like multimedia, antiviruses, and so, i have to add this line in the part i wish to open a new runonceex windows:

rundll32 iernonce.dll,RunOnceExProcess

and then re-begin the numbering sequences from zero, right?

but, since my ROE is executed from cmdlines.txt, and i insert this line, the ROE windows opens right at windows install at T-12, and NOT at first logon, as i desire.

So i´ve been reading, and the secret is to make a second RunOnceEx.cmd (witch i already did, to use cleaup.cmd and other tweaks), and insert that line at the beggining of the ROE2 file, right?

EX:

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Instalando Programas" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 7.08" /f

::REG ADD %KEY%\005 /V 1 /D "\"%systemdrive%\programas\AdobeReader v7.0.8 ptb.exe\" /Q /W /S /V"/QB" /f (quando precisar liberar uns 11 mb no cd, usar esse no lugar do msi)

REG ADD %KEY%\005 /V 1 /D "\"%systemdrive%\Programas\AdobeReader 7.0.8 pbt\instalar.msi\" /passive /norestart" /f

REG ADD %KEY%\010 /VE /D "avast! Antivirus 4 (Atualizado 22/09/06)" /f

REG ADD %KEY%\010 /V 1 /D "\"%systemdrive%\programas\avast! 4 v4.7 Home Edition.exe\" /SILENT /NORESTART /SP-" /f

REG ADD %KEY%\010 /V 2 /D "%systemdrive%\programas\avastDatabaseUpdated22-09-06.exe" /s" /f

REG ADD %KEY%\015 /VE /D "Installing other appz" /f

REG ADD %KEY%\015 /V 1 /D "\"%systemdrive%\programas\runonceex2.cmd\" /f

THEN, my runonceex2.cmd must contain right at it´s beggining the rundll32 iernonce.dll,RunOnceExProcess line, so it opens and beggins to install the apps defined at the RunOnceEx2.cmd file, right?

So, for instance, my RunOnceEx2.cmd file has to be something like this:

cmdow @ /HID

@echo off

rundll32 iernonce.dll,RunOnceExProcess

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

REG ADD %KEY% /V TITLE /D "Finalizando a instalacao do gugutZ Windows XP Professional" /f

REG ADD %KEY%\001 /VE /D "Making final adjustments, cleaning files and removing temp folder used on installation, then rebooting" /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\programas\gugutZ.scripts\gugutz.cleanup.cmd" /f

REG ADD %KEY%\002 /VE /D "Applying Luna Element 5.0.5 Theme" /f

REG ADD %KEY%\002 /V 1 /D "%systemroot%\Resources\Themes\LE5.theme" /s" /qb" /f

echo installing multimedia apps.

rundll32 iernonce.dll,RunOnceExProcess

REG ADD %KEY%\001 /VE /D "Winamp 2.95" /f

REG ADD %KEY%\001 /V 1 /D "\"%systemdrive%\programas\Multimedia\Winamp v2.95 full.exe\" /S" /f

REG ADD %KEY%\001 /V 2 /D "%systemdrive%\programas\Multimedia\gugutz.WinampPrefs.exe /s" /f

REG ADD %KEY%\001 /V 3 /D "%systemdrive%\programas\Multimedia\winampquicklaunch.exe /s" /f

REG ADD %KEY%\002 /VE /D "K-Lite Mega Codec Pack 1.57" /f

REG ADD %KEY%\002 /V 1 /D "\"%systemdrive%\programas\Multimedia\K-Lite Mega Codec Pack v1.57.exe\" /silent" /f

rundll32 iernonce.dll,RunOnceExProcess

echo installing Burning and compression Tools

REG ADD %KEY%\001 /VE /D "Nero 6.6.1.4" /f

REG ADD %KEY%\001 /V 1 /D "\"%systemdrive%\programas\Nero v6.6.1.4.exe\" /silent /noreboot /no_ui /sn=(removed) /write_sn" /f

REG ADD %KEY%\001 /V 2 /D "\"%systemdrive%\programas\Nero v6.6.1.4 ptg.exe\" /silent /noreboot" /f

REG ADD %KEY%\002 /VE /D "WinRAR 3.61" /f

REG ADD %KEY%\002 /V 1 /D "%systemdrive%\programas\wrar361br.exe /s" /f

exit

Is everything i wrote here right?

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

3º question: How do i save avast viruses updates? I observed that when avast tells me that there is a new version available, it´s update program downloads lots of files with the extensions .vpu. so i looked-up to find these files, and found that they are stored at the "..\Avast4\Setup" folder. So i let avast update itself, then i created a SFX file with winrar, containing the entire setup folder, so when avast install within my Winxp unattended install, the sfx is supposed to set avast up-to-date. but even so, everytime avast tells that there is a new version available, even if i JUST made the backup of the Setup folder. How come? is there other files to be included on my SFX, and i´m forgetting?

-----------

that´s it for now.

as always, thanks for all the ones who helps this helpless newbie that it is me.

gugutz.


Posted

I can't comment on the other things, but I can explain what that line of code does.

FOR %%D IN (d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x:) DO IF EXIST %%D\WIN51IP SET CDROM=%%D

Essentially is scans everyone of those listed drive letters for the WIN51IP file. That file must be in the root of your UA CD, so the concept is that whatever drive has that in the root is most likely your CDROM. It then uses SET to create a system variable %CDROM% that you can use in your scripts and such.

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