krethan
Content Type
Profiles
Forums
Events
Posts posted by krethan
-
-
Hi everyone,
I have verified that the runonce.cmd file is being executed from the cmdlines.txt file. However, I do not know why the Adobe Acrobat 7 registry entries are not being put into the registry.
Here is my runonce.cmd file:
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:\cd.txt SET CDROM=%%i:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\001 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\ar7\ar7.msi /qn" /f
EXIT0 -
It still is not working and I do not know why. Any suggestions anyone?
0 -
It is on the root of the CD and I checked the rest of the folder path. Thats looks all right to me.
0 -
I put a test batch file in my cmdlines.txt as follows just to see if the cmdlines.txt was getting parsed or not:
[COMMANDS]
"test.bat"
"runonce.cmd"Here is the test.bat file:
md %systemdrive%\test
Sure enough the test folder is being made so the problem must be with something in the runonce.cmd file. I made sure I had the cd.txt on the root of of the CD to make sure the CD-ROM variable works within the runonce.cmd file:
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:\cd.txt SET CDROM=%%i:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\001 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\ar7\ar7.msi /qn" /f
EXITI don't know why it is still not working.
0 -
I would like to use the RunOnceEx method to install applications. However, it seems like the cmdlines.txt is not processed or the runonce.cmd file is not properly configured. I have made sure the cmdlines.txt and runonce.cmd files are in the $OEM$ on the root of the installationation CD and made the OEMPreinstall=Yes in the winnt.sif file. I do not know how come it is not working.
Here is my cmdlines.txt file:
[COMMANDS]
"runonce.cmd"Here is my runonce.cmd file:
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:\CD.txt SET CDROM=%%i:
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 "%CDROM%\install\ar7\ar7.msi /qn" /f
EXITHere is my winnt.sif file:
;SetupMgrTag
[Data]
AutoPartition=1
MsDosInitiated="0"
UnattendedInstall="Yes"
[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINNT
Repartition=Yes
WaitForReboot=No
[GuiUnattended]
AdminPassword=test
AutoLogon=Yes
AutoLogonCount=1
OEMSkipRegional=1
TimeZone=10
OemSkipWelcome=1
[UserData]
FullName="Installed for"
OrgName="Someone"
ComputerName=*
[TapiLocation]
CountryCode=107
AreaCode=780
[Branding]
BrandIEUsingUnattended=Yes
[URL]
Home_Page=http://www.msn.ca
[Proxy]
Proxy_Enable=0
Use_Same_Proxy=1
[Identification]
JoinWorkgroup=workgroup
[Networking]
InstallDefaultComponents=Yes
[GuiRunOnce]0 -
I have placed the ie6setup.exe in the svcpack along with the cab files and extracted Direct X 9 as well into the svcpack folder. Deleted the svcpack.in_ file and created a svcpack.inf file. Here is my svcpack.inf:
;Windows 2000
[Version]
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=0
BuildNumber=2195
[SetupData]
CatalogSubDir="\i386\SVCPACK"
[ProductCatalogsToInstall]
[SetupHotfixesToRun]
DXSETUP.EXE /SILENT
IE6SETUP.EXE /Q:A /R:N
MPSETUP.EXE /Q:A /R:NI do not understand why they both do not get installed. It probably is something simple I am overlooking. Also here is my winnt.sif file that is placed in the I386 folder:
;SetupMgrTag
[Data]
AutoPartition=1
MsDosInitiated="0"
UnattendedInstall="Yes"
[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINNT
Repartition=Yes
WaitForReboot=No
[GuiUnattended]
AdminPassword=Passwords
AutoLogon=Yes
AutoLogonCount=1
OEMSkipRegional=1
TimeZone=10
OemSkipWelcome=1
[UserData]
FullName="Whatever"
OrgName="Whatever"
ComputerName=*
[TapiLocation]
CountryCode=107
AreaCode=780
[Branding]
BrandIEUsingUnattended=Yes
[URL]
Home_Page=http://www.msn.ca
[Proxy]
Proxy_Enable=0
Use_Same_Proxy=1
[Identification]
JoinWorkgroup=evi
[Networking]
InstallDefaultComponents=Yes0
Runonceex Not Working
in Unattended Windows 2000/XP/2003
Posted
Thanks for some suggestions. I will have to try those and see what happens.