/build/static/layout/Breadcrumb_cap_w.png

Stop and start print spooler during MSI install

Hi,

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   [ + ] Show comments

Answers (7)

Posted by: mickman 19 years ago
Orange Belt
0
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
Posted by: kkaminsk 19 years ago
9th Degree Black Belt
0
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.
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
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.
Posted by: markm75 18 years ago
Yellow Belt
0
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?

Thanks
Posted by: Sicktrix 18 years ago
Senior Yellow Belt
0
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.

http://support.microsoft.com/default.aspx?scid=http/support.microsoft.com:80/support/kb/articles/q137/8/90.asp&NoWebContent=1
Posted by: thepilo 18 years ago
Yellow Belt
0
any luck with this? I have the same issue...
Posted by: rpfenninger 18 years ago
Second Degree Green Belt
0
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

Roland
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