Versions in this module Expand all Collapse all v1 v1.0.0 Jul 26, 2023 Changes in this version + type Command struct + Args []string + Command string + IsInstalledFunc func(installer Installer) (bool, error) + Stderr *os.File + Stdout *os.File + SysProcAttr *syscall.SysProcAttr + func (i Command) Install(installer Installer) (err error) + func (i Command) IsInstalled(installer Installer) (bool, error) + type Copy struct + From string + To string + func (i Copy) Install(installer Installer) error + func (i Copy) IsInstalled(installer Installer) (bool, error) + type Directory struct + Path string + func (i Directory) Install(installer Installer) error + func (i Directory) IsInstalled(installer Installer) (bool, error) + type File struct + Data []byte + Filename string + Path string + func (i File) Install(installer Installer) (err error) + func (i File) IsInstalled(installer Installer) (bool, error) + type IOFile struct + Filename string + Path string + ReaderFunc func(path, name string) (io.Reader, error) + func (i IOFile) Install(installer Installer) error + func (i IOFile) IsInstalled(installer Installer) (bool, error) + type Installation interface + Install func(installer Installer) error + IsInstalled func(installer Installer) (bool, error) + type Installer struct + Directory string + Flags InstallerFlags + Installations []Installation + IsInstalledFunc func() (bool, error) + OnFinish func() + func (i *Installer) Install() error + func (i *Installer) InstallCommand(command string, args ...string) + func (i *Installer) InstallCopiedFile(from, to string) + func (i *Installer) InstallDirectory(path string) + func (i *Installer) InstallFile(filename, path string, data []byte) + func (i *Installer) InstallFileReader(filename, path string, ...) + func (i *Installer) InstallRegistryKey(key registry.Key, path string, access uint32) *Regkey + func (i *Installer) InstallShortcut(from, to string) + func (i *Installer) IsInstalled() (bool, error) + func (i *Installer) NewInstallation(installations ...Installation) + func (i Installer) MakePath(paths ...string) string + type InstallerFlags uint32 + const F_FORCESAVE + const F_PRIVILEGED + func (i InstallerFlags) ForceInstall() bool + func (i InstallerFlags) NeedsAdministrator() bool + type RegistryValue struct + Name string + SetterFunc SetterFunc + Value any + type Regkey struct + Access uint32 + Key registry.Key + Path string + Values []RegistryValue + func NewRegKey(key registry.Key, path string, access uint32) *Regkey + func (i *Regkey) AddValue(setterFunc SetterFunc, name string, value any) + func (i *Regkey) Install(installer Installer) error + func (i *Regkey) IsInstalled(installer Installer) (bool, error) + type SetterFunc int8 + const SetBinaryValue + const SetDWordValue + const SetExpandStringValue + const SetNoValue + const SetQWordValue + const SetStringValue + const SetStringsValue + type Shortcut struct + From string + To string + func (i Shortcut) Install(installer Installer) (err error) + func (i Shortcut) IsInstalled(installer Installer) (bool, error)