Re: automating printer install

From: TerryM (terry_at_nospam.com)
Date: 11/06/04


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?



Relevant Pages

  • Re: SMS Installer Open File Security Warning
    ... > I'm simply doing an execute program script item on just the patch ... > patch with "silent" options. ... but SMS Installer scripting is the one I'm using ... >> instead of using the script item to get around that. ...
    (microsoft.public.sms.installer)
  • Re: Network printer connection
    ... This is what I had to do in my SMS Installer package: ... > Create and "Execute Program" line in the script window ... >> Installer, then in your script get rid ...
    (microsoft.public.sms.installer)
  • Re: Issue with Include Script Command
    ... versions of SMS Installer): ... >script to see what happens. ... >> silent issuance packages. ... it will build a package based on the content of ...
    (microsoft.public.sms.installer)
  • Re: Getting List of Unknow Reg Entries
    ... far used the script that Rod Trent from MyItForum.com wrote to enumerate ... > So you just want to modify a certain reg key for all users on the machine, ... >> Using SMS installer, I would like to read the number of user keys and ...
    (microsoft.public.sms.installer)
  • automating printer install
    ... I created this script in sms installer in the script view area. ... Project-To automate installing a printer same model for three platforms XP, ... item: Execute Program ...
    (microsoft.public.sms.installer)

Loading