Click here to Skip to main content
15,921,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting Access denied issue on installing windows service
Error is as below:

'C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.InstallLog' is denied. on installing windows service.

What I have tried:

Tried installing windows service via command prompt as below.

'C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.InstallLog' is denied. on installing windows service.
Opened command prompt and then added
cd C:\Windows\Microsoft.NET\Framework\v2.0.50727\

Then added below command
installutil.exe "D:\New folder (5)\PDF_Data_Tool.exe"
Posted
Updated 20-Apr-16 20:32pm

you need to be running the install as Administrator - you can do this for a command prompt by right clicking it on the menu and selecting 'Run As Administrator'
 
Share this answer
 
Installing a service requires you to issue your command in elevated mode, if UAC is activated.

In the process you describe, replace "Opened command prompt" with "Right-click on command prompt icon, and click Run as administrator".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900