MSFN Forum: RunOnceEx Big Problem - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RunOnceEx Big Problem Rate Topic: -----

#1 User is offline   L.Pociask 

  • Group: Members
  • Posts: 3
  • Joined: 01-August 05

Posted 01 August 2005 - 05:19 AM

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 ?

This post has been edited by L.Pociask: 01 August 2005 - 05:23 AM



#2 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 01 August 2005 - 06:21 AM

Check out the red area

Quote

@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!

#3 User is offline   L.Pociask 

  • Group: Members
  • Posts: 3
  • Joined: 01-August 05

Posted 01 August 2005 - 07:35 AM

Sory.. but I gave wrong exeple.
I tryed that way witch You showed me but it still dosnt work

#4 User is offline   L.Pociask 

  • Group: Members
  • Posts: 3
  • Joined: 01-August 05

Posted 01 August 2005 - 08:39 AM

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"


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy