C# Class Microsoft.VS.ConfigurationManager.Primitives

Publically available actions for handling uninstall actions
Inheritance: IDisposable
Afficher le fichier Open project: Microsoft/VisualStudioUninstaller Class Usage Examples

Private Properties

Свойство Type Description
BundlesToFiles void
DeleteFileIfExists void
DeleteRegistryKey void
FileToBundle Bundle
GetBundlesFromWixPDB Microsoft.Tools.WindowsInstallerXml.Table
GetUniquePackages void
GetUpgradeCode string
RecursivelyDeleteFolder void
Uninstall int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

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

CleanupSecondaryInstallerCache() public méthode

Cleanup %ProgramData%\Microsoft\VisualStudioSecondaryInstaller
public CleanupSecondaryInstallerCache ( ) : void
Résultat void

CleanupVisualStudioFolders() public méthode

Clean up Visual Studio folders.
public CleanupVisualStudioFolders ( IEnumerable vsInstallPaths ) : void
vsInstallPaths IEnumerable
Résultat void

CleanupVisualStudioRegistryHives() public méthode

Clean up HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio Clean up HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio
public CleanupVisualStudioRegistryHives ( ) : void
Résultat void

Dispose() public méthode

Explicit disposal of objects
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAllInstalledItems() public méthode

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

Initialize() public méthode

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

InstalledVisualStudioReport() public méthode

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

LoadFromDataFile() public méthode

Load from a data file stream.
public LoadFromDataFile ( Stream stream ) : void
stream Stream
Résultat void

LoadFromDataFile() public méthode

Load from a data file.
public LoadFromDataFile ( string path ) : void
path string
Résultat void

LoadFromFile() public méthode

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
Résultat Bundle

LoadFromWixpdb() public méthode

Load a wixpdb
public LoadFromWixpdb ( string path ) : bool
path string
Résultat bool

Primitives() public méthode

Constructor.
public Primitives ( ) : System
Résultat System

Save() public méthode

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
Résultat void

SaveToDataFile() public méthode

Save BundlesAndPackageStore object to a data file.
public SaveToDataFile ( ) : void
Résultat void

Uninstall() public méthode

Uninstall Visual Studio 2013/2015/vNext
public Uninstall ( ) : int
Résultat int