Python Forum
Adding into Path var while silent installation of Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding into Path var while silent installation of Python
#1
I need to passively install Python in my applications package installation so i use the following:

Quote:python-3.5.4-amd64.exe /passive PrependPath=1

according this: https://docs.python.org/3.6/using/window...without-ui I use the PrependPath parameter which should add paths into Path in Windows environment variables.

But it seems not to work. The variables does not take any changes.

If i start installation manually and select or deselect checkbox with add into Paths then everything works.

Works same with clear installation also on modify current installation. Unfortunately i do not have other PC with Win 10 Pro to test it.

I have also tried it with Python 3.6.3 with same results.
Reply
#2
Would you elaborate on why you need to install python silently? There are plenty of alternatives to freeze your code, incl. Python interpreter and external dependencies.
Reply
#3
(Nov-20-2017, 10:37 AM)buran Wrote: Would you elaborate on why you need to install python silently? There are plenty of alternatives to freeze your code, incl. Python interpreter and external dependencies.

Python is part of bigger installation package.

Options /quiet or /passive in installer are exactly what i need.
Reply
#4
do you run it from elevated command prompt?
Reply
#5
(Nov-20-2017, 11:55 AM)buran Wrote: do you run it from elevated command prompt?

What do you mean by elevated? You mean with admin rights? I am using NSIS installer which runs python installer with admin rights.

But the same problem happens even with simple Command prompt so the NSIS is not issue.
Reply
#6
(Nov-20-2017, 12:15 PM)Erik Wrote: What do you mean by elevated? You mean with admin rights?
yes, that was what I meant
Reply
#7
Have you tried:  python-3.5.4.exe /passive InstallAllUsers=1 PrependPath=1
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#8
(Nov-20-2017, 02:33 PM)sparkz_alot Wrote: Have you tried:  python-3.5.4.exe /passive InstallAllUsers=1 PrependPath=1

I can not use InstallAllUsers=1 flag because in cases where user has already Installed Python on local User profile then is installation aborted without any changes.

(Nov-20-2017, 04:16 PM)Erik Wrote:
(Nov-20-2017, 02:33 PM)sparkz_alot Wrote: Have you tried:  python-3.5.4.exe /passive InstallAllUsers=1 PrependPath=1

I can not use InstallAllUsers=1 flag because in cases where user has already Installed Python on local User profile then is installation aborted without any changes.

I have test it but there is no effect work same like without InstallAllUsers=1. With flag is Python path inserted into system variables instead of user variables but only by manual. Still not work in /passive mod
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python installation for old MacOS Yonix 1 488 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 829 Jul-15-2023, 11:32 AM
Last Post: snippsat
  File path by adding various variables Mishal0488 2 1,027 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  How to see the date of installation of python modules. newbieAuggie2019 4 1,574 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 951 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  python installation/running inside singularity container erdemath 2 1,775 Sep-21-2022, 08:13 AM
Last Post: erdemath
Question Python V3.11 Installation Help Danno 2 1,094 Aug-11-2022, 02:30 AM
Last Post: Danno
Bug how can i adding custom path for saving the zip_file demonvictor 1 1,473 Oct-09-2021, 09:37 AM
Last Post: snippsat
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,205 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Portable installation of Python possible? pstein 2 3,078 Nov-15-2020, 12:14 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020