Jump to content

RunOnceEx problem


Recommended Posts

hi,

ive follwed the guide on the unattended installs everything works fine but for the runonceex.cmd. I've tried running it to test bt nothing is added in the registry and the messages i get is that cmdow is not a recognisible command this also happens with the REG command.

All the files are in the right place. I have a unattend.txt file do i place the [runonceex] command in there or in the cmdlines.txt file?

Cheers for any help on this, it is beginning to drive me round the bend!

Here's my runonceec.cmd file

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 "Preparing Installation..." /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

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

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AR6\AR6.exe -p"-s /v\"/qn\"""

REG ADD %KEY%\010 /VE /D "CRT 3.3" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\CRT33\setup.exe /qn" /f

REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\CRT33\register.reg" /f

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

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

EXIT

Link to comment
Share on other sites


If you want to just test it remove the cmdow @ /HID line

Otherwise that tells you that the cmdow.exe is not present in Windows\system32 folder. Go back to the guide and download that and place in system32, it also has to be copied on setup. Do that by placing in the XPCD\$OEM$\$$\System32\ folder

Link to comment
Share on other sites

no i am installing Microsoft XP Prof edition. One thing different i have is to put the $Oem$ folder under the i386 and not alongside it. This was because my drivers were not picked up when i put it alongside.

How would i add REG?

Link to comment
Share on other sites

no i am installing Microsoft XP Prof edition. One thing different i have is to put the $Oem$ folder under the i386 and not alongside it. This was because my drivers were not picked up when i put it alongside.

im not an expert on this (ive only just started myself)

but, adding the $oem$ folder in the i386 dir. wouldnt copy 2 the correct destination would it

but 2 add a reg file is REGEDIT /S <path>\filename.reg

Link to comment
Share on other sites

On a customised XP CD, $OEM$ goes at the root of the CD...

....it would only go inside if you were doing a network install of XP.

no i am installing Microsoft XP Prof edition. One thing different i have is to put the $Oem$ folder under the i386 and not alongside it. This was because my drivers were not picked up when i put it alongside.

The drivers may have not been picked up for many reasons - one would be that you can't simply put the driver file(s) there and expect it to automatically install them, you need to add entries in the winnt.sif file

I don't think they would be picked up at all by any other means but I could well be wrong regarding that but the $OEM$ folder shouldn't reside in the i386 folder definately (unless its a network install)

Regards,

N.

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