forked from iamacarpet/go-win64api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
software.go
executable file
·34 lines (29 loc) · 998 Bytes
/
software.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package shared
import "time"
// EstimatedSize is in KB,
// As estimated & written to the registry by the installer itself,
// or Windows Installer for an MSI.
type Software struct {
DisplayName string `json:"displayName"`
DisplayVersion string `json:"displayVersion"`
Arch string `json:"arch"`
Publisher string `json:"publisher"`
InstallDate time.Time `json:"installDate"`
EstimatedSize uint64 `json:"estimatedSize"`
Contact string `json:"Contact"`
HelpLink string `json:"HelpLink"`
InstallSource string `json:"InstallSource"`
InstallLocation string `json:"InstallLocation"`
UninstallString string `json:"UninstallString"`
VersionMajor uint64 `json:"VersionMajor"`
VersionMinor uint64 `json:"VersionMinor"`
}
func (s *Software) Name() string {
return s.DisplayName
}
func (s *Software) Version() string {
return s.DisplayVersion
}
func (s *Software) Architecture() string {
return s.Arch
}