Announcement

Collapse
No announcement yet.

Updating the regisrty - RunOnce

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Updating the regisrty - RunOnce

    I tried to modify the RunOnce key and the program didn't run on reboot. So I had the script stop right after the update key instruction and before the next program was run. I checked RunOnce and value wasn't updated. Here's what I used:
    <IR_ACTIONS_LIST>
    <Action name="Set Value">
    <Type>74</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel>CONTINUE</JumpToLabel>
    </ErrorHandling>
    <MainKey>3</MainKey>
    <SubKey>Software\Microsoft\Windows\CurrentVersio n</SubKey>
    <ValueName>RunOnce</ValueName>
    <ValueData>%SrcDrv%:\OS Patches\Win2k\Windows2000-KB824146-x86-ENU.exe</ValueData>
    <DataType>1</DataType>
    </Action>
    </IR_ACTIONS_LIST>

  • #2
    Re: Updating the regisrty - RunOnce

    Gee, I guess everyone is on vacation.

    Comment


    • #3
      Re: Updating the regisrty - RunOnce

      It looks like you needed to go one level deeper in the registry. Try this.

      Registry.SetValue ("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cu rrentVersion\RunOnce", "Update", "%SrcDrv%\OS Patches\Win2k\Windows2000-KB824146-x86-ENU.exe")

      =-=-=-=-=-=-=-=-=-Begin Cut and Past Code=-=-=-=-=-=-=-=-=-
      <IR_ACTIONS_LIST>
      <Action name="Set Value">
      <Type>74</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel>CONTINUE</JumpToLabel>
      </ErrorHandling>
      <MainKey>3</MainKey>
      <SubKey>Software\Microsoft\Windows\CurrentVersion\ RunOnce</SubKey>
      <ValueName>Update</ValueName>
      <ValueData>%SrcDrv%\OS Patches\Win2k\Windows2000-KB824146-x86-ENU.exe</ValueData>
      <DataType>1</DataType>
      </Action>
      </IR_ACTIONS_LIST>
      TJ-Tigger
      "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
      "Draco dormiens nunquam titillandus."
      Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

      Comment


      • #4
        Runonce

        Thanks! That did it!

        Comment

        Working...
        X