I developed a NDIS 6.x LWF kernel driver and wrapped it into an installer using NSIS 2.46. I found that after its installation, Windows will automatically create a system restore point named Device Driver Package Install: Nmap Project Network Service
.
However, in fact it turns out that this restore point created by Windows is not good. I tried rolling back to that restore point, and my software is still there, including the driver .sys
file and other modifications to the system (like creating an adapter such as Windows Loopback Adapter
).
This is understandable because my installer indeed does some modifications before installing the driver, while Windows only takes the snapshot right when the driver is being installed. So my changes prior to the driver installation is not included.
So I decided to create a restore point by myself (using SysRestore
provided by NSIS) before all actual installation steps of the installer.
And I want to disable Windows to automatically create the restore point for my driver. What's the best to do this? Thanks!