L.Pociask Posted August 1, 2005 Posted August 1, 2005 (edited) Hello.I have a big problem with this file. RunOnceEx.cmdIn now days I know where a problem is.This is a code of run...cmdow @ /HID @echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Instalowanie Programow" /f REG ADD %KEY% 005 /VE /D "winamp" /f REG ADD %KEY% 005 /V 1 /D "%systemdrive%\Install\winamp\winamp.cmd" /f EXITwinamp.cmd is working. I checked that.And now :first line of reg add is going to the registry and is a visible there but another lines not..I dont know why another commends arent in registryIf I want to add for exemple REG ADD %KEY% 005 /VE /D "winamp" /f in cmd than is see a command : Error bad name of file or something like that.I known that registry should look :Title and than a subfolders with command to install a program.but.. these subfolders arent create :/Can anyone tell me something about this problem ? Edited August 1, 2005 by L.Pociask
Yzöwl Posted August 1, 2005 Posted August 1, 2005 Check out the red area@echo offcmdow @ /HIDSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Instalowanie Programow" /fREG ADD %KEY%\005 /VE /D "winamp" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\winamp\winamp.cmd" /fEXITHope this helped!
L.Pociask Posted August 1, 2005 Author Posted August 1, 2005 Sory.. but I gave wrong exeple.I tryed that way witch You showed me but it still dosnt work
L.Pociask Posted August 1, 2005 Author Posted August 1, 2005 I think I will do that in another way.I do a new registry file instead a RunOnceEx.cmdWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx] "TITLE"="Instalowanie programu" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\005] @="Winamp" "1"="C:\\Install\\Winamp\\winamp.cmd"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now