Where are custom project templates?

CodeLite installation/troubleshooting forum
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Where are custom project templates?

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Where are custom project templates?

Post by eranif »

Under windows it will be saved under CODELITE_INSTALL_DIR\templates\projects

Eran
Make sure you have read the HOW TO POST thread
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Where are custom project templates?

Post 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
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Where are custom project templates?

Post 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
Post Reply