package
module
Version:
v0.0.0-...-f5f65ee
Opens a new window with list of versions in this module.
Published: Mar 25, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Go Redistributable Checker
Supported redistributables
- Microsoft Visual C++ Redistributable Package 2015 - 2019 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2015 - 2019 (x64) ✔
- Microsoft Visual C++ Redistributable Package 2017 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2017 (x64) ✔
- Microsoft Visual C++ Redistributable Package 2015 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2015 (x64) ✔
- Microsoft Visual C++ Redistributable Package 2013 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2013 (x64) ✔
- Microsoft Visual C++ Redistributable Package 2012 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2012 (x64) ✔
- Microsoft Visual C++ Redistributable Package 2010 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2010 (x64) ✔
- Microsoft Visual C++ Redistributable Package 2008 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2008 (x64) ✔
- Microsoft Visual C++ Redistributable Package 2005 (x86) ✔
- Microsoft Visual C++ Redistributable Package 2005 (x64) ✔
Code Sample
import "github.com/noneymous/go-redistributable-checker"
if redistributable.IsInstalled(redistributable.VC2017x64) {
//go on
}
Notes
Worked on my Windows 10 (x64)
Derived from: https://github.com/bitbeans/RedistributableChecker
Windows Registry Keys taken from: https://stackoverflow.com/a/34209692/4013391
Documentation
¶
View Source
const (
VC2005x86 = iota
VC2005x64
VC2008x86
VC2008x64
VC2010x86
VC2010x64
VC2012x86
VC2012x64
VC2013x86
VC2013x64
VC2015x86
VC2015x64
VC2017x86
VC2017x64
VC2015to2019x86
VC2015to2019x64
)
func IsInstalled(redistributableVersion int) bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.