Skip to content
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

Spyder silent installer not working #22329

Closed
zarif98 opened this issue Aug 6, 2024 · 14 comments
Closed

Spyder silent installer not working #22329

zarif98 opened this issue Aug 6, 2024 · 14 comments

Comments

@zarif98
Copy link

zarif98 commented Aug 6, 2024

It seems like the directory input does not work at all. It makes an install log and installs the application in another directory anyways. On another machine, it seems to install it really fast but not in the directory that I requested.

Is there a reason why it's doing this?
image (8)

@ccordoba12
Copy link
Member

Hey @zarif98, thanks for reporting.

@dalthviz, can you give @zarif98 an additional hand with this? Thanks!

@dalthviz
Copy link
Member

dalthviz commented Aug 8, 2024

@zarif98 seems like you are trying to use the flags with a Spyder 6 installer? The thing is that the Spyder 6 installer, although I think is build using NSIS, it's generated via a different method than the Spyder 5 installers. Spyder 6 installers are generated using a package called constructor. A quick search over their issue tracker shows that they have some issues with the /D and /S flags. For more info you can check: conda/constructor#813

Let us know if the info above helps!

@ccordoba12
Copy link
Member

@mrclary, could you take a look at this issue to see if we can submit a PR to Constructor to fix this problem?

This is important because many organizations use our installer in batch mode to easily install Spyder in multiple computers.

@mrclary
Copy link
Contributor

mrclary commented Aug 14, 2024

@zarif98, can you copy and paste the contents of the resulting install.log to this issue?
/S /D=D:\Spyder\6.0 should work. I suspect that either D:\Spyder\6.0 is not an empty directory or the installer does not like installing to another drive.

For example, the following works as expected for me with our latest 6.0.0rc1 release:

C:\Users\rclary\Downloads\Spyder-Windows-x86_64.exe /S /D=C:\Users\rclary\Desktop\spyder-6

Note that the spyder-6 directory does not exist prior to this execution. The installer will create this directory. If the target directory already exists and is not empty, then you will get an install.log. For example, when I tried the following

C:\Users\rclary\Downloads\Spyder-Windows-x86_64.exe /S /D=C:\Users\rclary\Desktop

I got the following result:

