# Installing subfig package on MikTex 2.9 [closed]

I'm new to latex and trying to install the subfig package from ctan as I can't use the MikTex package manager from where I'm working. I'm using MikTex 2.9 (with WinEdt). I've 'run' latex on the dtx and ins files to get the sty file. I've placed the sty file in

``````C:\Program Files (x86)\MiKTeX 2.9\tex\latex\subfig
``````

and the pdf doc file in

`````` C:\Program Files (x86)\MiKTeX 2.9\doc\subfig
``````

The doc file loads fine when I double click on the package name in winedt. But when I run the compiler it gives a latex error saying

``````! LaTeX Error: File `subfig.sty' not found.
``````

I'm brand new to latex and from looking around I can see a lot of people putting custom packages into some kind of extra root directory but I was assuming as this can normally be downloaded from the package manager and is well accepted by MikTex that they could just be placed in the main C:// drive.

Can someone help me get this sorted. I'd have thought it should be relatively straightforward - but I can't see it for the life of me!

-
Did you run `refresh FNDB`? – Harish Kumar Dec 7 '12 at 15:02
Yes I did! Sorry should have mentioned that. I went to Maintenance -> settings and clicked refresh FNDB. – George Wilson Dec 7 '12 at 15:05
Is there a difference between maintenance and maintenance admin though? – George Wilson Dec 7 '12 at 15:09
– texenthusiast Dec 7 '12 at 15:17
If you put files in the main tree (which is not a good idea as they can get overwritten at updates) you must update the FNDB in admin mode. But better is to create a local repository and use the package manager to install the files from this repository. See my answer here tex.stackexchange.com/questions/16669/…. – Ulrike Fischer Dec 7 '12 at 16:08