Skip to content

Commit

Permalink
Fixes #1569
Browse files Browse the repository at this point in the history
  • Loading branch information
1-alex98 committed Feb 29, 2020
1 parent 5df59a2 commit 2273a91
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions downlords-faf-client.install4j
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,30 @@ return console.askOkCancel(message, true);
</serializedBean>
<condition />
</action>
<action name="Kill left over ice adapters" id="621" customizedId="" beanClass="com.install4j.runtime.beans.actions.control.RunScriptAction" enabled="true" commentSet="false" comment="" actionElevationType="elevated" rollbackBarrier="false" rollbackBarrierExitCode="0" multiExec="false" failureStrategy="1" errorMessage="">
<serializedBean>
<java class="java.beans.XMLDecoder">
<object class="com.install4j.runtime.beans.actions.control.RunScriptAction">
<void property="script">
<object class="com.install4j.api.beans.ScriptProperty">
<void property="value">
<string> try{
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("for /f \"tokens=1\" %i in ('jps -m ^| find \"faf-ice-adapter\"') do ( taskkill /F /PID %i )");
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);
} catch (Throwable t){
t.printStackTrace();
}
return true;</string>
</void>
</object>
</void>
</object>
</java>
</serializedBean>
<condition />
</action>
</actions>
<formComponents />
</screen>
Expand Down

0 comments on commit 2273a91

Please sign in to comment.