Jump to content

Recommended Posts

Posted (edited)

Hello.

I have a big problem with this file. RunOnceEx.cmd

In 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

EXIT

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

If 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 by L.Pociask

Posted

Check out the red area

@echo off

cmdow @ /HID

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

EXIT

Hope this helped!
Posted

I think I will do that in another way.

I do a new registry file instead a RunOnceEx.cmd

Windows 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"

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