View unanswered posts | View active topics It is currently Thu May 23, 2013 8:15 pm



Post new topic Reply to topic  [ 1 post ] 
 RunOnce... 
Author Message
BBWise

Joined: Sun May 18, 2008 2:13 pm
Posts: 62
Reply with quote
Post RunOnce...
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 :D
(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?

_________________
rundll32.dll


Mon Apr 05, 2010 2:29 pm
Report this post
Profile
Sponsored Links
Google Adsense


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.