Jump to content

Problems with RunOnceEx - Office2003, etc


Recommended Posts

Hello folks,

I was wondering if anyone could give me a hand, I've been testing out my XPSP2+Apps DVD with Virtual PC. It seems to install Windows fine, however, after the initial boot, it doesn't reboot automatically, and I have to reboot it. Only thereafter does it run the RunOnceEx.cmd file. I have attached my winnt.sif code below.

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

[Unattended]
DriverSigningPolicy = ignore
OverwriteOemFilesOnUpgrade = yes
KeyboardLayout="United Kingdom"
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
UnattendSwitch="yes"
TargetPath=\WINDOWS
WaitForReboot="No"

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

[UserData]
ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
FullName="-"
OrgName=""
ComputerName=Home

[Display]
BitsPerPel=32
Xresolution=800
YResolution=600
Vrefresh=75

[TapiLocation]
CountryCode=44

[RegionalSettings]
LanguageGroup=1
SystemLocale=00000809
UserLocale=00000809
InputLocale=0809:00000809

[Identification]
JoinWorkgroup=Local

[Networking]
InstallDefaultComponents=Yes

[URL]
Home_Page=http://www.msfn.org

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

[Components]
msmsgs=off
msnexplr=off
freecell=off
hearts=off
minesweeper=off
pinball=off
solitaire=off
spider=off
zonegames=off

[GuiRunOnce]
%systemdrive%\Install\RunOnceEx.cmd

So, basically, is there a way to trigger the automatic reboot? NOTE: I haven't put in the drivers as of yet because I am only testing the DVD on a virtual pc at this stage. I hope to implement the drivers later.

Also, I've been having problems with my RunOnceEx.cmd file itself. Firstly when installing Alcohol 120% it asks me for SCSI drivers for the Virtual Drive that it creates, is there a way to get around this problem? What drivers do I need to install, if any?

Secondly, it won't install the Sun JRE, the arrow will point at the Sun JRE and then move along without installing the program, and the same has been happening with the Office 2003 Installation, the arrow points at the text and then moves along without actually installing it. I have followed MSFN's Office 2003 Advanced Installation guide.

Also, .NET Framework is giving me problems. It keeps prompting me whether I wish to install, and also whether I agree to the license etc etc. When it finally gets to the end, it pops up a window (similar to the one that sasser and msblast) used to popup saying it will shutdown in 1 min. Although there is no access to the internet from the virtual pc, so I can't see how it can be a virus.

My RunOnceEx.cmd code is shown below:

cmdow @ /HID
@echo off

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 6" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Install\AdobeReader6\Adobe Reader 6.0.1.msi /qn" /f

REG ADD %KEY%\002 /VE /D "Alcohol 120" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\Alcohol120\setup.msi /qn" /f

REG ADD %KEY%\003 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\Install\MSN\MsnMsgs.msi /qn" /f

REG ADD %KEY%\004 /VE /D "Nero Burning ROM 6.3.1.17" /f
REG ADD %KEY%\004 /V 1 /D "REGEDIT /S %systemdrive%\Install\Nero\register.reg" /f
REG ADD %KEY%\004 /V 2 /D "%systemdrive%\Install\Nero\nero63117.exe /silent /noreboot" /f

REG ADD %KEY%\005 /VE /D "Sun Java 1.4.2" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Java\j2re-1_4_2_05.exe /s /v/qn" /f

REG ADD %KEY%\006 /VE /D "WinRAR 3.30" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\Install\WinRAR\winrar330.exe /s" /f

REG ADD %KEY%\007 /VE /D "Microsoft Office 2003" /f
REG ADD %KEY%\007 /V 1 /D %systemdrive%\Install\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-

REG ADD %KEY%\008 /VE /D ".NET Framework 1.1" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\Dotnet\dotnetfw.exe" /f

REG ADD %KEY%\019 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\019 /V 1 /D "REGEDIT /S %systemdrive%\Install\Regtweaks\regtweaks.reg" /f

REG ADD %KEY%\020 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Cleanup\cleanup.cmd" /f

EXIT

Any help will be greatly appreciated.

Thanks!

Zoom7000

Link to comment
Share on other sites


REG ADD %KEY%\007 /VE /D "Microsoft Office 2003" /f
REG ADD %KEY%\007 /V 1 /D %systemdrive%\Install\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-

You are missing the quotations:

REG ADD %KEY%\007 /VE /D "Microsoft Office 2003" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\Install\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

The other things I can't help you with, sorry.

*EDIT*

REG ADD %KEY%\005 /VE /D "Sun Java 1.4.2" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Java\j2re-1_4_2_05.exe /s /v/qn" /f

It seems you are missing a space between the last switches in Sun java:

REG ADD %KEY%\005 /VE /D "Sun Java 1.4.2" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Java\j2re-1_4_2_05.exe /s /v /qn" /f

*EDIT*

Edited by ToBe
Link to comment
Share on other sites

Thanks for your help, however, I've noticed this on the MSFN guide to installing Sun Java VM...

Note: I've noticed on their page that they're using a space between /v and "/qn - This won't work with a spacing.

This would contradict what you're saying right?

Zoom7000

Link to comment
Share on other sites

For Sun Java, i use :

REG ADD %KEY%\002 /VE /D "Sun Java runtime environment 1.4" /f

REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Apps\sun\j2re.exe /s /v\"/qn ADDLOCAL=jrecore IEXPLORER=1"" /f

Notice i renamed the executable simply to j2re.exe but it has no incidence. I don't remember what ADDLOCAL does exactly. And IEXPLORER=1 is to add the plugin for Internet Explorer.

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