Force all printers through universal installer
- Removed specific installer logic - all printers now use PrinterInstaller.exe - Fixed /PRINTER= parameter quoting: /PRINTER="Name1,Name2" (quotes around value) - Single call with comma-separated printer names 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -204,17 +204,15 @@ Else
|
|||||||
Set universalPrinters = Server.CreateObject("Scripting.Dictionary")
|
Set universalPrinters = Server.CreateObject("Scripting.Dictionary")
|
||||||
universalNames = ""
|
universalNames = ""
|
||||||
|
|
||||||
|
' Force ALL printers through universal installer (ignore specific installers)
|
||||||
For Each printerKey In printers.Keys
|
For Each printerKey In printers.Keys
|
||||||
Set printer = printers(printerKey)
|
Set printer = printers(printerKey)
|
||||||
If printer("installpath") <> "" Then
|
universalPrinters.Add printerKey, printer
|
||||||
specificInstallers.Add printerKey, printer
|
If universalNames <> "" Then universalNames = universalNames & ","
|
||||||
Else
|
universalNames = universalNames & printer("standardname")
|
||||||
universalPrinters.Add printerKey, printer
|
|
||||||
If universalNames <> "" Then universalNames = universalNames & ","
|
|
||||||
universalNames = universalNames & printer("standardname")
|
|
||||||
End If
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
' Skip specific installers - all printers use universal installer now
|
||||||
' Process printers with specific installers first (silent mode)
|
' Process printers with specific installers first (silent mode)
|
||||||
For Each printerKey In specificInstallers.Keys
|
For Each printerKey In specificInstallers.Keys
|
||||||
Set printer = specificInstallers(printerKey)
|
Set printer = specificInstallers(printerKey)
|
||||||
|
|||||||
Reference in New Issue
Block a user