Hello,
I want my installer (using Installshield 2012) to stop the existing service before copying the files which are being used by the service. So I created a custom action to stop the service.
working directory systemfolder
file name&command line "[SystemFolder]net.exe" stop myservice
Return processing synchronous (ignore exit code)
in-script execution Deferred Execution in System Context
When the installer is at "validating install" stage I kept getting the "file in use" dialog
with two options. I'm not sure why my custom action didn't run successfully.
If I click "Automatically close and attempt to restart the applications" option,
everything works fine but I don't want users to get this dialog.
Anything wrong with my custom action?
Is there anyway to disable (doesn't show) the dialog box and stop the service?
or any other suggestion?
Thanks in Advance,
Max