i need to install a fake/dummy printer on windows using a command or a batch file.
I was able to install a dummy printer using the wizard and selecting a NUL port. The problem is that i need to add the dummy printer automatically, so the wizard is not an option.
In my search for a solution i found that it is possible to execute the rundll32 printui.dll PrintUIEntry command with the /il parameter to install a printer using a .inf file.
The problem is creating the .inf file. I read some documentation and tutorials but i still have no idea what this file must contain. Any ideas with this?
Also I'm not sure if the rundll32 printui.dll PrintUIEntry command with a custom .inf file is the right answer, so i'm listening.