[VS Addin] Don't fail installation if win32 platform is missing.

It seems that it is possible to install VS with only
x86 and not win32 platforms.  In this case we can't
install the PPAPI platform (as it is a clone of win32)
but we should probably not fail the installation

Also, handle errors from create_ppapi_platform more gracefully.


Review URL: https://codereview.chromium.org/19990004

git-svn-id: https://nativeclient-sdk.googlecode.com/svn/trunk/src@1564 050acbb0-2703-11df-ab0a-9f3f633ae91d
diff --git a/InstallerResources/create_ppapi_platform.py b/InstallerResources/create_ppapi_platform.py
index 093dfb8..5264133 100644
--- a/InstallerResources/create_ppapi_platform.py
+++ b/InstallerResources/create_ppapi_platform.py
@@ -178,7 +178,9 @@
   patch_dir = os.path.join(SCRIPT_DIR, 'PPAPI_Patch')
   if not os.path.exists(win32_dir):
-    raise Error('Win32 MSBuild directory not found: %s' % win32_dir)
+    print 'Win32 MSBuild directory not found: %s' % win32_dir
+    print 'Skipping PPAPI platform install.'
+    return
   print "Cloning Win32 platform from: %s"  % win32_dir
diff --git a/InstallerResources/install.py b/InstallerResources/install.py
index 649e823..e67c426 100644
--- a/InstallerResources/install.py
+++ b/InstallerResources/install.py
@@ -316,7 +316,7 @@
   rtn = 1
     rtn = main()
-  except InstallError as e:
+  except (create_ppapi_platform.Error, InstallError) as e:
     print e
   except shutil.Error as e: