I am trying to use the taskkill.exe windows command to kill multiple instances of the same executable file, at the start of the install.
Under the "Begin" sections of InstallUISequence, and InstallExecuteSequence, I have added a custom action of type:
"EXE with Working Directory and path given by a Formatted"
WorkingDir is APPDIR
The "Full Path" is not a full path (I wish to rely upon the system to find the command) so reads:
taskkill.exe /f /im [APPDIR]MyTarget.exe
Synchronous, immediate execution, Execute only once if present in both sequence tables.
I get an error msgbox "Directory Manager Not Initialized".
According to MSDN, "The directory manager is responsible for determining the target and source paths. It is initialized during the costing actions (CostInitialize action, FileCost action, and CostFinalize action). A standard action or custom action made a call to a function requiring the directory manager before the initialization of the directory manager. This action should be sequenced after the costing actions."
I have tried installing these three "costing" actions but I am unable to move them before the Begin section?
FOLLOW US
Get the latest news in Application Packaging