With xoblite bb3 RC1 under Windows XP the keys like this
HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
is not works properly! Only one of parameters executes per boot.
My stuppid patch for it
(autoit3 script)
Code:
; Compile it to zz.exe and run how this
; [HKLM\Software\Microsoft\Windows\CurrentVersion\Run]
; "hack"="zz.exe"
$i = 1
While 1
$KeyName = RegEnumVal('HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce', $i)
if @error <> 0 Then ExitLoop
$KeyValue = RegRead('HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce', $KeyName)
Run($KeyValue, '', @SW_HIDE)
Sleep(500)
ShellExecute('reg.exe', 'delete HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v' & ' "' & $KeyName & '" /f', '', '', @SW_HIDE)
$i = $i + 1
Wend
$i = 1
While 1
$KeyName = RegEnumVal('HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce', $i)
if @error <> 0 Then ExitLoop
$KeyValue = RegRead('HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce', $KeyName)
Run($KeyValue, '', @SW_HIDE)
Sleep(500)
ShellExecute('reg.exe', 'delete HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v' & ' "' & $KeyName & '" /f', '', '', @SW_HIDE)
$i = $i + 1
Wend
---
It's could be better to upgrade bb, to RunOnce apps from extensions.rc
some like bsetroot or other internal integrated own options...
---
I not sure that Software\Microsoft\Windows\CurrentVersion\RunOnceEx and
Software\Microsoft\Windows\CurrentVersion\RunOnceServices works in bbLean or other bb...
Is it works?