private bool UninstallApp(string packageFamilyName, string targetDevice) { // Connection info var connectInfo = new BuildDeployPortal.ConnectInfo(targetDevice, BuildDeployPrefs.DeviceUser, BuildDeployPrefs.DevicePassword); // Kick off the install Debug.Log("Uninstall build: " + targetDevice); return(BuildDeployPortal.UninstallApp(packageFamilyName, connectInfo)); }
private bool InstallApp(string buildPath, string appName, string targetDevice) { // Get the appx path FileInfo[] files = (new DirectoryInfo(buildPath)).GetFiles("*.appx"); if (files.Length == 0) { Debug.LogError("No APPX found in folder build folder (" + buildPath + ")"); return(false); } // Connection info var connectInfo = new BuildDeployPortal.ConnectInfo(targetDevice, BuildDeployPrefs.DeviceUser, BuildDeployPrefs.DevicePassword); // Kick off the install Debug.Log("Installing build on: " + targetDevice); return(BuildDeployPortal.InstallApp(files[0].FullName, connectInfo)); }
private bool UninstallApp(string appName, string targetDevice) { // Connection info var connectInfo = new BuildDeployPortal.ConnectInfo(targetDevice, deviceUser, devicePassword); // Kick off the install Debug.Log("Uninstall build: " + targetDevice); return BuildDeployPortal.UninstallApp(appName, connectInfo); }
private bool InstallApp(string buildPath, string appName, string targetDevice) { // Get the appx path FileInfo[] files = (new DirectoryInfo(buildPath)).GetFiles("*.appx"); if (files.Length == 0) { Debug.LogError("No APPX found in folder build folder (" + buildPath + ")"); return false; } // Connection info var connectInfo = new BuildDeployPortal.ConnectInfo(targetDevice, deviceUser, devicePassword); // Kick off the install Debug.Log("Installing build on: " + targetDevice); return BuildDeployPortal.InstallApp(files[0].FullName, connectInfo); }