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>
<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>
Comment