nwin

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const RegDateFormat = "20060102"

RegDateFormat is the format in which installed time should be stored in the registry, as a format string suitable for time.Format()

Variables

This section is empty.

Functions

func CenterWindow

func CenterWindow(mw *walk.FormBase)

func CreateShortcut

func CreateShortcut(settings ShortcutSettings) error

CreateShortcut creates a windows shortcut with the given settings

func CreateUninstallRegistryEntry

func CreateUninstallRegistryEntry(cli cl.CLI, installDir string, version string) error

CreateUninstallRegistryEntry creates all registry entries required to have the app show up in Add or Remove software and be uninstalled by the user

func GetModuleFileName

func GetModuleFileName(hprocess syscall.Handle) (string, error)

func GetRegistryInstallDir

func GetRegistryInstallDir(cli cl.CLI) (string, error)

func KillAll

func KillAll(pathsToKill []string) error

func LoadImage

func LoadImage(filePath string) walk.Image

func RectangleFromRECT

func RectangleFromRECT(r win.RECT) walk.Rectangle

func RemoveUninstallerRegistryKey

func RemoveUninstallerRegistryKey(cli cl.CLI) error

func SetInstallerImage

func SetInstallerImage(cli cl.CLI, imageView *walk.ImageView)

Types

type DWORDValue

type DWORDValue struct {
	Key   string
	Value uint32
}

type Folders

type Folders struct {
	LocalAppData   string
	RoamingAppData string
	Desktop        string
	Programs       string
}

func GetFolders

func GetFolders() (f Folders, err error)

type ShortcutSettings

type ShortcutSettings struct {
	ShortcutFilePath string
	TargetPath       string
	Arguments        string
	Description      string
	IconLocation     string
	WorkingDirectory string
	OnlyIfExists     bool
}

type StringValue

type StringValue struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL