Jump to content

General problem with addons


nive

Recommended Posts

When I did my first nLited XP ver it was SP2 with addons. I used older ver of nlite and in WINNT.sif file i included:

[GuiRunOnce]
%systemdrive%\install\batch_file.cmd

then my batch_file.cmd looked like this:

CLS
@echo off

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

REG ADD %KEY%\015 /VE /D "Microsoft Office 2003 Professional" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\Office.exe" /f
REG ADD %KEY%\015 /V 2 /D "%systemdrive%\Install\Setup.exe TRANSFORMS=Unattended.MST /qb-" /f

start /wait %systemdrive%\install\netfxsp1.exe

rundll32.exe iernonce.dll,RunOnceExProcess

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\install

EXIT

It worked perfectly and both office 2003 and netfx were installed before first logon.

Unfortunately with new nLite 1.4.5 it's not working. Even though batch file seems to be executed and I see screen with information that O2K3 is being installed, after first logon it's NOT:(

In new nLite I put "%systemdrive%\install\batch_file.cmd" in Execute once under Unattended settings.

Now my questios are:

1. Why it's not working even if batch file is executed?

2. My new batch file looks like this:

CLS
@echo off

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

REG ADD %KEY%\015 /VE /D "Microsoft Office 2003 Professional" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Office.exe" /f
REG ADD %KEY%\015 /V 2 /D "%systemdrive%\install\Setup.exe TRANSFORMS=Unattended.MST /qb-" /f


ECHO.
ECHO Installing Sun Java VM 1.6u5
ECHO Please wait...
start /wait jre-6u5-windows-i586-p-s /s /v/qn

dotnetfx2.exe /q:a /c:"install.exe /qb"

rundll32.exe iernonce.dll,RunOnceExProcess

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\install

EXIT

I know there are some mistakes in it cause i get error that dotnetfx2.exe couldn't be found and java is not even being installed at all.

Please help me fix this batch file

3. And last but not the least:

what I really want to do is to have O2K3, .NET Framework-1-3 and SUN Java6 installed. I don't care if its slipstreamed or post install, I just want this to work.

If you know answers to above problem I would be more than happy:)

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