TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
tina_gregg
NA
1
0
Programatically Access Deployment Project Launch Conditions Editor
Oct 2 2003 3:37 PM
Hi! I'm currently trying to write an add-in that will add a deployment project to the current solution and set up some default launch conditions and project outputs and such. I've figured out how to create the new project, and add a registry search, but i can't figure out how to change the properties on the new registry search to set an actual registry key and value to check. Can anyone help? This has stumped me for the past two days. I've provided my current code below. Thanks! string solnName = applicationObject.Solution.FullName; string solnPath = applicationObject.Solution.FullName; int remInd = solnName.LastIndexOf(@"\"); solnName = solnName.Remove(0, remInd + 1); solnPath = solnPath.Remove(remInd + 1, solnPath.Length - (remInd + 1)); string setupTemplate = @"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\Deployment\VsdProjects\Setup.vdproj"; Project myNewProj = applicationObject.Solution.AddFromTemplate(setupTemplate, solnPath + "DeploymentApp", "DeploymentApp.vdproj", false); applicationObject.Solution.SaveAs(applicationObject.Solution.FullName); applicationObject.ExecuteCommand("View.LaunchConditions", ""); applicationObject.Windows.Item("Launch Conditions (DeploymentApp)").Activate(); applicationObject.ExecuteCommand("Action.AddRegistryLaunchCondition", ""); //Now what do i do to change the properties of this new launch condition and actually set the registry key and value to check?
Reply
Answers (
0
)
determine when user comes online for messenger
GUI layout changes when I switch computers