Jump to content

Recommended Posts

Posted

I'd like to switch my program installation to the CD-ROM method as I did for Windows XP SP1 and SP2. There is a slight difference between the way I call RunOnceEx for Windows 2000

Here is a sample of my runonce.txt (parsed as runonce.reg later)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz02]
"1"="%systemdrive%\\winnt\\regedit.exe /s %systemdrive%\\install\\Applications\\Nero\\register.reg"
"2"="%systemdrive%\\install\\Applications\\Nero\\NERO.exe /silent /noreboot /no_ui"
"3"="%systemdrive%\\install\\Applications\\Nero\\FR.exe /silent /noreboot /no_ui"
@="Nero Burning ROM Reloaded 6.6.0.1"

Can I add the %CDROM% variable by adding the code at the beginning?

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
...

OR now that I have added reg.exe to the system32 folder, maybe I can use a regular RunOnceEx???

cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
...

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

REG ADD %KEY%\002 /VE /D "Nero Burning ROM Reloaded 6.6.0.1" /f
REG ADD %KEY%\002 /V 1 /D "REGEDIT /S %CDROM%\Applications\Nero\register.reg" /f
REG ADD %KEY%\002 /V 2 /D "%CDROM%\Applications\Nero\NERO.exe /silent /noreboot /no_ui" /f
REG ADD %KEY%\002 /V 3 /D "%CDROM%\Applications\Nero\FR.exe /silent /noreboot /no_ui" /f


Posted

i had some trouble using the %cdrom%, but i never tried it w/ the reg.exe, i have found it simpler to install using the batch file, i even go as far to call the program off of the cd to install.

i have also thought about trying to call a program to a temp folder off of the cd & then install from the temp folder, same idea just more work to do it.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...