Skip to content

Commit

Permalink
add quotes windows path (#7028)
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum authored Sep 19, 2024
1 parent 580d30c commit f3c2e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/grafana-agent-flow/windows/install_script.nsis
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Section "install"
Call InitializeRegistry

# Create the service.
nsExec::ExecToLog 'sc create "Grafana Agent Flow" start= delayed-auto binpath= "$INSTDIR\grafana-agent-service-windows-amd64.exe"'
nsExec::ExecToLog 'sc create "Grafana Agent Flow" start= delayed-auto binpath= "\"$INSTDIR\grafana-agent-service-windows-amd64.exe\""'
Pop $0

# Start the service.
Expand Down Expand Up @@ -135,7 +135,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\grafana-agent-flow-windows-amd64.exe"'
nsExec::ExecToLog 'Reg.exe add "${REGKEY}" /reg:64 /ve /d "\"$INSTDIR\grafana-agent-flow-windows-amd64.exe\""'
Pop $0 # Ignore return result
${EndIf}

Expand Down

0 comments on commit f3c2e0d

Please sign in to comment.