Jump to content

doubts doubts and doubts :(


Recommended Posts

Hey, im new in win unattended, i discovered it yesterday....

i read the tutorial and i have some doubts:

cmdlines.txt --> where i put this file? (Actually it is in $OEM$ directory)

I used the program RunOnceEx.cmd Creator to create a RunOnceEx, the file is here:

cmdow @ /HID

@Echo Off

SET PP=%systemdrive%\install\Applications\

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

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

REG ADD %KEY%\000 /VE /D "Acrobat Reader 6.0" /f

REG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr60_ptb_full.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\001 /VE /D "Windows MediaPlayer 9" /f

REG ADD %KEY%\001 /V 1 /D "%PP%MP10Setup.exe /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /f

REG ADD %KEY%\002 /VE /D "Yahoo Messenger 5.6" /f

REG ADD %KEY%\002 /V 1 /D "%PP%ymsgr7br.exe /s" /f

REG ADD %KEY%\003 /VE /D "Itunes" /f

REG ADD %KEY%\003 /V 1 /D "%PP%iTunesSetup.exe /silent /s" /f

REG ADD %KEY%\004 /VE /D "Win Rar" /f

REG ADD %KEY%\004 /V 1 /D "%PP%wrar350br.exe /s" /f

REG ADD %KEY%\005 /VE /D "Luxor" /f

REG ADD %KEY%\005 /V 1 /D "%PP%luxor_setup.exe /s" /f

REG ADD %KEY%\006 /VE /D "Zuma" /f

REG ADD %KEY%\006 /V 1 /D "%PP%ZumaSetup.exe /silent /s" /f

REG ADD %KEY%\007 /VE /D "Super Tux" /f

REG ADD %KEY%\007 /V 1 /D "%PP%Super Tux.exe /s /silent" /f

REG ADD %KEY%\008 /VE /D "Microsoft Antispyware" /f

REG ADD %KEY%\008 /V 1 /D "%PP%microsoftantispywareinstall.exe /silent /s" /f

REG ADD %KEY%\009 /VE /D "LBreakout 2" /f

REG ADD %KEY%\009 /V 1 /D "%PP%LBreakout 2.exe /silent /s" /f

REG ADD %KEY%\010 /VE /D "Msn Messenger 7.5" /f

REG ADD %KEY%\010 /V 1 /D "%PP%SetupDl.exe /silent /s" /f

REG ADD %KEY%\011 /VE /D "" /f

REG ADD %KEY%\011 /V 1 /D "%PP%Nero-6.6.0.16.exe /SILENT /NOREBOOT /SN=************ /WRITE_SN" /f

REG ADD %KEY%\012 /VE /D "Register Tweaks" /f

REG ADD %KEY%\012 /V 1 /D "%PP%regtweaks.reg" /f

EXIT

i want to know if the programs parameters in RunOnceEx is all right...

my directory structure:

212168direc.JPG

CMDlines.txt:

[COMMANDS]

"REGEDIT /S regtweaks.reg"

"runonceex"

my Winnt.sif:

;SetupMgrTag

[Data]

    AutoPartition=1

    MsDosInitiated="0"

    UnattendedInstall="Yes"

[unattended]

    UnattendMode=FullUnattended

    OemSkipEula=Yes

    OemPreinstall=No

    TargetPath=\WINDOWS

    OemPreinstall=Yes

    UnattendSwitch="yes"

[GuiUnattended]

    AdminPassword="****"

    EncryptedAdminPassword=NO

    OEMSkipRegional=1

    TimeZone=17

    OemSkipWelcome=1

[userData]

    ProductKey=*************

    FullName="***"

    OrgName="***"

    ComputerName=***

[Display]

    BitsPerPel=32

    Xresolution=1024

    YResolution=768

[RegionalSettings]

    LanguageGroup=1

    Language=00006

[identification]

    JoinWorkgroup=WORKGROUP

[Networking]

    InstallDefaultComponents=Yes

can i create an iso file already?

sorry :(

Link to comment
Share on other sites


im brave but my pc is Celeron 466, test this on a virtual machine will take a looooooong time....

and i dont have other pc to test so i want all right and i will install....

my runonceex is right? the parameters and the %PP%'s are right?

its "%PP%AdbeRdr60_ptb.exe or "%PP%\AdbeRdr60_ptb.exe?

Edited by Guilherme
Link to comment
Share on other sites

Your Runonceex seems to be fine, at least I can't find an obvious mistake.

%PP%AdbeRdr60_ptb.exe is the right choice, since you have the "\" at the end of the variable %PP%. About the parameters I can't say anything, didn't try to install most of these programs silently.

Link to comment
Share on other sites

so if i create an iso image, %PP%AdbeRdr60_ptb.exe will be %systemdrive%\install\Applications\ ?

and =%systemdrive%\install\Applications\ is $OEM$\$1\Install\Applications ?

RunOnceEx will work perfectly?

Edited by Guilherme
Link to comment
Share on other sites

im brave but my pc is Celeron 466, test this on a virtual machine will take a looooooong time....

and i dont have other pc to test so i want all right and i will install....

my runonceex is right? the parameters and the %PP%'s are right?

its "%PP%AdbeRdr60_ptb.exe or "%PP%\AdbeRdr60_ptb.exe?

it'd take longer to test the cd on your actual machine only to find out that you messed up and have to start over and try again... use a virtual machine, you'll thank yourself in the long run

Link to comment
Share on other sites

yeah....

there's something wrong with the runonceex....

i open the Runonce and the program dont install nothing... just say that "The operation was concluded with success"

hey, if i change:

SET PP=%systemdrive%\install\Applications\

to

SET PP=%CDROM%\$OEM$\$1\install\Applications\

it will work?

Edited by Guilherme
Link to comment
Share on other sites

You could, but then there'd be no need to put your installers in the $OEM$ folders. If you want to do that, create a new folder in the root of your CD called Installers and put all your installers in that folder. Use this at the beginning of your runonceex.cmd file to call the installers:

cmdow @ /HID
@Echo Off

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

SET PP=%cdrom%\Installers\

Also... your cmdlines.txt should have the following:

[COMMANDS]
"REGEDIT /S regtweaks.reg"
"runonceex.cmd"

That's probably why your RunOnceEx wasn't running... you don't have a runonceex file - you have a runonceex.cmd file.

Windows XP hides extensions by default. During the installation phase, you still need them.

Link to comment
Share on other sites

REG ADD %KEY%\010 /VE /D "Msn Messenger 7.5" /f

REG ADD %KEY%\010 /V 1 /D "%PP%SetupDl.exe /silent /s" /f

This is not going to work.

Try it this way :

REG ADD %KEY%\010 /VE /D "MSN Messenger " /f
REG ADD %KEY%\010 /V 1 /D "%PP%\Software\msn\MsnMsgs.msi /qn" /f
REG ADD %KEY%\010 /V 2 /D "taskkill /IM msnmsgr.exe /F"

First unpack the MSN setupup wit a program like winrar.

So you get 2 files : MsnMsgs.msi and bootstrap.exe.

i noticed that more switches are not correct, you better do some research on that.

Have fun , and good luck with your cd ;)

Edited by muiz
Link to comment
Share on other sites

one last doubt, i promisse :P

when the file winnt.sif will be executed? And cmdlines?

i changed the programs's directory... lets see now if it will work....

VMWare is not working here... i think that i got a license 3 months ago and it expired.... and Microsoft virtual machine is not working too.... :w00t:

i will test the RunOnceEx first and if it works i will be brave :thumbup

This cd is a Windows XP Professional w/ Service Pack 1

My files now:

cmdlines.txt:

[COMMANDS]
"runonceex.cmd"

RunOnceEx.cmd:

cmdow @ /HID
@Echo Off

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

SET PP=%cdrom%\Progs\

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

REG ADD %KEY% /V TITLE /D "Instalador de Programas" /f

REG ADD %KEY%\000 /VE /D "Acrobat Reader 6.0" /f
REG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr60_ptb_full.exe -p -s /v\ /qn\" /f

REG ADD %KEY%\001 /VE /D "Yahoo Messenger 7" /f
REG ADD %KEY%\001 /V 1 /D "%PP%ymsgr7br.exe /silent /s" /f

REG ADD %KEY%\002 /VE /D "iTunes" /f
REG ADD %KEY%\002 /V 1 /D "%PP%iTunesSetup.exe /S /V ISSETUPDRIVEN=0 ASSUME_MEDIA_DEFAULTS=1 ASSUME_QT_DEFAULTS=0 ALLUSERS=1 SILENT_INSTALL=1 /QN" /f

REG ADD %KEY%\003 /VE /D "WinRar" /f
REG ADD %KEY%\003 /V 1 /D "%PP%wrar350br.exe /s" /f

REG ADD %KEY%\004 /VE /D "Luxor" /f
REG ADD %KEY%\004 /V 1 /D "%PP%luxor_setup.exe /s" /f

REG ADD %KEY%\005 /VE /D "Zuma" /f
REG ADD %KEY%\005 /V 1 /D "%PP%ZumaSetup.exe /silent /s" /f

REG ADD %KEY%\006 /VE /D "Super Tux" /f
REG ADD %KEY%\006 /V 1 /D "%PP%Super Tux.exe /s /silent" /f
REG ADD %KEY%\006 /V 2 /D "taskkill /IM msnmsgr.exe" /f

REG ADD %KEY%\007 /VE /D "Nero Burning ROM" /f
REG ADD %KEY%\007 /V 1 /D "%PP%Nero-6.6.0.16.exe /SILENT /NOREBOOT /SN=1A23-0009-4030-2228-8119-7297 /WRITE_SN" /f

REG ADD %KEY%\008 /VE /D "Opera" /f
REG ADD %KEY%\008 /V 1 /D "%PP%ow32pt-BRpt-BR850.exe /S" /f

REG ADD %KEY%\009 /VE /D "Netscape 7.02" /f
REG ADD %KEY%\009 /V 1 /D "%PP%nsb-install-8-0.exe /S" /f

REG ADD %KEY%\010 /VE /D "MSN Messenger 7.5" /f
REG ADD %KEY%\010 /V 1 /D "%PP%\Software\msn\MsnMsgs.msi /qn" /f
REG ADD %KEY%\010 /V 2 /D "taskkill /IM msnmsgr.exe /F"

REG ADD %KEY%\011 /VE /D "Register Tweaks" /f
REG ADD %KEY%\011 /V 1 /D "%PP%regtweaks.reg" /f

EXIT

winnt.sif:

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

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

[GuiUnattended]
AdminPassword="***"
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=65
OemSkipWelcome=1

[UserData]
ProductKey=
FullName=""
OrgName="xxx"
ComputerName=CASA

[Display]
BitsPerPel=32
Xresolution=1024
YResolution=768

[RegionalSettings]
LanguageGroup=10,9,1,7
Language=00000416

[Identification]
JoinWorkgroup=WORKGROUP

[Networking]
InstallDefaultComponents=Yes

it's all i need, huh?

Edited by Guilherme
Link to comment
Share on other sites

My advice is KISS.... Keep it simple. You are trying to run before you learn to crawl. This stuff isn't easy and takes even seasoned gurus lots of patience and practice and perseverance. I highly recommend just using a winnt.sif file (which gets read not executed right after the PC boots from the CD). It is an answer file and is the first place to learn unattended installs. You set yourself up for major failure trying to make all of that stuff work the first try. It may take 30 tries to perfect, and then when you get comfortable, things change (software, windows, updates, installation methods). You can execute your runonceex cmd on your current windows and get a feel for if it will work or not. When you execute it, on the next reboot, it will run and you will see your errors.

So keep it simple.... you'll be far ahead of the game.

my 2 cents.... and EDIT out your keys

aj

Edited by aspenjim
Link to comment
Share on other sites

aspenjim has good advice. Start off by making a UA install. Just plain old XP installing on its own. Once you've got that working, then you can move on to including application installs.

As for what you've got there, the entry in the cmdlines.txt must be the exact same as the file name, and it is case sensitive. If the file is named RunOnceEx.cmd, enter "RunOnceEx.cmd". If it's named runonceex.cmd, the enter "runonceex.cmd". You've been going back and forth between using capitalizations and not.

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