openssl / project

Tracking of project related issues
1 stars 0 forks source link

Implement check in installer ensure admin rights, and warn about need for non-user writeable dir #551

Open nhorman opened 2 months ago

nhorman commented 2 months ago

we need to ensure the following:

I think the approach here is pretty straight forward.

NSIS offers support to check if we are running as admin: https://nsis.sourceforge.io/Check_if_the_current_user_is_an_Administrator

So we can add that in to the installer script

NSIS also supports the IsWriteable macro to check the permissions on a directory https://nsis.sourceforge.io/IsWritable

so we should be able to check if the target directory is only system writeable

mattcaswell commented 2 months ago

Including checking the config file is not user writeable