diff --git a/build.proj b/build.proj
index 6dd3d0737bf8..3cb50135d214 100644
--- a/build.proj
+++ b/build.proj
@@ -51,7 +51,6 @@
-
@@ -161,14 +153,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/setup-powershellget/Setup/CustomAction.cs b/setup-powershellget/Setup/CustomAction.cs
deleted file mode 100644
index 916f0a70211e..000000000000
--- a/setup-powershellget/Setup/CustomAction.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// 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.
-// ----------------------------------------------------------------------------------
-
-namespace Microsoft.WindowsAzure.Setup
-{
- using System;
- using System.IO;
- using Deployment.WindowsInstaller;
- using System.Threading;
-
- public class CustomAction
- {
- // The exception object which will store (if) exception which is occured in our sta thread
- private static Exception _STAThreadException;
-
- private static uint[] powerShellDefaultColorTable = new uint[]
- {
- 0x0, 0x800000, 0x8000, 0x808000, 0x80, 0x562401, 0xF0EDEE, 0xC0C0C0,
- 0x808080, 0xFF0000, 0xFF00, 0xFFFF00, 0xFF, 0xFF00FF, 0xFFFF, 0xFFFFFF
- };
-
- // Method which contains our custom action behaviour
- private static void RunSTAThread(object sessionObject)
- {
- try
- {
- Session session = sessionObject as Session;
-
- string powerShellShortcutPath = session.CustomActionData["ShortcutPath"];
- string powerShellDefaultShortcutPath = session.CustomActionData["DefaultShortcutPath"];
-
- if (!File.Exists(powerShellShortcutPath))
- {
- _STAThreadException = new Exception(string.Format("UpdatePSShortcut: file {0} does not exist", powerShellShortcutPath));
- return;
- }
-
- ShellLink powerShellShellLink = new ShellLink(powerShellShortcutPath);
- if (File.Exists(powerShellDefaultShortcutPath))
- {
- session.Log("UpdatePSShortcut: found default Windows PowerShell shortcut at {0}", powerShellDefaultShortcutPath);
- ShellLink powerShellDefaultShellLink = new ShellLink(powerShellDefaultShortcutPath);
- powerShellShellLink.ConsoleProperties = powerShellDefaultShellLink.ConsoleProperties;
- }
- else
- {
- session.Log("UpdatePSShortcut: default Windows PowerShell shortcut does not exist at {0}", powerShellDefaultShortcutPath);
-
- for (int i = 0; i < powerShellShellLink.ConsoleProperties.ColorTable.Length; i++)
- {
- powerShellShellLink.ConsoleProperties.ColorTable[i] = powerShellDefaultColorTable[i];
- }
- powerShellShellLink.AutoPosition = true;
- powerShellShellLink.CommandHistoryBufferSize = 50;
- powerShellShellLink.CommandHistoryBufferCount = 4;
-
- powerShellShellLink.InsertMode = true;
-
- powerShellShellLink.PopUpBackgroundColor = 15;
- powerShellShellLink.PopUpTextColor = 3;
-
- powerShellShellLink.QuickEditMode = true;
-
- powerShellShellLink.ScreenBackgroundColor = 5;
- powerShellShellLink.ScreenTextColor = 6;
-
- powerShellShellLink.SetScreenBufferSize(120, 3000);
- powerShellShellLink.SetWindowSize(120, 50);
- }
- powerShellShellLink.SetFont();
- powerShellShellLink.Save();
- session.Log("UpdatePSShortcut: success");
- }
- catch (Exception ex)
- {
- _STAThreadException = new Exception(string.Format("UpdatePSShortcut: failed with exception {0}", ex.Message));
- }
- }
-
- [CustomAction]
- public static ActionResult UpdatePSShortcut(Session session)
- {
- Thread staThread = new Thread(RunSTAThread);
- staThread.SetApartmentState(ApartmentState.STA);
- staThread.Start(session);
- // Wait for the new thread to finish its operations
- staThread.Join();
-
- // If there is any exception in the new thread pass it to the installer
- if (_STAThreadException != null)
- {
- session.Log(_STAThreadException.Message);
- return ActionResult.Failure;
- }
-
- return ActionResult.Success;
- }
- }
-}
\ No newline at end of file
diff --git a/setup-powershellget/Setup/Properties/AssemblyInfo.cs b/setup-powershellget/Setup/Properties/AssemblyInfo.cs
deleted file mode 100644
index 6d3ae6c5b4e0..000000000000
--- a/setup-powershellget/Setup/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// 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.
-// ----------------------------------------------------------------------------------
-
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Setup")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Setup")]
-[assembly: AssemblyCopyright("Copyright © Microsoft")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("f4aa30f2-d2ce-4aef-88ed-a048b771c272")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/setup-powershellget/Setup/Setup.csproj b/setup-powershellget/Setup/Setup.csproj
deleted file mode 100644
index 6a7a64f7c639..000000000000
--- a/setup-powershellget/Setup/Setup.csproj
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 8.0.30703
- 2.0
- {EA5BD11B-10B3-433D-A250-92AE76669D8D}
- Library
- Properties
- Microsoft.WindowsAzure.Setup
- Microsoft.WindowsAzure.Setup
- v4.5
- 512
- $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.CA.targets
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/setup-powershellget/Setup/ShellLink.cs b/setup-powershellget/Setup/ShellLink.cs
deleted file mode 100644
index 80144cca986d..000000000000
--- a/setup-powershellget/Setup/ShellLink.cs
+++ /dev/null
@@ -1,455 +0,0 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// 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.
-// ----------------------------------------------------------------------------------
-
-namespace Microsoft.WindowsAzure.Setup
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.IO;
- using System.Runtime.InteropServices;
- using System.Text;
-
- // IShellLink.ShowCmd fFlags
- [Flags]
- public enum ShowCmd
- {
- SW_SHOWNORMAL = 1,
- SW_SHOWMAXIMIZED = 3,
- SW_SHOWMINNOACTIVE = 7
- }
-
- // IShellLink.Resolve fFlags
- [Flags]
- public enum SLR_FLAGS
- {
- SLR_NO_UI = 0x1,
- SLR_ANY_MATCH = 0x2,
- SLR_UPDATE = 0x4,
- SLR_NOUPDATE = 0x8,
- SLR_NOSEARCH = 0x10,
- SLR_NOTRACK = 0x20,
- SLR_NOLINKINFO = 0x40,
- SLR_INVOKE_MSI = 0x80
- }
-
- // IShellLink.GetPath fFlags
- [Flags]
- public enum SLGP_FLAGS
- {
- SLGP_SHORTPATH = 0x1,
- SLGP_UNCPRIORITY = 0x2,
- SLGP_RAWPATH = 0x4
- }
-
- [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1305:FieldNamesMustNotUseHungarianNotation", Justification = "Matching COM Names")]
- [ComImport,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("000214F9-0000-0000-C000-000000000046")]
- public interface IShellLinkW
- {
- void GetPath(
- [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszFile,
- int cchMaxPath,
- out WIN32_FIND_DATAW pfd,
- SLGP_FLAGS fFlags);
-
- void GetIDList(
- out IntPtr ppidl);
-
- void SetIDList(
- IntPtr pidl);
-
- void GetDescription(
- [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszName,
- int cchMaxName);
-
- void SetDescription(
- [MarshalAs(UnmanagedType.LPWStr)] string pszName);
-
- void GetWorkingDirectory(
- [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszDir,
- int cchMaxPath);
-
- void SetWorkingDirectory(
- [MarshalAs(UnmanagedType.LPWStr)] string pszDir);
-
- void GetArguments(
- [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszArgs,
- int cchMaxPath);
-
- void SetArguments(
- [MarshalAs(UnmanagedType.LPWStr)] string pszArgs);
-
- void GetHotkey(
- out short pwHotkey);
-
- void SetHotkey(
- short wHotkey);
-
- void GetShowCmd(
- out int piShowCmd);
-
- void SetShowCmd(
- int iShowCmd);
-
- void GetIconLocation(
- [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszIconPath,
- int cchIconPath,
- out int piIcon);
-
- void SetIconLocation(
- [MarshalAs(UnmanagedType.LPWStr)] string pszIconPath,
- int iIcon);
-
- void SetRelativePath(
- [MarshalAs(UnmanagedType.LPWStr)] string pszPathRel,
- int dwReserved);
-
- void Resolve(
- IntPtr hwnd,
- SLR_FLAGS fFlags);
-
- void SetPath(
- [MarshalAs(UnmanagedType.LPWStr)] string pszFile);
- }
-
- [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1305:FieldNamesMustNotUseHungarianNotation", Justification = "Matching COM Names")]
- [ComImport,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("45E2b4AE-B1C3-11D0-B92F-00A0C90312E1")]
- public interface IShellLinkDataList
- {
- void AddDataBlock(
- IntPtr pDataBlock);
-
- void CopyDataBlock(
- uint dwSig,
- out IntPtr ppDataBlock);
-
- void RemoveDataBlock(
- uint dwSig);
-
- void GetFlags(
- out int dwFlags);
-
- void SetFlags(
- uint dwFlags);
- }
-
- [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1305:FieldNamesMustNotUseHungarianNotation", Justification = "Matching COM Names")]
- [ComImport,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("0000010B-0000-0000-C000-000000000046")]
- public interface IPersistFile
- {
- #region Methods inherited from IPersist
-
- void GetClassID(
- out Guid pClassID);
-
- #endregion
-
- [PreserveSig]
- int IsDirty();
-
- void Load(
- [MarshalAs(UnmanagedType.LPWStr)] string pszFileName,
- int dwMode);
-
- void Save(
- [MarshalAs(UnmanagedType.LPWStr)] string pszFileName,
- [MarshalAs(UnmanagedType.Bool)] bool fRemember);
-
- void SaveCompleted(
- [MarshalAs(UnmanagedType.LPWStr)] string pszFileName);
-
- void GetCurFile(
- out IntPtr ppszFileName);
- }
-
- // Win32 COORD
- [StructLayout(LayoutKind.Sequential)]
- public struct COORD
- {
- public short X;
- public short Y;
- }
-
- // IShellDataLink NT_CONSOLE_PROPS
- [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1305:FieldNamesMustNotUseHungarianNotation", Justification = "Matching Windows Struct Names")]
- [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1307:AccessibleFieldsMustBeginWithUpperCaseLetter", Justification = "Matching Windows Struct Names")]
- [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
- public struct NT_CONSOLE_PROPS
- {
- public int cbSize; // Size of this extra data block
- public uint dwSignature; // signature of this extra data block
- public ushort wFillAttribute; // fill attribute for console
- public ushort wPopupFillAttribute; // fill attribute for console popups
- public COORD dwScreenBufferSize; // screen buffer size for console
- public COORD dwWindowSize; // window size for console
- public COORD dwWindowOrigin; // window origin for console
- public int nFont;
- public int nInputBufferSize;
- public COORD dwFontSize;
- public uint uFontFamily;
- public uint uFontWeight;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
- public string FaceName;
- public uint uCursorSize;
- public bool bFullScreen;
- public bool bQuickEdit;
- public bool bInsertMode;
- public bool bAutoPosition;
- public uint uHistoryBufferSize;
- public uint uNumberOfHistoryBuffers;
- public bool bHistoryNoDup;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
- public uint[] ColorTable;
- }
-
- // WIN32_FIND_DATA
- [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1305:FieldNamesMustNotUseHungarianNotation", Justification = "Matching Windows Struct Names")]
- [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1307:AccessibleFieldsMustBeginWithUpperCaseLetter", Justification = "Matching Windows Struct Names")]
- public struct WIN32_FIND_DATAW
- {
- public int dwFileAttributes;
- public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime;
- public System.Runtime.InteropServices.ComTypes.FILETIME ftLastAccessTime;
- public System.Runtime.InteropServices.ComTypes.FILETIME ftLastWriteTime;
- public int nFileSizeHigh;
- public int nFileSizeLow;
- public int dwReserved0;
- public int dwReserved1;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAXPATH)]
- public string cFileName;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
- public string cAlternateFileName;
- private const int MAXPATH = 260;
- }
-
- public class ShellLink
- {
- private IShellLinkW shellLink;
- private NT_CONSOLE_PROPS consoleProperties;
-
- public ShellLink(string path)
- {
- this.shellLink = Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("00021401-0000-0000-C000-000000000046"))) as IShellLinkW;
- if (File.Exists(path))
- {
- IntPtr consoleProperties = IntPtr.Zero;
- ((IPersistFile)this.shellLink).Load(path, 0);
-
- try
- {
- ((IShellLinkDataList)this.shellLink).CopyDataBlock(0xA0000002, out consoleProperties);
- this.consoleProperties = (NT_CONSOLE_PROPS)Marshal.PtrToStructure(consoleProperties, typeof(NT_CONSOLE_PROPS));
- }
- catch (Exception)
- {
- }
- }
- else
- {
- ((IPersistFile)this.shellLink).Save(path, true);
- }
-
- // Initialize default Console Properties (TODO: Fix this bug too)
- if (this.consoleProperties.dwSignature != 0xA0000002)
- {
- this.consoleProperties = new NT_CONSOLE_PROPS();
- this.consoleProperties.cbSize = Marshal.SizeOf(this.consoleProperties);
- this.consoleProperties.dwSignature = 0xA0000002;
- this.consoleProperties.ColorTable = new uint[16];
- for (int i = 0; i < 16; i++)
- {
- this.consoleProperties.ColorTable[i] = 0xffffffff;
- }
- }
- }
-
- public IShellLinkW IShellLink
- {
- get { return this.shellLink; }
- }
-
- public string Path
- {
- get
- {
- StringBuilder sb = new StringBuilder(260);
- WIN32_FIND_DATAW pfd = new WIN32_FIND_DATAW();
- this.IShellLink.GetPath(sb, 260, out pfd, SLGP_FLAGS.SLGP_RAWPATH);
- return sb.ToString();
- }
- set
- {
- this.IShellLink.SetPath(value);
- }
- }
-
- public string Description
- {
- get
- {
- StringBuilder sb = new StringBuilder(2048);
- this.IShellLink.GetDescription(sb, 2048);
- return sb.ToString();
- }
- set { this.IShellLink.SetDescription(value); }
- }
-
- public string WorkingDirectory
- {
- get
- {
- StringBuilder sb = new StringBuilder(260);
- this.IShellLink.GetWorkingDirectory(sb, 260);
- return sb.ToString();
- }
- set { this.IShellLink.SetWorkingDirectory(value); }
- }
-
- public ShowCmd ShowCmd
- {
- get
- {
- int showCmd;
- this.IShellLink.GetShowCmd(out showCmd);
- return (ShowCmd)Enum.ToObject(typeof(ShowCmd), showCmd);
- }
- set
- {
- this.IShellLink.SetShowCmd((int)value);
- }
- }
-
- public NT_CONSOLE_PROPS ConsoleProperties
- {
- get { return this.consoleProperties; }
- set { this.consoleProperties = value; }
- }
-
- public bool QuickEditMode
- {
- get { return this.consoleProperties.bQuickEdit; }
- set { this.consoleProperties.bQuickEdit = value; }
- }
-
- public bool InsertMode
- {
- get { return this.consoleProperties.bInsertMode; }
- set { this.consoleProperties.bInsertMode = value; }
- }
-
- public bool AutoPosition
- {
- get { return this.consoleProperties.bAutoPosition; }
- set { this.consoleProperties.bAutoPosition = value; }
- }
-
- public uint CommandHistoryBufferSize
- {
- get { return this.consoleProperties.uHistoryBufferSize; }
- set { this.consoleProperties.uHistoryBufferSize = value; }
- }
-
- public uint CommandHistoryBufferCount
- {
- get { return this.consoleProperties.uNumberOfHistoryBuffers; }
- set { this.consoleProperties.uNumberOfHistoryBuffers = value; }
- }
-
- public byte ScreenBackgroundColor
- {
- set
- {
- this.consoleProperties.wFillAttribute &= 0x000f;
- this.consoleProperties.wFillAttribute += (ushort)(value << 4);
- }
- }
-
- public byte ScreenTextColor
- {
- set
- {
- this.consoleProperties.wFillAttribute &= 0x00f0;
- this.consoleProperties.wFillAttribute += value;
- }
- }
-
- public byte PopUpBackgroundColor
- {
- set
- {
- this.consoleProperties.wPopupFillAttribute &= 0x000f;
- this.consoleProperties.wPopupFillAttribute += (ushort)(value << 4);
- }
- }
-
- public byte PopUpTextColor
- {
- set
- {
- this.consoleProperties.wPopupFillAttribute &= 0x00f0;
- this.consoleProperties.wPopupFillAttribute += value;
- }
- }
-
- public void Save(string path)
- {
- this.SetConsoleProperties();
- ((IPersistFile)this.shellLink).Save(path, true);
- }
-
- public void Save()
- {
- this.SetConsoleProperties();
- ((IPersistFile)this.shellLink).Save(null, true);
- }
-
- public void SetScreenBufferSize(short x, short y)
- {
- COORD c = new COORD();
- c.X = x;
- c.Y = y;
- this.consoleProperties.dwScreenBufferSize = c;
- }
-
- public void SetWindowSize(short x, short y)
- {
- COORD c = new COORD();
- c.X = x;
- c.Y = y;
- this.consoleProperties.dwWindowSize = c;
- }
-
- public void SetFont()
- {
- this.consoleProperties.FaceName = "Lucida Console";
- this.consoleProperties.uFontFamily = 54;
- this.consoleProperties.uFontWeight = 400;
- this.consoleProperties.uCursorSize = 25;
- }
-
- // This does more than console colors
- private void SetConsoleProperties()
- {
- IntPtr consoleProperties = Marshal.AllocCoTaskMem(this.consoleProperties.cbSize);
- Marshal.StructureToPtr(this.consoleProperties, consoleProperties, true);
- ((IShellLinkDataList)this.shellLink).RemoveDataBlock(0xA0000002);
- ((IShellLinkDataList)this.shellLink).AddDataBlock(consoleProperties);
- }
- }
-}
\ No newline at end of file
diff --git a/setup-powershellget/Setup/ShortcutStartup.ps1 b/setup-powershellget/Setup/ShortcutStartup.ps1
deleted file mode 100644
index d5d622081e41..000000000000
--- a/setup-powershellget/Setup/ShortcutStartup.ps1
+++ /dev/null
@@ -1,109 +0,0 @@
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# 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.
-# ----------------------------------------------------------------------------------
-[CmdletBinding(DefaultParametersetName="none")]
-Param(
-[Parameter(Mandatory=$True, HelpMessage="Use Install parameter to install Azure modules from PowerShell Gallery.", ParameterSetName="install")]
-[switch]$Install,
-[Parameter(Mandatory=$True, HelpMessage="Use Uninstall parameter to uninstall Azure modules from PowerShell Gallery.", ParameterSetName="uninstall")]
-[switch]$Uninstall
-)
-
-function EnsureRegistryPath
-{
- $originalpaths = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PSModulePath).PSModulePath
- if($originalpaths.Contains("$env:ProgramFiles\WindowsPowerShell\Modules") -eq $false)
- {
- Write-Output "Fixing PSModulePath"
- $newPath = "$originalpaths;$env:ProgramFiles\WindowsPowerShell\Modules"
- Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PSModulePath –Value $newPath
- }
- else
- {
- Write-Output "PSModulePath successfuly validated"
- }
-}
-
-$error.clear()
-try {
- if ($Install.IsPresent) {
- Write-Output @"
-
-Finalizing installation of Azure PowerShell.
-Installing AzureRM Modules from PowerShell Gallery.
-This may take some time...
-"@
- $env:PSModulePath = "$env:USERPROFILE\Documents\WindowsPowerShell\Modules;$env:ProgramFiles\WindowsPowerShell\Modules;$env:SystemRoot\system32\WindowsPowerShell\v1.0\Modules\"
-
- Import-Module PackageManagement
-
- $result = Get-PackageProvider -Name NuGet -ForceBootstrap
-
- Import-Module PowerShellGet
-
- $DefaultPSRepository = $env:DefaultPSRepository
- if ([string]::IsNullOrWhiteSpace($DefaultPSRepository))
- {
- $DefaultPSRepository = "PSGallery"
- }
-
- $_InstallationPolicy = (Get-PSRepository -Name $DefaultPSRepository).InstallationPolicy
- try
- {
- Set-PSRepository -Name $DefaultPSRepository -InstallationPolicy Trusted
-
- Install-Module AzureRM -Repository $DefaultPSRepository
- Write-Output "AzureRM $((Get-InstalledModule -Name AzureRM)[0].Version) installed..."
-
- Update-AzureRM -Repository $DefaultPSRepository
- } finally {
- # Clean up
- Set-PSRepository -Name $DefaultPSRepository -InstallationPolicy $_InstallationPolicy
- }
- }
- elseif ($Uninstall.IsPresent)
- {
- Write-Output @"
-
-Finalizing uninstallation of Azure PowerShell.
-This may take some time...
-"@
- $env:PSModulePath = "$env:USERPROFILE\Documents\WindowsPowerShell\Modules;$env:ProgramFiles\WindowsPowerShell\Modules;$env:SystemRoot\system32\WindowsPowerShell\v1.0\Modules\"
-
- Uninstall-AzureRM
- Uninstall-Module -Name AzureRM -Confirm:$false -Force
- }
- else
- {
- cd c:\
- $welcomeMessage = @"
-For a list of all Azure RM cmdlets type 'help azurerm'.
-
-To start using Azure RM login via Login-AzureRmAccount cmdlet.
-To switch between subscriptions use Set-AzureRmContext.
-For more details, see http://aka.ms/azps-getting-started.
-
-To use Azure Service Management cmdlets please execute the following cmdlet:
- Install-Module Azure
-"@
- Write-Output $welcomeMessage
- }
-}
-catch
-{
-Write-Output "An error occured during installation."
-Write-Output $error
-Write-Output "Press any key..."
-$key = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
-}
-
diff --git a/setup-powershellget/azurecmd.wxs b/setup-powershellget/azurecmd.wxs
deleted file mode 100644
index bb0eea44a684..000000000000
--- a/setup-powershellget/azurecmd.wxs
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- < "5.0")]]>
-
-
-
-
-
- Installed OR NETFRAMEWORK40FULL OR NETFRAMEWORK40CLIENT
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- NOT Installed
- NOT Installed
- NOT Installed
- NOT Installed
- (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")
-
-
-
-
-
-
-
-
diff --git a/setup-powershellget/bin/iisnode.dll b/setup-powershellget/bin/iisnode.dll
deleted file mode 100644
index 136b447b9b67..000000000000
Binary files a/setup-powershellget/bin/iisnode.dll and /dev/null differ
diff --git a/setup-powershellget/bin/iisnode_schema.xml b/setup-powershellget/bin/iisnode_schema.xml
deleted file mode 100644
index 56ad644194ba..000000000000
--- a/setup-powershellget/bin/iisnode_schema.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/setup-powershellget/media/GettingStarted.url b/setup-powershellget/media/GettingStarted.url
deleted file mode 100644
index cbd76c97d341..000000000000
--- a/setup-powershellget/media/GettingStarted.url
+++ /dev/null
@@ -1,5 +0,0 @@
-[{000214A0-0000-0000-C000-000000000046}]
-Prop3=19,2
-[InternetShortcut]
-URL=http://go.microsoft.com/?linkid=9791397
-IDList=
diff --git a/setup-powershellget/media/License.rtf b/setup-powershellget/media/License.rtf
deleted file mode 100644
index fe4ca72a0de0..000000000000
--- a/setup-powershellget/media/License.rtf
+++ /dev/null
@@ -1,213 +0,0 @@
-{\rtf1\ansi\ansicpg936\deff0\nouicompat\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
-{\colortbl ;\red0\green0\blue255;}
-{\*\generator Riched20 6.3.9600}\viewkind4\uc1
-\pard\sl240\slmult1\f0\fs20\lang9 MICROSOFT SOFTWARE LICENSE TERMS\par
-\par
-MICROSOFT AZURE POWERSHELL \par
-\par
-These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any.\par
-\par
-BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.\par
-\par
-\par
------------------START OF LICENSE--------------------------\par
-\par
- Apache License\par
- Version 2.0, January 2004\par
- {{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/ }}{\fldrslt{http://www.apache.org/licenses/\ul0\cf0}}}}\f0\fs20\par
-\par
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\par
-\par
- 1. Definitions.\par
-\par
- "License" shall mean the terms and conditions for use, reproduction,\par
- and distribution as defined by Sections 1 through 9 of this document.\par
-\par
- "Licensor" shall mean the copyright owner or entity authorized by\par
- the copyright owner that is granting the License.\par
-\par
- "Legal Entity" shall mean the union of the acting entity and all\par
- other entities that control, are controlled by, or are under common\par
- control with that entity. For the purposes of this definition,\par
- "control" means (i) the power, direct or indirect, to cause the\par
- direction or management of such entity, whether by contract or\par
- otherwise, or (ii) ownership of fifty percent (50%) or more of the\par
- outstanding shares, or (iii) beneficial ownership of such entity.\par
-\par
- "You" (or "Your") shall mean an individual or Legal Entity\par
- exercising permissions granted by this License.\par
-\par
- "Source" form shall mean the preferred form for making modifications,\par
- including but not limited to software source code, documentation\par
- source, and configuration files.\par
-\par
- "Object" form shall mean any form resulting from mechanical\par
- transformation or translation of a Source form, including but\par
- not limited to compiled object code, generated documentation,\par
- and conversions to other media types.\par
-\par
- "Work" shall mean the work of authorship, whether in Source or\par
- Object form, made available under the License, as indicated by a\par
- copyright notice that is included in or attached to the work\par
- (an example is provided in the Appendix below).\par
-\par
- "Derivative Works" shall mean any work, whether in Source or Object\par
- form, that is based on (or derived from) the Work and for which the\par
- editorial revisions, annotations, elaborations, or other modifications\par
- represent, as a whole, an original work of authorship. For the purposes\par
- of this License, Derivative Works shall not include works that remain\par
- separable from, or merely link (or bind by name) to the interfaces of,\par
- the Work and Derivative Works thereof.\par
-\par
- "Contribution" shall mean any work of authorship, including\par
- the original version of the Work and any modifications or additions\par
- to that Work or Derivative Works thereof, that is intentionally\par
- submitted to Licensor for inclusion in the Work by the copyright owner\par
- or by an individual or Legal Entity authorized to submit on behalf of\par
- the copyright owner. For the purposes of this definition, "submitted"\par
- means any form of electronic, verbal, or written communication sent\par
- to the Licensor or its representatives, including but not limited to\par
- communication on electronic mailing lists, source code control systems,\par
- and issue tracking systems that are managed by, or on behalf of, the\par
- Licensor for the purpose of discussing and improving the Work, but\par
- excluding communication that is conspicuously marked or otherwise\par
- designated in writing by the copyright owner as "Not a Contribution."\par
-\par
- "Contributor" shall mean Licensor and any individual or Legal Entity\par
- on behalf of whom a Contribution has been received by Licensor and\par
- subsequently incorporated within the Work.\par
-\par
- 2. Grant of Copyright License. Subject to the terms and conditions of\par
- this License, each Contributor hereby grants to You a perpetual,\par
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable\par
- copyright license to reproduce, prepare Derivative Works of,\par
- publicly display, publicly perform, sublicense, and distribute the\par
- Work and such Derivative Works in Source or Object form.\par
-\par
- 3. Grant of Patent License. Subject to the terms and conditions of\par
- this License, each Contributor hereby grants to You a perpetual,\par
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable\par
- (except as stated in this section) patent license to make, have made,\par
- use, offer to sell, sell, import, and otherwise transfer the Work,\par
- where such license applies only to those patent claims licensable\par
- by such Contributor that are necessarily infringed by their\par
- Contribution(s) alone or by combination of their Contribution(s)\par
- with the Work to which such Contribution(s) was submitted. If You\par
- institute patent litigation against any entity (including a\par
- cross-claim or counterclaim in a lawsuit) alleging that the Work\par
- or a Contribution incorporated within the Work constitutes direct\par
- or contributory patent infringement, then any patent licenses\par
- granted to You under this License for that Work shall terminate\par
- as of the date such litigation is filed.\par
-\par
- 4. Redistribution. You may reproduce and distribute copies of the\par
- Work or Derivative Works thereof in any medium, with or without\par
- modifications, and in Source or Object form, provided that You\par
- meet the following conditions:\par
-\par
- (a) You must give any other recipients of the Work or\par
- Derivative Works a copy of this License; and\par
-\par
- (b) You must cause any modified files to carry prominent notices\par
- stating that You changed the files; and\par
-\par
- (c) You must retain, in the Source form of any Derivative Works\par
- that You distribute, all copyright, patent, trademark, and\par
- attribution notices from the Source form of the Work,\par
- excluding those notices that do not pertain to any part of\par
- the Derivative Works; and\par
-\par
- (d) If the Work includes a "NOTICE" text file as part of its\par
- distribution, then any Derivative Works that You distribute must\par
- include a readable copy of the attribution notices contained\par
- within such NOTICE file, excluding those notices that do not\par
- pertain to any part of the Derivative Works, in at least one\par
- of the following places: within a NOTICE text file distributed\par
- as part of the Derivative Works; within the Source form or\par
- documentation, if provided along with the Derivative Works; or,\par
- within a display generated by the Derivative Works, if and\par
- wherever such third-party notices normally appear. The contents\par
- of the NOTICE file are for informational purposes only and\par
- do not modify the License. You may add Your own attribution\par
- notices within Derivative Works that You distribute, alongside\par
- or as an addendum to the NOTICE text from the Work, provided\par
- that such additional attribution notices cannot be construed\par
- as modifying the License.\par
-\par
- You may add Your own copyright statement to Your modifications and\par
- may provide additional or different license terms and conditions\par
- for use, reproduction, or distribution of Your modifications, or\par
- for any such Derivative Works as a whole, provided Your use,\par
- reproduction, and distribution of the Work otherwise complies with\par
- the conditions stated in this License.\par
-\par
- 5. Submission of Contributions. Unless You explicitly state otherwise,\par
- any Contribution intentionally submitted for inclusion in the Work\par
- by You to the Licensor shall be under the terms and conditions of\par
- this License, without any additional terms or conditions.\par
- Notwithstanding the above, nothing herein shall supersede or modify\par
- the terms of any separate license agreement you may have executed\par
- with Licensor regarding such Contributions.\par
-\par
- 6. Trademarks. This License does not grant permission to use the trade\par
- names, trademarks, service marks, or product names of the Licensor,\par
- except as required for reasonable and customary use in describing the\par
- origin of the Work and reproducing the content of the NOTICE file.\par
-\par
- 7. Disclaimer of Warranty. Unless required by applicable law or\par
- agreed to in writing, Licensor provides the Work (and each\par
- Contributor provides its Contributions) on an "AS IS" BASIS,\par
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\par
- implied, including, without limitation, any warranties or conditions\par
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\par
- PARTICULAR PURPOSE. You are solely responsible for determining the\par
- appropriateness of using or redistributing the Work and assume any\par
- risks associated with Your exercise of permissions under this License.\par
-\par
- 8. Limitation of Liability. In no event and under no legal theory,\par
- whether in tort (including negligence), contract, or otherwise,\par
- unless required by applicable law (such as deliberate and grossly\par
- negligent acts) or agreed to in writing, shall any Contributor be\par
- liable to You for damages, including any direct, indirect, special,\par
- incidental, or consequential damages of any character arising as a\par
- result of this License or out of the use or inability to use the\par
- Work (including but not limited to damages for loss of goodwill,\par
- work stoppage, computer failure or malfunction, or any and all\par
- other commercial damages or losses), even if such Contributor\par
- has been advised of the possibility of such damages.\par
-\par
- 9. Accepting Warranty or Additional Liability. While redistributing\par
- the Work or Derivative Works thereof, You may choose to offer,\par
- and charge a fee for, acceptance of support, warranty, indemnity,\par
- or other liability obligations and/or rights consistent with this\par
- License. However, in accepting such obligations, You may act only\par
- on Your own behalf and on Your sole responsibility, not on behalf\par
- of any other Contributor, and only if You agree to indemnify,\par
- defend, and hold each Contributor harmless for any liability\par
- incurred by, or claims asserted against, such Contributor by reason\par
- of your accepting any such warranty or additional liability.\par
-\par
--------------------END OF LICENSE-------------------------------\par
-\par
-The software includes the AutoMapper library ("AutoMapper"). The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.\par
-\par
-----------------START OF LICENSE--------------------------------\par
-\par
-Provided for Informational Purposes Only\par
-\par
-AutoMapper\par
-\par
-The MIT License (MIT)\par
-\par
-Copyright (c) 2010 Jimmy Bogard\par
-\par
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par
-\par
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par
-\par
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\par
-\par
--------------END OF LICENSE----------------------------------------\par
-\par
-}
-
diff --git a/setup-powershellget/media/WAIcon.ico b/setup-powershellget/media/WAIcon.ico
deleted file mode 100644
index 76425402df61..000000000000
Binary files a/setup-powershellget/media/WAIcon.ico and /dev/null differ
diff --git a/setup-powershellget/media/bannrbmp.bmp b/setup-powershellget/media/bannrbmp.bmp
deleted file mode 100644
index e115559090c4..000000000000
Binary files a/setup-powershellget/media/bannrbmp.bmp and /dev/null differ
diff --git a/setup-powershellget/media/dlgbmp.bmp b/setup-powershellget/media/dlgbmp.bmp
deleted file mode 100644
index 399c62e6f1e1..000000000000
Binary files a/setup-powershellget/media/dlgbmp.bmp and /dev/null differ
diff --git a/setup-powershellget/powershellget.sln b/setup-powershellget/powershellget.sln
deleted file mode 100644
index 8b5bc5d52589..000000000000
--- a/setup-powershellget/powershellget.sln
+++ /dev/null
@@ -1,30 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.40629.0
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "powershellget", "powershellget.wixproj", "{36D6E303-E057-4963-A093-C7AAE0FD92B3}"
- ProjectSection(ProjectDependencies) = postProject
- {EA5BD11B-10B3-433D-A250-92AE76669D8D} = {EA5BD11B-10B3-433D-A250-92AE76669D8D}
- EndProjectSection
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Setup", "Setup\Setup.csproj", "{EA5BD11B-10B3-433D-A250-92AE76669D8D}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Debug|Any CPU.ActiveCfg = Debug|x86
- {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Debug|Any CPU.Build.0 = Debug|x86
- {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Release|Any CPU.ActiveCfg = Release|x86
- {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Release|Any CPU.Build.0 = Release|x86
- {EA5BD11B-10B3-433D-A250-92AE76669D8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EA5BD11B-10B3-433D-A250-92AE76669D8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EA5BD11B-10B3-433D-A250-92AE76669D8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EA5BD11B-10B3-433D-A250-92AE76669D8D}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/setup-powershellget/powershellget.wixproj b/setup-powershellget/powershellget.wixproj
deleted file mode 100644
index c3a89824ad39..000000000000
--- a/setup-powershellget/powershellget.wixproj
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- Debug
- x86
- 3.5
- {36d6e303-e057-4963-a093-c7aae0fd92b3}
- 2.0
- AzurePowerShellGet
- Package
- $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets
- $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets
- AzurePowershell
-
-
- build\$(Configuration)\
- obj\$(Configuration)\
- Debug
- ICE30;ICE91;ICE64;ICE61;ICE69
-
-
- build\$(Configuration)\
- obj\$(Configuration)\
- ICE30;ICE91;ICE64;ICE61;ICE69
-
-
-
- $(WixExtDir)\WixNetFxExtension.dll
- WixNetFxExtension
-
-
- $(WixExtDir)\WixUtilExtension.dll
- WixUtilExtension
-
-
- $(WixExtDir)\WixUIExtension.dll
- WixUIExtension
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/tools/BuildInstaller.ps1 b/tools/BuildInstaller.ps1
index 150fb3fddde4..e2b3093a7453 100644
--- a/tools/BuildInstaller.ps1
+++ b/tools/BuildInstaller.ps1
@@ -57,4 +57,3 @@ $env:path = $env:path + ";$wixInstallRoot"
msbuild "$env:AzurePSRoot\build.proj" /t:Build
Write-Host "MSI file path: $env:AzurePSRoot\setup\build\Debug\AzurePowerShell.msi"
-Write-Host "MSI for PowerShell Gallery: $env:AzurePSRoot\setup-powershellget\build\Debug\AzurePowerShellGet.msi"
\ No newline at end of file