Re: automating printer install
From: TerryM (terry_at_nospam.com)
Date: 11/06/04
- Next message: SMS-Curious guy: "Re: sms installer- automate installing local printer"
- Previous message: TerryM: "Re: sms installer- automate installing local printer"
- In reply to: SMS-Curious guy: "automating printer install"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 5 Nov 2004 17:13:43 -0800
see your other post for my response.
"SMS-Curious guy" <SMSCuriousguy@discussions.microsoft.com> wrote in message
news:C4F36A8A-5770-438E-AED5-2376B9EA209E@microsoft.com...
> I created this script in sms installer in the script view area.
>
> Project-To automate installing a printer same model for three platforms
XP,
> 2k, Nt 4.0 - they will all be the same model printer- I figured a lot of
it
> out by running the oemsetup.inf file and then watching where it placed the
> files but I still don't understand if sms installer has the capability to
do
> a complete snapshot capture of the machine- If someone know's how to do
this
> please send me the details.
>
> Goal - to automate installer a local printer install and then package that
> into an exe file- later we will push that down to xp, 2k and nt 4.0
clients.
> You will notice the line that begins with vbscript is the line you need to
> install this printer. This script is being tested on an XP machine
>
> I first found out tha this line run from a dos prompt can accomplish the
task
> cscript prnmngr -a -p "UPS2844" -m "ups thermal 2844" -r "LPT1:"
>
>
> Here is the script:
> item: Add Directory to Path Directory=c:\windows\system32
> end
> item: Add Directory to Path
> Directory=C:\windows\system32\spool\drivers\w32x86\ups_thermal_2844_643c
> end
> item: Set Variable
> Variable=SYS
> Value=c:\ups_thermal_2844_643c
> end
> item: Set Variable
> Variable=SYS32
> Value=c:\windows\system32\spool\drivers\w32x86\ups_thermal_2844_643c
> end
> item: Check Disk Space
> Space1=5000
> end
> item: Copy Local File
> Source=%sys%
> Destination=%sys32%
> Description English=Configuration files needed for Thermal UPS 2844
> Local Path=c:\ups_thermal_2844_643c
> Flags=0000000101100010
> end
> item: Execute Program
> Command Line=cmd cscript prnmngr -a -p "UPS2844" -m "ups thermal
2844" -r
> "LPT1:"
> end
>
>
> I know it works because if I delete the printer and then run this command
> from a dos prompt you will notice it will add the printer-you need to be
at
> the c:\windows\system32 directory before you run the command. Has anyone
any
> suggestions or ideas on how to make this work? If I run the executable
that
> was created by this sms installer script it tells me that it cannot run
the
> external program or that these files were not found. Keep in mind I'm
sort
> of a newbie to sms installer and I really couldn't find another
alternative
> option other that execute to try to run the line, I wish there was a call
> batch. What do you all think?
- Next message: SMS-Curious guy: "Re: sms installer- automate installing local printer"
- Previous message: TerryM: "Re: sms installer- automate installing local printer"
- In reply to: SMS-Curious guy: "automating printer install"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|