2019-06-27 08:54:51 +00:00
|
|
|
package installer
|
2019-06-25 03:34:18 +00:00
|
|
|
|
|
|
|
import (
|
2019-06-27 08:54:51 +00:00
|
|
|
"fmt"
|
2019-06-25 03:34:18 +00:00
|
|
|
//"golang.org/x/sys/windows"
|
|
|
|
)
|
|
|
|
|
|
|
|
// See
|
|
|
|
// https://github.com/golang/go/issues/28804
|
|
|
|
// https://stackoverflow.com/questions/31558066/how-to-ask-for-administer-privileges-on-windows-with-go/31561120
|
|
|
|
// https://stackoverflow.com/questions/27366298/check-if-application-is-running-as-administrator-in-golang
|
|
|
|
// https://www.reddit.com/r/golang/comments/53dthc/way_to_detect_if_the_programs_running_with/
|
|
|
|
// https://play.golang.org/p/bBtRZrk4_p
|
2019-06-27 08:54:51 +00:00
|
|
|
func install(c *Config) error {
|
2019-06-25 03:34:18 +00:00
|
|
|
//token := windows.Token(0)
|
2019-06-27 08:54:51 +00:00
|
|
|
return fmt.Errorf("not yet implemented")
|
2019-06-25 03:34:18 +00:00
|
|
|
}
|