Help - Search - Members - Calendar
Full Version: I can't resolve this!
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
acaro
Hi!!!

I have been reading forum ,post, (using the search function of course) but i can't look for the solution.

My problem is that my runonceex.cmd file doesn't works. I doens't nothing.
I have followed ALL THE STEPS you have done here but i think my cmdlines.txt never executes itself because i go to the registry after the installation and i don't have nothing in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx (is empty).

I think i have tried all!!!
here you got the picture with my $OEM$ folder.

My cmdlines.txt:

[COMMANDS]
"RunOnceEx.cmd"

I have removed [GUIRUNONCE..] in winnt.sif .
Do i must to have reference for this files in any file???? I don't know.

Sorry for my english but i'm spanish and i don't uset it enough.

THANKS!!!!
lysip
You must set a winnt.sif setting...
http://unattended.msfn.org/global/reference.htm
newwink.gif
Yzöwl
@ acaro

Your CD Structure is correct
The content of your cmdlines.txt is correct

I think we may need to see your RunOnceEx.cmd, this is the most likely cause of the problem.

@ lysip

The [GUIRUNONCE] section in winnt.sif is not required.
lysip
Actually i was thinking it would be "OemPreinstall=Yes". but i could be wrong so no quotes biggrin.gif
acaro
This is my runonceex.cmd:
CODE

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Instalando Aplicaciones..." /f

REG ADD %KEY%\001 /VE /D "Adobe Acrobat Reader 6" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Aplicaciones\AReader6\ADBERDR60_ESP_FULL.EXE /qn" /f

REG ADD %KEY%\002 /VE /D "WinRAR 3.42 Corporativa" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\Aplicaciones\WinRAR\WinRAR342ce.exe /s" /f

REG ADD %KEY%\003 /VE /D "McAfee ViruScan Enterprise 8.0i" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\Install\Aplicaciones\VSC\vse800.msi /qb" /f

REG ADD %KEY%\004 /VE /D "Sun Java VM 1.4.2" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\Install\Aplicaciones\Java\j2re-1_4_2_04-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\005 /VE /D "Microsoft JavaVM - Build 3810" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\JavaVM\MSJavaVM_3810.exe" /f

REG ADD %KEY%\006 /VE /D "Mozilla FireFox v1.0 Español" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\Install\Aplicaciones\firefox\setup.exe -ms -ira" /f

REG ADD %KEY%\007 /VE /D "RealPlayer Alternative" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\Install\Aplicaciones\RAlt\realalt129.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\008 /VE /D "QuickTime Alternative" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\Aplicaciones\QAlt\quicktimealt139.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\009 /VE /D "Spyware Blaster v3.2" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\Install\Aplicaciones\Spyw\spywareblastersetup.exe /verysilent" /f


REG ADD %KEY%\010 /VE /D "Office XP Professional con SP3" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Aplicaciones\OfficeXP\PROPLUS.msi /QB" /f


REG ADD %KEY%\011 /VE /D "Nero Burning Rom 6.6.0.6" /f
REG ADD %KEY%\011 /V 1 /D "%systemdrive%\Install\Aplicaciones\Nero\nero6606.exe" /f
REG ADD %KEY%\011 /V 2 /D "%systemdrive%\Install\Aplicaciones\Nero\NeroLang.exe" /f

REG ADD %KEY%\012 /VE /D "NeroVision Express v3.0.1.18" /f
REG ADD %KEY%\012 /V 1 /D "%systemdrive%\Install\Aplicaciones\Nero\vision.exe" /f
REG ADD %KEY%\012 /V 2 /D "%systemdrive%\Install\Aplicaciones\Nero\visionLang.exe" /f

REG ADD %KEY%\013 /VE /D ".NET Framework 1.1" /f
REG ADD %KEY%\013 /V 1 /D "%systemdrive%\install\aplicaciones\netf\dotnetfx.exe" /f

REG ADD %KEY%\098 /VE /D "Importando Entradas al Registro" /f
REG ADD %KEY%\098 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\099 /VE /D "Limpieza Final y Reiniciado" /f
REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

i think the problem is cmdow but i followed the instructions and i have downloaded and copy the file to \$OEM$\$$\System32.
if cmdow is not in his correct location, runonceex.cmd doesn't run , isn't it?

I don't have any entry in [GUIRUNONCE] in winnt.sif (the instructions says that this entry must be removed)

Thanls for your help!!!
acaro
if i execute runonceex.cmd from cd it adds the registry entries without problems.

the problem is during installation the file is like it doesn't exists.
sebbe1991
show your winnt.sif (dont show the key!)
acaro
this is my winnt.sif file:
CODE

;SetupMgrTag
[Data]
AutoPartition=0
MsDosInitiated="0"
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
UnattendSwitch="yes"
FileSystem=*
TargetPath=\WINDOWS

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=No
OEMSkipRegional=1
TimeZone=105
OemSkipWelcome=1

[UserData]
ProductID=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
FullName="."
OrgName="."
ComputerName=pc

[Display]
BitsPerPel=16
Xresolution=1024
YResolution=768
Vrefresh=70

[Identification]
JoinWorkgroup=GRUPO

[Networking]
InstallDefaultComponents=Yes

[WindowsFirewall]
Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
Mode = 0

[IEPopupBlocker]
BlockPopups=Yes
FilterLevel=Medium
ShowInformationBar=Yes

[Shell]
DefaultThemesOff = "Yes"
DefaultStartPanelOff = "Yes"


AutoConfig = 1
Home_Page = [url=http://www.google.com/]http://www.google.com/


as you can see i don't have a lot of options enabled.

What's wrong here?????

Thanks a lot.
Godfatha
your cmdlines.txt is correct, the folder architecture is correct, the runonceex seems correct too, but on your winnt.sif, i see ur key section is called ProductID, that is for win2000, what os are u trying to install? change that to ProductKey=xxxxxxxxx...

then do u have all files in the correct location u want to run in the runonceex? (like $oem$\$1\install\apps\...) ?

and does your OS start correctly after the install? the only difference i see to my setup is that u don't habe a logon script called from cmdlines.txt ( http://unattended.msfn.org/intermediate/users.htm ), maybe u should try that one too, if nothing helps of the said above i am clueless...
Astalavista
your using XP spanish are you not?

ok u can download a totally silent adobe acrobat here

and u can download a netframework totally silent here w/ latest sp1 and hotfixes.

I edit your RunonceEX.cmd to run from the CD. check it out i attached at the
bottom of this post. If u want to run it from the CD u need to move your Aplicaciones Folder.


move it to where u see the same folders as I386

Importando Entradas al Registro - move that to the same folder
as cmdlines.txt and add this

QUOTE
[COMMANDS]"REGEDIT /S tweaks.reg"
"RunonceEX.cmd"


Alanoll
@Astalavista
Why would he have to move everything to install from the CD? His RunOnceEX clearly has %systemdrive%.

@acaro
First : http://www.msfn.org/board/index.php?showto...ndpost&p=270687

Second, remove the cmdow line, and then just before the
CODE
EXIT

in your batch file, put a
CODE
PAUSE

And see if something truly does pop up.

Also, the problem with the keys being delete is RunOnceEX (rundll32.exe) is executed EVERYTIME the system starts, and if there are keys there, it tries to execute then DELETES them after trying. Not very good for us to debug unfortunately sad.gif
Astalavista
QUOTE
@Astalavista
Why would he have to move everything to install from the CD? His RunOnceEX clearly has %systemdrive%.
smile.gif i edit his runonceEX.cmd to run from the CD. hehhehehe

before
QUOTE
REG ADD %KEY%\002 /VE /D "WinRAR 3.42 Corporativa" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\Aplicaciones\WinRAR\WinRAR342ce.exe /s" /f


after
QUOTE
REG ADD %KEY%\002 /VE /D "WinRAR 3.42 Corporativa" /f
REG ADD %KEY%\002 /V 1 /D "%cdrom%\Aplicaciones\WinRAR\WinRAR342ce.exe /s" /f
acaro
thanks a lot to all of you for helping me!!!!!

i think i have mixed winnt.sif of windows 2000 and windows xp because i'm trying to do a multiOS bootable cd with an $OEM$ folder for each installation.

I'm going to trying this and i'm completely sure thant you are in the certain thing.

Thanks really to all for your help!!!!

PD: is very difficult to understand me with my poor english????? i had a lot of time that i don't spoke in english. (and as you can see it costs a little to me)
acaro
Astalavista, i like very much your idea for install the applications from cd but for the moment i prefer to run it from HD. And i think that it's more fast to install applications from HD when you have a lot of them. If you have a lot, i think from CD will be more slower. (but i'm sure in future i will use it biggrin.gif )

to others: thanks for show my errors in application switches.
Alanoll
QUOTE (acaro @ Feb 15 2005, 11:05 AM)
Astalavista,  i like very much your idea for install the applications from cd but for the moment i prefer to run it from HD. And i think that it's more fast to install applications from HD when you have a lot of them. If you have a lot, i think from CD will be more slower. (but i'm sure in future i will use it  biggrin.gif  )

to others: thanks for show my errors in application switches.
*

pretty much explains what Astalavista did to your code:
http://unattended.msfn.org/advanced/methods/runonceex_cd.htm

But in fact, you may notice a speed increase installing directly from CD. If you think about it, either way the files get to the HDD.
acaro
well, i have been working in this cd and i have no results. i have started again from a clear windows xp cd.
I haven't modified winnt.sif (because [GUIRUNONCE] section in not necessary (isn't it). it doesn't completely unattended but i need to check the applications installations.
ok, i created the cmdlinex.txt with your text and the tweak.reg file with my tweaks (this are yours because they are from this page). After this, i created the Runonceex.cmd file with the same content i have posted here.
I created the $OEM$ structure with the aplications and i have downloaded the cmdow.exe file and copy it to $OEM$\$$\SYSTEM32.

i think this are all the steps for this creation. (i'm correct??)

well, i have created the ISO and run it to VMware.
After the installation (all correct) i have verified that no registry entry has been added. WHY????
you have told to me that my files are correct . It seems that my cd doesn't have $OEM$ folders.

i really don't what to do with this. I think i will be using start.cmd and [GUIRUNONCE] section in winnt.sif, it's the only that works to me.

Thanks!!!
acaro
do i must have a call to cmdlines.txt in any file???

the definitive problem is that cmdlines.txt isn't be executed.

any idea???
Astalavista
try this

http://s21.yousendit.com/d.aspx?id=2JDEZWM...1S1XT5NWSN4R7DP
acaro
it could be my windows version?? (spanish it's mine, and this guide is for other??)
Astalavista
nope it should work for any version of windows

Simonsays uses a spanish version pm him
Alanoll
@acaro
did you do what I said about the PAUSE?
acaro
yes but nothing occurs.
I think cmdlines.txt is not executed during installation and for that there is nothing in registry and nothing is installed.

i have seen that my Install folder in $OEM$ is copied during installation to HD.
by the other hand , i have tried to do it installing from cd (like Astalavista says) but i have seen that files ($OEM$\$1\Install\ are copied to HD too.
It is supposed to be installed from CD, why are copied to HD???

I think every time i try to do this installation, things works worse.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.