Fix Plus upgrade install in Windows 7 #1194
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Windows 7 still has KmdUtil issues with the Plus installer while Windows 10 has been recently fixed.
Upgrade install from v0.9.5 to v0.9.6 was not a nice experience on Windows 7.
Tried to remove services\SbieDrv key in the installer though makes no difference with errors.
Either restart the OS or run the command
sc query sbiedrv
removes the services\SbieDrv key. The command needs to run before the reinstall of the driver else an error condition may happen, in which an OS restart is needed.The fix tested is to check if
HKLM\SYSTEM\CurrentControlSet\services\SbieDrv
exist, if it does, runsc query sbiedrv
. This will run on Windows 7 and will not run on Windows 10. Not tested on Windows 8 or Windows 11. The command should be safe to run on any supported OS.A better fix might be in KmdUtil source, though until solved there, this current fix can be used. Comments in kmdutil.c mentions the issue with the registry key possibly remaining.
The key may remain due to being in a undetermined state that
sc query sbiedrv
knows how to fix.The Classic installer handles the KmdUtil errors though likes to do OS restarts. I prefer to avoid OS restarts if possible. i looked at SandboxieVS.nsi, though nothing that could be considered as an improvement with handling the driver as compared with Sandboxie-Plus.iss.
This fix helps the Plus installer run in Windows 7 similar to the experience in Windows 10.