I'm trying to run a vbscript with the Inline custom action instead of having to attach a temp vbscript. With our old application we have a process that's running and i need to call that exe with it's uninstall command, because we're no longer using it in our new version. In the ExecuteScriptCode custom action my script text is:
CreateObject("WScript.Shell").Run("""Session.Property("APPDIR")\my app\myupdater.exe"" /killmyupdater")
Seems to be an issue with trying to get the appdir, but not sure how else to get it.
The msi log gives me:
Action 11:25:27: ExecuteScriptCode.
Action start 11:25:27: ExecuteScriptCode.
Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action ExecuteScriptCode script error -2146827282, Microsoft VBScript compilation error: Expected ')' Line 1, Column 56