changing default project properties params

Hello,
Like one cud change
new files in the directory
$(ProgramFiles)\Microsoft Visual Studio 8\VC\vcprojectitems\

is there is file where i cud change the defaults of project properties..

for ex. I want to make the default working directory for every project created as
$(TargetDir) rather than the default blank
similarly other parameters as well.

thank you.



Answer this question

changing default project properties params

  • Bjoern

    Yes, it's possible but it's not as easy :)

    Wizards UI is all HTML and wizard actions are all JScript. The HTML and script are both in the VC++ install directory and you can modify them to look and do whatever you want. In fact, you can also create new wizards and add them to the list.

    Here's a quick pointer for how to change the Win32 console wizard, for example:

    • The script for the wizard is located at: $(ProgramFiles)\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\scripts\1033\default.js
    • You can take a look at the OnFinish() function and modify it to set the properties you want on the project that's being created.
    • default.js references common wizard functions that are shared by all wizards and are stored in $(ProgramFiles)\Microsoft Visual Studio 8\VC\VCWizards\1033\common.js; so you'll need to take a look at that file as well

    That's all really. It's not easy to decipher all the jscript but it's certainly possible.

    Thanks.



  • astrogene1000

    Went thru the .js and got lost !! I guess it was expected.

    It would be great if you use some .ini kind of file for overiding default settings. It will surely help a user like me to control what the wizard spits out.

  • changing default project properties params