Skip to content

Commit

Permalink
Add qoutes to path. (#1694)
Browse files Browse the repository at this point in the history
* fix pathing
  • Loading branch information
mattdurham authored Sep 18, 2024
1 parent 1881ae4 commit 9e1b6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/windows/install_script.nsis
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Section "install"
Call InitializeRegistry

# Create the service.
nsExec::ExecToLog 'sc create "Alloy" start= delayed-auto binpath= "$INSTDIR\alloy-service-windows-amd64.exe"'
nsExec::ExecToLog 'sc create "Alloy" start= delayed-auto binpath= "\"$INSTDIR\alloy-service-windows-amd64.exe\""'
Pop $0

# Start the service.
Expand Down Expand Up @@ -156,7 +156,7 @@ Function InitializeRegistry
nsExec::ExecToLog 'Reg.exe query "${REGKEY}" /reg:64 /ve'
Pop $0
${If} $0 == 1
nsExec::ExecToLog 'Reg.exe add "${REGKEY}" /reg:64 /ve /d "$INSTDIR\alloy-windows-amd64.exe"'
nsExec::ExecToLog 'Reg.exe add "${REGKEY}" /reg:64 /ve /d "\"$INSTDIR\alloy-windows-amd64.exe\""'
Pop $0 # Ignore return result
${EndIf}

Expand Down

0 comments on commit 9e1b6e8

Please sign in to comment.