Documentation ¶
Index ¶
- type Command
- type Copy
- type Directory
- type File
- type IOFile
- type Installation
- type Installer
- 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) MakePath(paths ...string) string
- func (i *Installer) NewInstallation(installations ...Installation)
- type InstallerFlags
- type RegistryValue
- type Regkey
- type SetterFunc
- type Shortcut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type IOFile ¶
type Installation ¶
type Installer ¶
type Installer struct { Directory string Installations []Installation OnFinish func() IsInstalledFunc func() (bool, error) Flags InstallerFlags }
func (*Installer) InstallCommand ¶
func (*Installer) InstallCopiedFile ¶
func (*Installer) InstallDirectory ¶
func (*Installer) InstallFile ¶
func (*Installer) InstallFileReader ¶
func (*Installer) InstallRegistryKey ¶
func (*Installer) InstallShortcut ¶
func (*Installer) IsInstalled ¶
func (*Installer) NewInstallation ¶
func (i *Installer) NewInstallation(installations ...Installation)
type InstallerFlags ¶
type InstallerFlags uint32
const ( F_PRIVILEGED InstallerFlags = 1 << iota F_FORCESAVE )
func (InstallerFlags) ForceInstall ¶
func (i InstallerFlags) ForceInstall() bool
func (InstallerFlags) NeedsAdministrator ¶
func (i InstallerFlags) NeedsAdministrator() bool
type RegistryValue ¶
type RegistryValue struct { Name string Value any SetterFunc SetterFunc }
type Regkey ¶
type Regkey struct { Key registry.Key Path string Access uint32 Values []RegistryValue }
type SetterFunc ¶
type SetterFunc int8
const ( SetNoValue SetterFunc = iota SetDWordValue SetQWordValue SetStringValue SetExpandStringValue SetStringsValue SetBinaryValue )
Click to show internal directories.
Click to hide internal directories.