protz / ocaml-installer

The official windows installer (built using NSIS) for OCaml
http://protz.github.com/ocaml-installer/
GNU General Public License v3.0
66 stars 11 forks source link

cygwin installer part requests admin access #30

Open bartvdo opened 9 years ago

bartvdo commented 9 years ago

The default settings for the cygwin installer depends on administrative privileges. So when it is installed without those privileges the cygwin part won't be installed.

Could you document how to connect it to an exisiting or later installed cygwin and/or make it install without privilege needs (if wanted).

protz commented 9 years ago

I don't think you can install cygwin without admin privileges, can you?

The webpage gives you the list of packages that you have to make sure are there, if you already have cygwin installed. If the information is not visible enough, let me know and I'll update the website.

Thanks,

jonathan

On 5/27/2015 5:20 AM, Bart van der Ouderaa wrote:

The default settings for the cygwin installer depends on administrative privileges. So when it is installed without those privileges the cygwin part won't be installed.

Could you document how to connect it to an exisiting or later installed cygwin and/or make it install without privilege needs (if wanted).

— Reply to this email directly or view it on GitHub https://github.com/protz/ocaml-installer/issues/30.

bartvdo commented 9 years ago

I'll have a look. But yes, you can install without admin privileges! I did it see Cygwin Installation

On Windows Vista and later, setupx.exe will check by default if it runs with administrative privileges and, if not, will try to elevate the process. If you want to avoid this behaviour and install under an unprivileged account just for your own usage, run setupx.exe with the --no-admin option.

protz commented 9 years ago

Let's say, then, that this is a feature wish, and that I would take a patch if you knew how to figure out the current privilege in the NSIS script and call setup.exe accordingly.

Honestly, I think that setup.exe should just do "the right thing" if it can't elevate privileges...

On 5/28/2015 12:06 AM, Bart van der Ouderaa wrote:

I'll have a look. But yes, you can install without admin privileges! I did it see Cygwin Installation https://cygwin.com/install.html

On Windows Vista and later, setupx.exe will check by default if it
runs with administrative privileges and, if not, will try to
elevate the process.
If you want to avoid this behaviour and install under an
unprivileged account just for your own usage, run setupx.exe with
the --no-admin option.

— Reply to this email directly or view it on GitHub https://github.com/protz/ocaml-installer/issues/30#issuecomment-106202957.