Page 1 of 1

Where are custom project templates?

Posted: Wed Jan 22, 2014 8:49 pm
by Fred
Hello,
I have saved some of my projects as templates.
Now I should update one of them.
I suppose, I can just update the files by overwriting them with the new versions.
In which directory are they saved (Win 8.1)?
Thanks,
Fred

Re: Where are custom project templates?

Posted: Wed Jan 22, 2014 9:00 pm
by eranif
Under windows it will be saved under CODELITE_INSTALL_DIR\templates\projects

Eran

Re: Where are custom project templates?

Posted: Wed Jan 22, 2014 10:48 pm
by Fred
Thank you for your quick reply, Eran.

The project's name is "simple", so I expect it in the directory
C:\Program Files (x86)\CodeLite\templates\projects\simple
But I do not see this subdir of projects in the Windows Explorer and cannot open it in the console.
When I search a specific file of the project with Agent Ransack, it is found in the subdir simple. But I cannot open it.
Also I can use this template in CodeLite (forgot to say, version 5.3) without problems.
So it is existing, but where? Perhaps redirected by the system? Seems to be one of the "cool features" of Win 8.1.

In Windows since Vista the Program Files directory is special: You can write to it only with admin rights, e.g. when installing.
The user has no real admin rights by default, even if s/he is a member of the administrators. Must be "elevated" by the UAC.
So I think, it would be better to put application files _after_ the installation to APPDATA rsp. user's documents.

How do you determine the directory to put the user templates in your code? Perhaps I can find out with this information what's going on.

Regards,
Fred

Re: Where are custom project templates?

Posted: Wed Jan 22, 2014 11:51 pm
by Fred
Hello,
I found it redirected to:
C:\Users\Fred\AppData\Local\VirtualStore\Program Files (x86)\CodeLite\templates\projects\simple
Seems to be a "feature" since Win 7.

I think, it would be a good idea to put the user's templates into the user's %APPDATA% folder or into public documents.

Regards,
Fred