Local Security Policy - Service Will not Auto Start
Posted: Tue Mar 24, 2015 5:09 am
Hi
We are deploying a package only to our own domain machines. We have found that deploying a SERVICE that can run updates for our own software under the System Account doesn't work and creating a local admin account is the best way to achieve our goal. However, when IA creates the new user, that user has not been assigned rights to run as a service. i.e. Local Security Policy. We cannot find anything in IA to do this. Have we missed something????
We have a small utility written in house to change the LSP and have successfully run this from inside the IA package and it works. However, we then run into problems with IA failing to run the service on install, this is the pseudo code.
Create OURLocalServiceUserName
Install Our LSP Utility to $TARGETDIR$
Apply Install ' This seems to be the only way to get IA to run this utility before the whole Install completes
Run Our LSP Utility startup in folder $TARGETDIR$ (WAIT)
Install Service Our.EXE to $TARGETDIR$ as OurService
Apply Install etc.
if Variable SUCCESS not Equals ERROR
IF Variable SUYCCESS not EQUALS Cancel
Control Service OurService: start on install, set startup to automatic [wait for completion] ' this does not seem to work !!!!!!!!!!!!!!!
As a workaround we have at this point displayed a messagebox and then proceed to reboot the machine which runs the service runs as expected. So why didn't the IA Control Service work?
We have also noticed that when Uninstalling a service it is not removed from the list of services on the machine. Can you please fix this in your next release?
Kind regards.
Andrew
We are deploying a package only to our own domain machines. We have found that deploying a SERVICE that can run updates for our own software under the System Account doesn't work and creating a local admin account is the best way to achieve our goal. However, when IA creates the new user, that user has not been assigned rights to run as a service. i.e. Local Security Policy. We cannot find anything in IA to do this. Have we missed something????
We have a small utility written in house to change the LSP and have successfully run this from inside the IA package and it works. However, we then run into problems with IA failing to run the service on install, this is the pseudo code.
Create OURLocalServiceUserName
Install Our LSP Utility to $TARGETDIR$
Apply Install ' This seems to be the only way to get IA to run this utility before the whole Install completes
Run Our LSP Utility startup in folder $TARGETDIR$ (WAIT)
Install Service Our.EXE to $TARGETDIR$ as OurService
Apply Install etc.
if Variable SUCCESS not Equals ERROR
IF Variable SUYCCESS not EQUALS Cancel
Control Service OurService: start on install, set startup to automatic [wait for completion] ' this does not seem to work !!!!!!!!!!!!!!!
As a workaround we have at this point displayed a messagebox and then proceed to reboot the machine which runs the service runs as expected. So why didn't the IA Control Service work?
We have also noticed that when Uninstalling a service it is not removed from the list of services on the machine. Can you please fix this in your next release?
Kind regards.
Andrew