Incroyable HULK Posted December 15, 2004 Posted December 15, 2004 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 2000Here 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 offIF 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\RunOnceExREG ADD %KEY%\002 /VE /D "Nero Burning ROM Reloaded 6.6.0.1" /fREG ADD %KEY%\002 /V 1 /D "REGEDIT /S %CDROM%\Applications\Nero\register.reg" /fREG ADD %KEY%\002 /V 2 /D "%CDROM%\Applications\Nero\NERO.exe /silent /noreboot /no_ui" /fREG ADD %KEY%\002 /V 3 /D "%CDROM%\Applications\Nero\FR.exe /silent /noreboot /no_ui" /f
Tsunami Posted December 15, 2004 Posted December 15, 2004 If reg.exe works fine on 2000, I think it's easier to use the batch file instead of the reg file.
diesel_98a Posted December 15, 2004 Posted December 15, 2004 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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now