Has anyone being able to stop the print spooler before the files and registry get installed and start the print spooler at the end of the package when deploying through AD?

I have been trying to repackage Acrobat Writer 6.0 and deploy this via Active Directory. It all installs well until the last 3 seconds where the deployment failed with the message warning 20225. Adobe Acrobat 6.0 Setup was not able to create a new item: Adobe PDF Port monitor. The Adobe PDF printer may be unavailable.

Strangely when executing the MSI file, it installation went perfectly fine, but only deploying in AD the error message appears.

After comparing the installations manual MSI and with AD, the only difference is in the printer spooler service is still running for the one with AD but not with the manual MSI.

And thus my question.
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


You can make a custom action in the MSI Script.

There are numerous ways to execute commands. But i did it with the good'ol cmd file.

these are the commands you are looking for:

net start spooler

net stop spooler
Answered 09/16/2004 by: mickman
Orange Belt

Please log in to comment
Well MSIs do have some nice service control facilities. When you are in the
Installation Expert view you go to the services page by clicking services on
the left hand side of the screen. Make sure the Current Feature in the top
middle of the screen is set to Complete. Click Add on your right then select
Service Control. Set the Service Name to Spooler and select Start Sevice under
Install Action. Click the checkbox Wait for service action to complete before
continuing. You then just have to add another service control to stop the
spooler on install. It might sound like things are going to fail but the
StopServices custom action will occur before the StartServices custom action
when the MSI installs so everything is sequenced correctly.
Answered 09/16/2004 by: kkaminsk
Ninth Degree Black Belt

Please log in to comment
If you do use the Wise method of stopping and starting services then you may want to move their location in the sequence if you are getting errors. In the MSI script section you can move them up and down in the sequence if you need to.

If you want to use a third party utility then get SC.EXE (Service Control)

I use this for setting advanced settings on services I am installing because it lets you have extremely good control over how services are configured.
Answered 09/18/2004 by: MSIMaker
Second Degree Black Belt

Please log in to comment
Hi there..

I've tried playing around with the net start and stop via a cmd window.. but I really want this to be integrated in the msi (using installshield developer).

I tried moving the commands up and down but couldnt get this to work.

Actually.. I put both commands in a cmd window (one ran after the other then ran the install) and this still didnt work... I dont think I have done exactly what was recommended (directions seem unclear).

Can anyone assist?

Answered 06/22/2005 by: markm75
Yellow Belt

Please log in to comment
Try this for a workaround
Making Acrobat Distiller a Windows Service

1) Run the following at command prompt: "C:\Program Files\Resource Kit\Instsrv.exe" "Adobe Acrobat Distiller Server" "C:\Program Files\Resource Kit\Srvany.exe"
2) Launch regedit and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Adobe Acrobat Distiller Service
3) Add key called Parameters
4) Add a Value under Parameters key with the following attributes:
    Name: Application
    Data Type : REG_SZ
    Data : C:\Program Files\Adobe\Acrobat 6.0\Distillr\acrodist.exe
5) Open up Acrobat distiller service and assign the right login with file system access priviledge.
6) Log in as that startup account in step 5), launch distiller and configure appropriate watch folder. Afer verify watch foder work, exit Distiller and startup the service.

Use the following link as reference if you have any questions.

Answered 06/28/2005 by: Sicktrix
Senior Yellow Belt

Please log in to comment
any luck with this? I have the same issue...
Answered 07/27/2005 by: thepilo
Yellow Belt

Please log in to comment
Try this:
Use Orca (or any other msi editor) to add the following new line in the ServiceControl table:

Service Control "AnyName"
Name "spooler"
Event "51" (this stops and starts the service during install and uninstall of the msi)
Argument "leave empty"
Wait "leave empty"
Component "Choose any Component that is going to be installed and uninstalled completely"

Hope that helps

Answered 08/02/2005 by: rpfenninger
Second Degree Green Belt

Please log in to comment