-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silent install automatically starts the application in Spyder 6 #22730
Comments
Hey @valkenaer, thanks for reporting. I think this is a sensible request and we'll try to address it in 6.0.3 or 6.0.4, both to be released before the end of the year. @mrclary, could you take a look at this one? |
@ccordoba12, I agree that this is a sensible request. However, I don't know if we can achieve it with the current |
Ok, I was afraid you were going to say that.
What if we create a new Windows installer that doesn't launch Spyder at the end? That one could be used by IT staff to install Spyder in batch mode, while still maintaining the current experience for the user-facing installer (which I think is really good). |
We can certainly do that. Would we be interested in doing the same for macOS and Linux? For all three platforms, it only requires removing the launch command at the end of the post-install script. For macOS, I would just make this a |
Sure, I think that's ok in case someone needs them. And we should also add a new entry in the FAQ section of our docs to mention the existence of these installers so they can be easily found by other people. |
I'll await the resolution to conda/constructor#882 before moving forward. |
So conda/constructor#882 appears that it will be included in the next @valkenaer, in the mean time, as a work-around, I recommend closing Spyder from the command-line immediately following completion of the install using the following bash code. Adapt as needed. while [[ ! $(pgrep spyder 2>/dev/null) ]]; do
echo "Waiting for Spyder to start..."
sleep 1
done
echo "Quitting Spyder..."
pkill spyder 2>/dev/null
sleep 1
while [[ $(pgrep spyder 2>/dev/null) ]]; do
echo "Waiting for Spyder to quit..."
sleep 1
done |
@valkenaer, sorry I forgot that you are running the installer on Windows. To close Spyder immediately after install, use the following batch script code. :loop1
tasklist /v /fi "ImageName eq pythonw.exe" /fi "WindowTitle eq Spyder*" | find "Spyder" > nul
IF "%ERRORLEVEL%"=="1" (
echo Waiting for Spyder to start...
timeout /t 1 /nobreak > nul
goto loop1
)
echo Spyder has started.
echo Quiting Spyder...
:loop2
tasklist /v /fi "ImageName eq pythonw.exe" /fi "WindowTitle eq Spyder*" | find "Spyder" > nul
IF "%ERRORLEVEL%"=="0" (
taskkill /IM pythonw.exe /fi "WindowTitle eq Spyder*" > nul
echo Waiting for Spyder to quit...
timeout /t 1 /nobreak > nul
goto loop2
)
echo Spyder is quit. |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Spyder-Windows-x86_64.exe /S /InstallationType=AllUsers neatly installs everything into ProgramData but ALSO starts the application when the silent install is done (version 6.0.1)
How can I make sure the application DOESNT start? This messes up my deployments
What steps reproduce the problem?
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: