I installed PGF but are unable to compile the following document:
\documentclass[10pt]{article}
\usepackage{pgf,tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) --(1,2);
\end{tikzpicture}
\end{document}
This is the console output:
initexmf.exe: Windows API error 5: Access is denied.
initexmf.exe: Data: C:\
texify.exe: The operation failed for some reason.
texify.exe: Data: C:\Program Files\MiKTeX 2.9\miktex\bin\initexmf.exe
What to do?
Access is denied
might be caused by that. Did you tried to reboot and try it again? Under Windows this is always good advice.initexmf --admin --update-fndb
in the console as mentioned in the link.