[.08] Problems with AutoExec
Posted: Tue May 07, 2013 6:00 am
I had never tried to use AutoExec before yesterday... I see no special instructions, but I couldn't get it to work (in my usual "active" sandbox, new one, nothing with 4.01.07). So had to investigate. Worked right away with 4.01.07 on the other XP system! Here's what I found, testing with:
AutoExec=reg add HKCU\Software\Test123
First, it appears that in 3.76 and 4.01, an AutoExec (when it works), is only executed when a sandbox first becomes active -- is that the intended behavior, I guess? Although the SandboxieAutoExec key itself is recreated, if deleted, with each new process.....
It looks like AutoExec in 3.76 ONLY works when using Run Sandboxed, etc. (Start.exe stuff). With Forced Programs, the command will be logged under SandboxieAutoExec, but it doesn't actually run. Assuming this won't be fixed if there are no more 3.x releases...
In 4.01, AutoExec ONLY works when using Forced Programs. So that explains why I couldn't get it to work, since using Run Sandboxed, Run... whatever with Start.exe never does anything.
AutoExec=reg add HKCU\Software\Test123
First, it appears that in 3.76 and 4.01, an AutoExec (when it works), is only executed when a sandbox first becomes active -- is that the intended behavior, I guess? Although the SandboxieAutoExec key itself is recreated, if deleted, with each new process.....
It looks like AutoExec in 3.76 ONLY works when using Run Sandboxed, etc. (Start.exe stuff). With Forced Programs, the command will be logged under SandboxieAutoExec, but it doesn't actually run. Assuming this won't be fixed if there are no more 3.x releases...
In 4.01, AutoExec ONLY works when using Forced Programs. So that explains why I couldn't get it to work, since using Run Sandboxed, Run... whatever with Start.exe never does anything.