kkrzyzak wrote:Hi Skritek,
This can be helpful.
Best,
Karol.
Thanks. But I think that the script cant help me. Because I need to run it before InstallValidate (before file-in use check ) . And I need to by running elevated ( with no impersonation). This is probably not posible with custom actions.
Code: Select all
option explicit
Dim objFSO
Set objFSO = CreateObject("WScript.Shell")
objFSO.run("net stop ""ServiceName""")
I have tried to run my .exe wich stops the service. This is the result.
MSI (s) (B8:8C) [14:45:45:137]: Running ExecuteSequence
MSI (s) (B8:8C) [14:45:45:137]: Doing action: stop_icproxy.exe
Action 14:45:45: stop_icproxy.exe.
Action start 14:45:45: stop_icproxy.exe.
MSI (s) (B8:8C) [14:45:45:278]: Note: 1: 1721 2: stop_icproxy.exe 3: C:\Windows\Installer\MSIDEC1.tmp 4:
Info 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: stop_icproxy.exe, location: C:\Windows\Installer\MSIDEC1.tmp, command:
Action ended 14:45:45: stop_icproxy.exe. Return value 1.
When i run it directly it works.