Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Restart app is failing #144

Closed
osnoser1 opened this issue Jan 30, 2023 · 4 comments
Closed

Restart app is failing #144

osnoser1 opened this issue Jan 30, 2023 · 4 comments

Comments

@osnoser1
Copy link

When I use UpdateManager.RestartApp(), it doesn't work and I see this error in the log:

2023-01-29 21:24:55.9643 [INFO] - Program: Starting Squirrel Updater: --processStartAndWait C:\Users\Windows 7\AppData\Local\CianzDesktop\app-1.17.0\cianz.exe
2023-01-29 21:24:56.1706 [INFO] - Program: Want to launch 'C:\Users\Windows'
2023-01-29 21:24:56.2866 [FATAL] - Finished with unhandled exception: System.ArgumentException: Value does not fall within the expected range.
   at Squirrel.Update.Program.ProcessStart(String exeName, String arguments, Boolean shouldWait) in ./Program.cs:line 497
   at Squirrel.Update.Program.executeCommandLine(String[] args) in ./Program.cs:line 126
   at Squirrel.Update.Program.main(String[] args) in ./Program.cs:line 60

It looks like a problem with the spaces in the path.

@osnoser1
Copy link
Author

osnoser1 commented Jan 30, 2023

I created an account user without spaces and the problem is gone, but we don't control the user names 😅

@caesay
Copy link
Member

caesay commented Jan 30, 2023

Thanks for this report, what version of Squirrel are you using?

@osnoser1
Copy link
Author

Sorry the delay @caesay, the version I'm using is 2.9.42

@caesay
Copy link
Member

caesay commented Apr 26, 2023

I will shortly deploy a release with this fixed

@caesay caesay closed this as completed Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants