I received an installation project (.VDProject / Deployment project) that takes a dll and extract to certain location.
My goal is after it copies the file to the proper location, on the end of the installation/un-installation to re-start a certain Windows Service.
What is the proper way doing this ? by VBS in the "Commit" and "Uninstall" section of "Custom Actions" ?
This script doesnt work:
Set oshell = createobject("Wscript.Shell")
oshell.run"cmd.exe"
wscript.sleep 500
oshell.sendkeys "net stop ""MyService"""+("{Enter}")
wscript.sleep 5000
oshell.sendkeys "net start ""MyService"""+("{Enter}")
wscript.sleep 5000
oshell.sendkeys "exit"+("{Enter}")
set oshell = nothing
WScript.Quit