I need to disable a service as part of my installation (if I do not do this, the application produces an error message when launched).
I am using an NT Resource Kit utility called SC.exe that lets you disable a service. The file is located in C:\WINNT\UTILS.
I have created an EXE Custom Action with Path referencing a directory. The working directory is UTILS and the filename and command line is:
sc config PolicyAgent start= disabled
It is set for Synchronous (ignores exit code), Deferred Execution and the Install Exec Sequence is After InstallFiles.