Skip to content

Commit

Permalink
安装执行前结束 PeerBanHelper 进程 #718
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 18, 2024
1 parent e4ed71f commit 77282e6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions install4j/project.install4j
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,23 @@ return true;
</screen>
<screen id="15" beanClass="com.install4j.runtime.beans.screens.InstallationScreen" rollbackBarrier="true" rollbackBarrierExitCode="0">
<actions>
<action id="246" beanClass="com.install4j.runtime.beans.actions.services.StopServiceAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
<serializedBean>
<property name="launcherId" type="string">70</property>
</serializedBean>
</action>
<action id="248" beanClass="com.install4j.runtime.beans.actions.control.RunScriptAction" rollbackBarrierExitCode="0">
<serializedBean>
<property name="script">
<object class="com.install4j.api.beans.ScriptProperty">
<property name="value" type="string">try{
Runtime.getRuntime().exec(new String[] {"taskkill", "/f", "/t", "/im", "PeerBanHelper*"}).waitFor();
} catch (Exception ignored) {}
return true;</property>
</object>
</property>
</serializedBean>
</action>
<action id="121" beanClass="com.install4j.runtime.beans.actions.files.DeleteFileAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
<serializedBean>
<property name="files" type="array" class="java.io.File" length="1">
Expand Down

0 comments on commit 77282e6

Please sign in to comment.