C# Class Microsoft.VS.ConfigurationManager.Primitives

Publically available actions for handling uninstall actions
Inheritance: IDisposable
Mostra file Open project: Microsoft/VisualStudioUninstaller Class Usage Examples

Private Properties

Property Type Description
BundlesToFiles void
DeleteFileIfExists void
DeleteRegistryKey void
FileToBundle Bundle
GetBundlesFromWixPDB Microsoft.Tools.WindowsInstallerXml.Table
GetUniquePackages void
GetUpgradeCode string
RecursivelyDeleteFolder void
Uninstall int

Public Methods

Method Description
ApplyFilter ( string Source ) : string

Using the List of Filter classes, do a replace of strings per the user's specification.

CleanupSecondaryInstallerCache ( ) : void

Cleanup %ProgramData%\Microsoft\VisualStudioSecondaryInstaller

CleanupVisualStudioFolders ( IEnumerable vsInstallPaths ) : void

Clean up Visual Studio folders.

CleanupVisualStudioRegistryHives ( ) : void

Clean up HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio Clean up HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio

Dispose ( ) : void

Explicit disposal of objects

GetAllInstalledItems ( ) : ICollection

GetInstalledItems lists all items that are installed on this machine.

Initialize ( ) : void

Locate PDB files on disk and store them in the release object

InstalledVisualStudioReport ( ) : void

Report what Visual Studio's were installed on this system.

LoadFromDataFile ( Stream stream ) : void

Load from a data file stream.

LoadFromDataFile ( string path ) : void

Load from a data file.

LoadFromFile ( string value ) : Bundle

Given a file that has been serialized out, this will read in the file and hydrate the object model for a list of InstallableItem.

It specifically takes a directory to read all BIN files associated. If an invalid BIN file is found, it will report an error and the loop will continue.

LoadFromWixpdb ( string path ) : bool

Load a wixpdb

Primitives ( ) : System

Constructor.

Save ( ICollection installable ) : void

Takes a list of InstallableItem and converts it to binary output.

This is used after data is extracted from a wixpdb using Primitive.GetDataFromPdb()

SaveToDataFile ( ) : void

Save BundlesAndPackageStore object to a data file.

Uninstall ( ) : int

Uninstall Visual Studio 2013/2015/vNext

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
BundlesToFiles ( ICollection installable, string DataFilesPath, string ext ) : void
DeleteFileIfExists ( string filePath ) : void
DeleteRegistryKey ( string keyPath ) : void
FileToBundle ( string file ) : Bundle
GetBundlesFromWixPDB ( Microsoft pdb ) : Microsoft.Tools.WindowsInstallerXml.Table
GetUniquePackages ( HashSet upgradeCodeHash, HashSet noUpgradeCodeProductCodeHash, Microsoft.Tools.WindowsInstallerXml chainmsipackageTable, Microsoft.Tools.WindowsInstallerXml uxPackageBehavior ) : void
GetUpgradeCode ( string installSource ) : string
RecursivelyDeleteFolder ( string folder ) : void

delete a folder and all its content

Uninstall ( Package package ) : int

Method Details

ApplyFilter() public method

Using the List of Filter classes, do a replace of strings per the user's specification.
public ApplyFilter ( string Source ) : string
Source string
return string

CleanupSecondaryInstallerCache() public method

Cleanup %ProgramData%\Microsoft\VisualStudioSecondaryInstaller
public CleanupSecondaryInstallerCache ( ) : void
return void

CleanupVisualStudioFolders() public method

Clean up Visual Studio folders.
public CleanupVisualStudioFolders ( IEnumerable vsInstallPaths ) : void
vsInstallPaths IEnumerable
return void

CleanupVisualStudioRegistryHives() public method

Clean up HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio Clean up HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio
public CleanupVisualStudioRegistryHives ( ) : void
return void

Dispose() public method

Explicit disposal of objects
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAllInstalledItems() public method

GetInstalledItems lists all items that are installed on this machine.
public GetAllInstalledItems ( ) : ICollection
return ICollection

Initialize() public method

Locate PDB files on disk and store them in the release object
public Initialize ( ) : void
return void

InstalledVisualStudioReport() public method

Report what Visual Studio's were installed on this system.
public InstalledVisualStudioReport ( ) : void
return void

LoadFromDataFile() public method

Load from a data file stream.
public LoadFromDataFile ( Stream stream ) : void
stream Stream
return void

LoadFromDataFile() public method

Load from a data file.
public LoadFromDataFile ( string path ) : void
path string
return void

LoadFromFile() public method

Given a file that has been serialized out, this will read in the file and hydrate the object model for a list of InstallableItem.

It specifically takes a directory to read all BIN files associated. If an invalid BIN file is found, it will report an error and the loop will continue.

public LoadFromFile ( string value ) : Bundle
value string
return Bundle

LoadFromWixpdb() public method

Load a wixpdb
public LoadFromWixpdb ( string path ) : bool
path string
return bool

Primitives() public method

Constructor.
public Primitives ( ) : System
return System

Save() public method

Takes a list of InstallableItem and converts it to binary output.

This is used after data is extracted from a wixpdb using Primitive.GetDataFromPdb()

public Save ( ICollection installable ) : void
installable ICollection
return void

SaveToDataFile() public method

Save BundlesAndPackageStore object to a data file.
public SaveToDataFile ( ) : void
return void

Uninstall() public method

Uninstall Visual Studio 2013/2015/vNext
public Uninstall ( ) : int
return int