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.
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)
Please log in to answer
Posted by:
mickman
20 years ago
Posted by:
kkaminsk
20 years ago
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.
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
20 years ago
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.
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
19 years ago
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
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
19 years ago
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
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:
rpfenninger
19 years ago
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
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.
so that the conversation will remain readable.