For anyone who's working with the API, I'd like to pass along this very excellent tidbit that I stumbled over and found extremely useful. Mucho gracias to those who created it.
code.msdn.microsoft.com/Sample-SCCM-Application-376c9124/view/Discussions
I'm having a hard time getting the method to create App-V deployment types working, though. I've been through all the documentation but there's something I'm not setting up right. Would someone be kind enough to have a peek at what I'm doing and correct me or post a code example of their own?
public static DeploymentType CreateAppvDeploymentType(string title, string manifestFile, string contentFolder) { AppvInstaller installer = new AppvInstaller(); installer.ManifestFile = manifestFile; installer.RequireLoad = false; // Only add content if specified and exists. if (Directory.Exists(contentFolder) == true) { Content content = ContentImporter.CreateContentFromFolder(contentFolder); if (content != null) { content.OnFastNetwork = ContentHandlingMode.DownloadContentForStreaming; content.OnSlowNetwork = ContentHandlingMode.DoNothing; content.FallbackToUnprotectedDP = true; content.PinOnClient = false; content.Location = contentFolder; ContentFile file = new ContentFile(); file.Name = manifestFile; content.Files.Add(file); installer.Contents.Add(content); } } DeploymentType dt = new DeploymentType(installer, AppvInstaller.TechnologyId, NativeHostingTechnology.TechnologyId); dt.Title = title; return dt; }