Sorry Ludovici, there is no specific script for Runonce, I don't know where and when it is activated .And for regedit.exe /s x:\windows\system32\*.reg
Or for regsrv32.exe /s x:\Windows\System32\*.dll
What is the winbuilder script RunOnce command ?
Edit:
I do not know how RunOnce is activated, and there is no specific script to add the options Runonce,
You can use the following 2 options to choose from one of your scripts
With RunOnce
Hive_Load,HKCU Reg_add,0x2,"%reg%\Software\Microsoft\Windows\CurrentVersion\RunOnce","XXXXX","#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q" Hive_UnloadOr a batch file autorun.cmd (create by script 9-Autorun.script) called himself by RunOnce
If,ExistFile,"%target_sys%\autorun.cmd",Begin If,%pCheckBox01%,Equal,true,TXTDelLine,"%target_sys%\autorun.cmd","exit" If,%pCheckBox01%,Equal,true,TXTAddLine,"%target_sys%\autorun.cmd","start /d #$qy:\Programs\folder#$q /b XXXXX.exe","Append" If,%pCheckBox01%,Equal,true,TXTAddLine,"%target_sys%\autorun.cmd","exit","Append" End