Try BoxedApp SDK. It emulates registry and file system.