‎05-21-2013 10:04 PM
What are valid values for CreateNewWizardHost (a parameter in the GProvider INI file) other than Build and Source?
‎05-22-2013 09:15 AM
Hey Jack,
As far as I know, these are the only two supported values. Is there somewhere else you'd like to add a New Wizard host that isn't supported by either Build or Source?
David
‎05-22-2013 10:56 AM
David_L wrote:
Is there somewhere else you'd like to add a New Wizard host that isn't supported by either Build or Source?
This is part of a larger investigation on the capabilities of Project Providers and the ability to create more 'fundamental' ProjectItem types -- more details here: https://decibel.ni.com/content/thread/17342
A third option that I'm interested in is Root (in addition to Build and Source) that could hook into the New... menu of the Root:
‎05-23-2013 12:37 AM
I just found out that "System" is also a valid value for CreateNewWizardHost. It seems to be adding an entry at the top-level as in your screenshot above, but exactly how the item added behaves I am not sure. I will try to find more information on this, meanwhile I thought I will share this and see if this works for your use case. Hope this helps.
Sumedha
‎05-23-2013 11:32 AM
Sumedha wrote:
I just found out that "System" is also a valid value for CreateNewWizardHost. It seems to be adding an entry at the top-level as in your screenshot above, but exactly how the item added behaves I am not sure. I will try to find more information on this, meanwhile I thought I will share this and see if this works for your use case. Hope this helps.
Specifying CreateNewWizardHost=System looked quite promising and got me super-excited:
And then, the new item was created inside My Computer 😞
Any ideas on how to get a "top-level" or "root-level" item such as this?
By the way, even though it's one step forward one step back, I'm excited to be building on this tribal knowledge of Providers and *really* appreciative for the research you're doing.
‎05-24-2013 07:17 AM
JackDunaway wrote:
And then, the new item was created inside My Computer 😞
Agh! Sorry about that.
JackDunaway wrote:
Any ideas on how to get a "top-level" or "root-level" item such as this?
We haven't yet found a way to do this using providers, but we will keep investigating and let you know if we find anything.
JackDunaway wrote:
By the way, even though it's one step forward one step back, I'm excited to be building on this tribal knowledge of Providers and *really* appreciative for the research you're doing.
Likewise! Thanks for all your work and research with the providers, it's helped us expand our knowledge of the framework as well
Related to your original question, another value that we found is valid for CreateNewWizardHost key is "FileNewDialog".
All credit goes to David for concluding correctly that this must be adding a new item to the File -> New Dialog.
Sumedha
‎05-24-2013 09:24 AM
Sumedha wrote:
another value that we found is valid for CreateNewWizardHost key is "FileNewDialog".
All credit goes to David for concluding correctly that this must be adding a new item to the File -> New Dialog.
That's fantastic! You've doubled the number of known values in a few days! 🙂
CreateNewWizardHost can be: Source, Build, System, or FileNewDialog