Skip to content

Commit 67bf275

Browse files
committed
hide window
1 parent 96244e9 commit 67bf275

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function Create-StartupShortcut {
9898
$Shortcut.TargetPath = $targetPath
9999
$Shortcut.Arguments = "run"
100100
$Shortcut.WorkingDirectory = $InstallDir
101-
$Shortcut.WindowStyle = 7 # Minimized
101+
$Shortcut.WindowStyle = 0
102102
$Shortcut.Description = "TimeSplit - Automatic startup"
103103
$Shortcut.Save()
104104

@@ -161,7 +161,7 @@ function Install-Program {
161161
# Start the program immediately
162162
Write-Info "Starting $ProgramName..."
163163
try {
164-
Start-Process -FilePath $InstallPath -ArgumentList "run" -WindowStyle Minimized
164+
Start-Process -FilePath $InstallPath -ArgumentList "run" -WindowStyle Hidden
165165
Write-Success "$ProgramName started successfully!"
166166
} catch {
167167
Write-Err "Failed to start ${ProgramName}: $_"

0 commit comments

Comments
 (0)