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

The default installation directory is forbidden to access in win10-64 #32

Closed
349516385 opened this issue Jan 10, 2019 · 6 comments
Closed

Comments

@349516385
Copy link

I use vs2017 to build this project,and it report an error saying that "C:\Program Files\VSG" is forbidden to write (almost like this).

After I change the installation directory to other non-system directory ,everything is OK.

@vsg-dev
Copy link
Owner

vsg-dev commented Jan 10, 2019

Have you tried installing with admin privileges?

@tomhog, could you chip in what is normal under Windows w.r.t default install directories and what to expect.

Under linux if you want to install to the system directories you have to install as super user. This is normal, so expecting the same under Windows is OK too. So it might just be a cause of documenting the standard way.

@DieSlower
Copy link

DieSlower commented Jan 10, 2019 via email

@tomhog
Copy link
Contributor

tomhog commented Jan 10, 2019

Hi

As mentioned above you need to run visual studio as admin to use the default install directory of Program Files/...

Alternatively you can set a custom install path if you add the following argument to your CMake command
-DCMAKE_INSTALL_PREFIX=C:\My\Custom/installpath

Then you can install it wherever you like

@robertosfield
Copy link
Collaborator

robertosfield commented Jan 10, 2019 via email

@tomhog
Copy link
Contributor

tomhog commented Jan 10, 2019 via email

@vsg-dev
Copy link
Owner

vsg-dev commented Jan 12, 2019

I'm closing this issue as it's really a "read the existing install docs" issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants