Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: clickonce/clickonce_bootstrap.cs

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « clickonce/build.scons ('k') | clickonce/clickonce_bootstrap.manifest » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: clickonce/clickonce_bootstrap.cs
diff --git a/clickonce/clickonce_bootstrap.cs b/clickonce/clickonce_bootstrap.cs
deleted file mode 100644
index 4a48eb1473de8774445b0734c636f6f6ff33ac5d..0000000000000000000000000000000000000000
--- a/clickonce/clickonce_bootstrap.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2008-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-// C# stub that allows a ClickOnce install of an Omaha application.
-
-using System;
-using System.Deployment.Application;
-using System.Diagnostics;
-using System.IO;
-using System.Security;
-using System.Security.Permissions;
-using System.Windows.Forms;
-using System.Web;
-
-namespace ClickOnceBootstrap {
- static class ClickOnceEntry {
- [STAThread]
- static void Main() {
- try {
- // Try to get FullTrust. Will throw if we cannot get it.
- new PermissionSet(PermissionState.Unrestricted).Demand();
-
- if (!ApplicationDeployment.IsNetworkDeployed) {
- // Only support running via ClickOnce.
- return;
- }
-
- string query_string =
- ApplicationDeployment.CurrentDeployment.ActivationUri.Query;
- if (query_string.Length < 2) {
- // Query string will be of the form "?xyz=abc". Should have atleast
- // a question mark and atleast a single character to qualify as a
- // valid query string. Hence the check against "2".
- return;
- }
- // Remove the '?' prefix.
- query_string = query_string.Substring(1);
- query_string = HttpUtility.UrlDecode(query_string);
- string setup_path = Path.Combine(Application.StartupPath,
- "GoogleUpdateSetup.exe");
-
- ProcessStartInfo psi = new ProcessStartInfo();
- psi.FileName = setup_path;
- psi.Verb = "open";
- psi.Arguments = "/installsource clickonce /install \"";
- psi.Arguments += query_string;
- psi.Arguments += "\"";
- Process.Start(psi);
- } catch(Exception e) {
- MessageBox.Show(e.ToString());
- return;
- }
-
- return;
- }
- }
-}
-
« no previous file with comments | « clickonce/build.scons ('k') | clickonce/clickonce_bootstrap.manifest » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698