Hello.
Thanks for the "project.RemoveBuildTarget" function, I'll try it.
I think I found why all files are unselected in the new targets we create (yes, I have the same problem).
If you have a look at the ScriptedWizard's source code, you'll see that the "SetupProject" function is called after all files are added to all build targets. It is also why the "default" target is created (I think).
If you want files to be selected with all targets, you must create your targets before the "GetFiles" function is called, for example, when leaving the last wizard page. But the problem is : How to get the "project" variable to do this ?