The new AutoRuns.Script is not longer running directly inside the project build.
Every script which wants to add something to autorun, has to call autorun.script by
Run,%AutoRunScript%,Add,myCommandLine
The Add section checks whether autorun.cmd already exists inside the target.
If not, it creates it, makes the registry entry for RunOnceEx and copies the necessary files to the target.
Then it creates the new entry in autorun.cmd
[Add] If,ExistFile,%AutoRunFile%,TXTAddLine,%AutoRunFile%,"#1","Append" If,NotExistFile,%AutoRunFile%,Run,%AutoRunScript%,Create,"#1" [Create] FileCreateBlank,%AutoRunFile% TXTAddLine,%AutoRunFile%,"#1","Append" Echo,"Copying files..." ExtractAllFiles,"%AutoRunScript%","Folder","%TargetDir%\i386\system32" RegHiveLoad,"Tmp_software","%TargetDir%\i386\system32\config\software" RegWrite,"HKLM",0x1,"Tmp_software\Microsoft\Windows\CurrentVersion\RunOnceEx\500","200","hiderun.exe autorun.cmd" RegHiveUnLoad,"Tmp_software"Currently the new autoruns functionality is stored in the sandbox.
For .script developers:
For 'normal' users:To use the new functionality demands that the developers must change their scripts to bring autoruns work with them. Mainly this is to show shortcuts.
Old linesTXTAddLine,"%TargetDir%\i386\system32\autorun.cmd","my line","Append"have to be replaced byRun,%AutoRunScript%,Add,"my line".If there is a line like:If,NotExistFile,"%Target%\system32\autorun.cmd",FileCreateBlank,"%Target%\system32\autorun.cmd"delete this line.
If you use the sandbox content for your WinBuilder installation and download a script from outside the sandbox which does not fullfill this reqirement: There may be some troubles!
Peter