Documentation ¶
Overview ¶
Package windows contains helpers for Windows E2E tests
Index ¶
- func GetProductCodeByName(host *components.RemoteHost, name string) (string, error)
- func GetTemporaryFile(host *components.RemoteHost) (string, error)
- func InstallMSI(host *components.RemoteHost, msiPath string, args string, logPath string) error
- func UninstallMSI(host *components.RemoteHost, msiPath string, logPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProductCodeByName ¶
func GetProductCodeByName(host *components.RemoteHost, name string) (string, error)
GetProductCodeByName returns the product code GUID for the given product name
func GetTemporaryFile ¶
func GetTemporaryFile(host *components.RemoteHost) (string, error)
GetTemporaryFile returns a new temporary file path https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/new-temporaryfile?view=powershell-7.4
func InstallMSI ¶
func InstallMSI(host *components.RemoteHost, msiPath string, args string, logPath string) error
InstallMSI installs an MSI on the VM with the provided args and collects the install log
func UninstallMSI ¶
func UninstallMSI(host *components.RemoteHost, msiPath string, logPath string) error
UninstallMSI uninstalls an MSI on the VM and collects the uninstall log
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.