After fresh installation of windows @10 rev 1903 I wanted to personalize my desktop , as I always do. Few things done , my favourite mouse cursor left.
Normally any inf file can be installed by opening mouse context menu , and selecting install command on file . But this time I was surprised . Install option was missing.
No matter what I tried , I was not able to bring my favourite cursor back! But, wait… I will try to install it with command line .
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\Install_.inf
Someone could ask what this number 128 in command means? So small explanation copied from MS page:
You should use a combination of the following values for mode. You must include 128 to set the default path of the installation to the location of the INF, otherwise a system-provided INF is assumed. Add values to specify rebooting. Note that only the values 128 or 132 are recommended, other values may cause the computer to reboot unnecessarily or not reboot when it required.
|0||System provided INF.|
|128||Set the default path of the installation to the location of the INF. This is the typical setting.|
|+0||Never reboot the computer.|
|+1||Reboot the computer in all cases.|
|+2||Always ask the users if they want to reboot.|
|+3||Reboot the computer if necessary without asking user for permission.|
|+4||If a reboot of the computer is necessary, ask the user for permission before rebooting.|
I found source of my problem . File association for inf file was broken by Notepad++ configuration. Of course problem can be temporary fixed by using command line for future installations , or we can fix this permanently by restoring file association in registry. Copy text to txt file ,sa save as .reg and open it in explorer.
Windows Registry Editor Version 5.00
And say hallo again to Install option in context menu.