install.log
Call: 3115
SetFlag: 13=6
SetFlag: 2=0
Delete: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp"
CreateDirectory: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp" (0)
CreateDirectory: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp" created
SetFlag: 2=0
Call: 847
Jump: 864
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
Jump: 1357
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 12=256
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll"
File: wrote 12288 to "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll"
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll"
File: skipped: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll" (overwriteflag=1)
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll"
File: skipped: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll" (overwriteflag=1)
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll"
File: skipped: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll" (overwriteflag=1)
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\UAC.dll"
File: wrote 14848 to "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\UAC.dll"
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\UAC.dll"
File: skipped: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\UAC.dll" (overwriteflag=1)
Jump: 1607
Jump: 1617
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\UAC.dll"
File: skipped: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\UAC.dll" (overwriteflag=1)
Call: 3115
SetFlag: 13=6
File: overwriteflag=1, allowskipfilesflag=0, name="C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll"
File: skipped: "C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll" (overwriteflag=1)
Call: 1211
settings logging to 1
logging set to 1
SetFlag: 1=0
Jump: 1223
Call: 153
Jump: 167
Call: 843
settings logging to 1
logging set to 1
SetFlag: 2=0
Call: 847
Jump: 864
Jump: 881
Call: 885
SetFlag: 2=0
SetFlag: 2=1
Jump: 975
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
Jump: 1039
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
SetFlag: 2=0
Call: 885
SetFlag: 2=0
SetFlag: 2=1
Section: "Install"
settings logging to 1
logging set to 1
Call: 1721
settings logging to 1
logging set to 1
Jump: 1725
Jump: 1725
DetailPrint: ::error:: Directory 'C:\Users\rclary\Desktop' is not empty, please choose a different location.
MessageBox: 2097200,"Directory 'C:\Users\rclary\Desktop' is not empty,
please choose a different location."
Aborting: ""
Delete: DeleteFile("C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\System.dll")
Delete: DeleteFile("C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\UAC.dll")
RMDir: RemoveDirectory("C:\Users\rclary\AppData\Local\Temp\nsj50A2.tmp\")

Note the ::error:: near the end of the log.

@zarif98
Copy link
Author

zarif98 commented Aug 15, 2024

Hmmm I'm not generating an install.log file and I ensured that the folder was not there when I did the install.

image

image
Also running in admin mode

@mrclary
Copy link
Contributor

mrclary commented Aug 15, 2024

Hmmm I'm not generating an install.log file and I ensured that the folder was not there when I did the install.

In this case you are using our Spyder 5 installer. This is completely different from our Spyder 6 installer, which you used in the original post. Do you want to install Spyder 5 or Sypder 6? Note that our Spyder 6 installer, while available, has not yet been officially released; we've only published a release candidate 6.0.0rc1.

@mrclary
Copy link
Contributor

mrclary commented Aug 15, 2024

Hmmm I'm not generating an install.log file and I ensured that the folder was not there when I did the install.

It looks like the install of Spyder 5 worked as expected, by the way.

@zarif98
Copy link
Author

zarif98 commented Aug 19, 2024

Sorry for the late response @mrclary but I didn't realize I was using Spyder 5. Is there to have the silent install working with Spyder 5 then? I just assumed Spyder 6 was already readily available from the Spyder ide website.

@mrclary
Copy link
Contributor

mrclary commented Aug 19, 2024

Sorry for the late response @mrclary but I didn't realize I was using Spyder 5. Is there to have the silent install working with Spyder 5 then?

"Spyder_64bit_full.exe" /S

Silent installation worked for me. However, it will install for all users. I could not get it to install into an arbitrary directory in silent mode, however; it seems /D=C:\Spyder is ignored.

@zarif98
Copy link
Author

zarif98 commented Aug 20, 2024

Hmmm could that be resolved? @mrclary

@mrclary
Copy link
Contributor

mrclary commented Aug 20, 2024

Unfortunately, I don't know anything about the NSIS installer for Windows that we use for Spyder 5. @ccordoba12 @dalthviz, is this something that can be resolved?

@dalthviz
Copy link
Member

So I would say as a summary that:

  • When using Spyder 5 installers (the executable file should named something like Spyder_64bit_full.exe) for silent install you can use /S. If you need to setup the installation path you need to use /INSTDIR=<path where things should be installed>. Also, here some issues where the flags the installer can use were discused: Installing without UI #22260 and Regarding the Silent Command line customization for changing the Install Location #21841 and further info about the flags the installer accepts at https://github.com/spyder-ide/spyder/blob/5.x/installers/Windows/README.md

  • When using Spyder 6 installers (the executable file is named with something like Spyder-Windows-x86_64.exe) for silent installs you can use /S. If you need to setup the installation path you can use /D=<path where things should be installed>. However, you need to take into account that the path where things will be installed shouldn't exists otherwise the installation will fail. This installation fail then can happen if you try to install multiple times the installer with the /S flag (since you are trying to install using the same default installation path) or if you try to install passing the same path with the /D flag multiple times.

Let us know if the info above helps @zarif98 !

@mrclary
Copy link
Contributor

mrclary commented Aug 21, 2024

Thanks @dalthviz!

@ccordoba12 ccordoba12 modified the milestones: v6.0.1, v6.0.2 Sep 6, 2024
@mrclary
Copy link
Contributor

mrclary commented Sep 7, 2024

I'm closing this issue, assuming that @dalthviz's comment resolved the issue. @zarif98, if this is not the case and you have further information to report, please reopen.

@mrclary mrclary closed this as completed Sep 7, 2024
@ccordoba12 ccordoba12 removed this from the v6.0.2 milestone Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants