Jump to content

Need Some Help With Runonceox


Recommended Posts

I was reading http://gosh.msfnhosting.com/using_runonceex.htm

I did what it said Hoever it did not tell me where to put in the textsetup.sif

runonceex.inf = 1,,,,,,,20,0,0

new.inf = 1,,,,,,_x,,3,3

And when i run the setup i get that textsetup.sif

is corupt at line 1, where i put the first parimiter...

Any help?

My english isnt that good so dont be harsh :D

Link to comment
Share on other sites


I use the RunOnceEx.cmd method of unattended install for my third party applications.

All I did to make this work was..

create a file with called cmdlines.txt which contains the following:

[COMMANDS]
"RunOnceEx.cmd"

Save this in your $OEM$ folder.

Also in the $OEM$ folder, place your RunOnceEx.cmd file.

Here's what mine looks like:

cmdow @ /HID
@Echo Off

SET PP=%SystemDrive%\

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

REG ADD %KEY% /V TITLE /D "Unattended Program Installation" /f

REG ADD %KEY%\000 /VE /D "Alcohol 120" /f
REG ADD %KEY%\000 /V 1 /D "%PP%\Install\Alcohol\setup.msi /passive /norestart" /f
REG ADD %KEY%\000 /V 2 /D "REGEDIT /S %PP%\Install\Alcohol\alcohol.reg" /f

REG ADD %KEY%\001 /VE /D "Nero Burning ROM 6.0.0.6" /f
REG ADD %KEY%\001 /V 1 /D "%PP%\Install\Nero\Nero6606.exe /SILENT /NOREBOOT /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /WRITE_SN" /f

REG ADD %KEY%\002 /VE /D "WinRAR 3.30" /f
REG ADD %KEY%\002 /V 1 /D "%PP%\Install\Winrar\Winrar_330.exe /s" /f

REG ADD %KEY%\003 /VE /D "Microsoft Office XP" /f
REG ADD %KEY%\003 /V 1 /D "%PP%\install\OfficeXP\setup.exe TRANSFORMS=Unattended.MST /qn /norestart" /f

REG ADD %KEY%\004 /VE /D "DVD Decrypter 3.2.5.0" /f
REG ADD %KEY%\004 /V 1 /D "%PP%\Install\DVDDecrypter\Setup.exe /S" /f

REG ADD %KEY%\005 /VE /D "Adobe Acrobat 6 Professional" /f
REG ADD %KEY%\005 /V 1 /D "%PP%\Install\adobe6\AcroPro.msi /passive /norestart" /f
REG ADD %KEY%\005 /V 2 /D "REGEDIT /S %PP%\Intall\Adobe6\acropro.reg" /f

REG ADD %KEY%\006 /VE /D "DVD Shrink 3.2.0.15" /f
REG ADD %KEY%\006 /V 1 /D "%PP%\Install\DVDShrink\dvdshrink32setup.exe /silent" /f

REG ADD %KEY%\007 /VE /D "Spybot Search & Destroy 1.3" /f
REG ADD %KEY%\007 /V 1 /D "%PP%\Install\Spybot\spybotsd13.exe /SP- /VERYSILENT /NORESTART" /f

REG ADD %KEY%\100 /VE /D "Removing temporary files & rebooting" /f
REG ADD %KEY%\100 /V 1 /D "%PP%\Install\cleanup.cmd" /f

EXIT

In the I386 directory, open the file winnt.sif (assuming you have created one with windows sp2 deployment tools) and remove any [GuiRunOnce] entries you may have.

I did not edit or change any other files.

This will install the apps at before the first user logon. Some install progress is displayed for some of the apps, I prefer to see what's going on.

Hope this helps you.

Link to comment
Share on other sites

Ok, the install went fine, but it didnt copy the files to my hard drive.....

cmdow @ /HID

@echo off

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

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

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

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\adobe70\adobe70.msi" /f

REG ADD %KEY%\010 /VE /D "Abc Torrent" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\ABC\ABC-win32-v2.6.9.exe /S" /f

REG ADD %KEY%\015 /VE /D "FireFox 1.0.1" /f

REG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\Firefox\Firefox101_Silent_en-US.exe" /f

REG ADD %KEY%\025 /VE /D "Nero Burning ROM 6.6.0.8" /f

REG ADD %KEY%\045 /V 2 /D "%systemdrive%\Install\Nero\Nero-6.6.0.8.exe /SILENT /NOREBOOT /SN=xxxxxxxxxxxxxxxxxxxxxxxx /WRITE_SN" /f

REG ADD %KEY%\030 /VE /D "Cpl Mouse Fix" /f

REG ADD %KEY%\030 /V 1 /D "REGEDIT /S %systemdrive%\Install\mouse_fix.reg" /f

REG ADD %KEY%\040 /VE /D "K++ Codec Pack." /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\Install\Codecs\klmcodec125.exe /silent" /f

REG ADD %KEY%\045 /VE /D "Ventrilo 2.20" /f

REG ADD %KEY%\045 /V 1 /D "%systemdrive%\Install\ventrilo\ventrilo-2.2.0-Windows-i386.exe /q" /f

REG ADD %KEY%\046 /VE /D ".Net Framework" /f

REG ADD %KEY%\046 /V 1 /D "%systemdrive%\Install\dotnetfx\netfx.msi /q" /f

REG ADD %KEY%\050 /VE /D "itunes" /f

REG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\itunes4.7.msi" /f

REG ADD %KEY%\051 /VE /D "Java 5.0.2 Upadate 2" /f

REG ADD %KEY%\051 /V 1 /D "%systemdrive%\Install\java.exe" /f

REG ADD %KEY%\052 /VE /D "Alcohol 120%" /f

REG ADD %KEY%\052 /V 1 /D "%systemdrive%\Install\Alcohol120\Setup.msi /quiet /norestart" /f

REG ADD %KEY%\053 /VE /D "Adobe Photoshop CS" /f

REG ADD %KEY%\053 /V 1 /D "%systemdrive%\Install\adobepscs\setup.exe" /f

REG ADD %KEY%\099 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

thats what my RunOnceEx.cmd says, i have all the files in

\$OEM$\$1\Install

Ideas?

Link to comment
Share on other sites

The Alcohol reg file does not disable the virtual drive, it will configure it on first start up. If you don't want the virtual drive I suggest changing the options in Alcohol after it is installed.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Alcohol Soft\Alcohol 120%\Info]
"UserName"="your username"
"Company"="your company"
"SerialNo"="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

[HKEY_LOCAL_MACHINE\SOFTWARE\Alcohol Soft\Alcohol 120%\Info]
"UserName"="your username"
"Company"="your company"
"SerialNo"="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Note: the serial number should be enclosed in quotes just like your username, I'm not sure what happened but I didn't type the & #34; so just ignore them and put a " there.

Link to comment
Share on other sites

I took this straight from Gosh's page

First, create a file called runonceex.inf and put your runonceex settings in it.  Then put it into your i386 folder.  Edit txtsetup.sif and put this:

runonceex.inf = 1,,,,,,,20,0,0

That way runonceex.inf will be copied to the %windir%\inf folder.  Also add what's in bold below to txtsetup.sif:

[HiveInfs.Fresh]AddReg = hivedef.inf,AddReg

AddReg = hivesys.inf,AddReg

AddReg = hivesft.inf,AddReg

AddReg = hivecls.inf,AddReg

AddReg = hiveusd.inf,AddReg

AddReg = hivesxs.inf,AddReg

AddReg = dmreg.inf,DM.AddReg

AddReg = new.inf,newhive

Create new.inf and put it in your i386 folder.  In txtsetup.sif add this line:

new.inf = 1,,,,,,_x,,3,3

Also in dosnet.inf add these lines:

d1,runonceex.inf

d1,new.inf

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