C# Класс Microsoft.VS.ConfigurationManager.Primitives

Publically available actions for handling uninstall actions
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BundlesToFiles void
DeleteFileIfExists void
DeleteRegistryKey void
FileToBundle Bundle
GetBundlesFromWixPDB Microsoft.Tools.WindowsInstallerXml.Table
GetUniquePackages void
GetUpgradeCode string
RecursivelyDeleteFolder void
Uninstall int

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
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

Описание методов

ApplyFilter() публичный Метод

Using the List of Filter classes, do a replace of strings per the user's specification.
public ApplyFilter ( string Source ) : string
Source string
Результат string

CleanupSecondaryInstallerCache() публичный Метод

Cleanup %ProgramData%\Microsoft\VisualStudioSecondaryInstaller
public CleanupSecondaryInstallerCache ( ) : void
Результат void

CleanupVisualStudioFolders() публичный Метод

Clean up Visual Studio folders.
public CleanupVisualStudioFolders ( IEnumerable vsInstallPaths ) : void
vsInstallPaths IEnumerable
Результат void

CleanupVisualStudioRegistryHives() публичный Метод

Clean up HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio Clean up HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio
public CleanupVisualStudioRegistryHives ( ) : void
Результат void

Dispose() публичный Метод

Explicit disposal of objects
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetAllInstalledItems() публичный Метод

GetInstalledItems lists all items that are installed on this machine.
public GetAllInstalledItems ( ) : ICollection
Результат ICollection

Initialize() публичный Метод

Locate PDB files on disk and store them in the release object
public Initialize ( ) : void
Результат void

InstalledVisualStudioReport() публичный Метод

Report what Visual Studio's were installed on this system.
public InstalledVisualStudioReport ( ) : void
Результат void

LoadFromDataFile() публичный Метод

Load from a data file stream.
public LoadFromDataFile ( Stream stream ) : void
stream Stream
Результат void

LoadFromDataFile() публичный Метод

Load from a data file.
public LoadFromDataFile ( string path ) : void
path string
Результат void

LoadFromFile() публичный Метод

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
Результат Bundle

LoadFromWixpdb() публичный Метод

Load a wixpdb
public LoadFromWixpdb ( string path ) : bool
path string
Результат bool

Primitives() публичный Метод

Constructor.
public Primitives ( ) : System
Результат System

Save() публичный Метод

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
Результат void

SaveToDataFile() публичный Метод

Save BundlesAndPackageStore object to a data file.
public SaveToDataFile ( ) : void
Результат void

Uninstall() публичный Метод

Uninstall Visual Studio 2013/2015/vNext
public Uninstall ( ) : int
Результат int