Skip to content

Commit

Permalink
💾 Feat: 新增安装完成后询问是否启动的逻辑. Crequency/KitX#176. 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Nov 20, 2022
1 parent bbb0692 commit b791c32
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,12 @@ private void InstallProcess()

try
{
Process.Start("cmd.exe", $"/C cd /d {stfolder} && runas.exe /TrustLevel:0x20000 " +
$"\"{targetPath}\"");
if (MessageBox.Show("Start now? | 现在启动吗?", "KitX",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
Process.Start("cmd.exe", $"/C cd /d {stfolder} && runas.exe /TrustLevel:0x20000 " +
$"\"{targetPath}\"");
}

//Process.Start("explorer.exe", targetPath);

Expand Down

0 comments on commit b791c32

Please sign in to comment.