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"