func execCmdOrElevate(cmd string) {
	if !launchelev && !isUserAdmin {
		// If not launched as elevated and user is not admin, relaunch self. Use AND here to prevent from dead loop.
		relaunchElevated(cmd)

		// If elevation failed, just quit to the caller.
		return
	}

	if cmds[cmd] != nil {
		cmds[cmd]()
	}
}
// execCmdOrElevate carries out a command. If current process is not elevated and is not supposed to be elevated, it will launch
// itself as elevated and quit from the current instance.
execCmdOrElevate carries out a command. If current process is not elevated and is not supposed to be elevated, it will launch
itself as elevated and quit from the current instance.
// execCmdOrElevate carries out a command . If current process is not elevated and is not supposed to be elevated it will launch // itself as elevated and quit from the current instance .
func execCmdOrElevate(cmd string) {
	if !launchelev && !isUserAdmin {
		relaunchElevated(cmd)
		return
	}
	if cmds[cmd] != nil {
		cmds[cmd]()
	}
}
func execCmdOrElevate ( cmd string ) { if ! launchelev && ! isUserAdmin { relaunchElevated ( cmd ) return } if cmds [ cmd ] != nil { cmds [ cmd ] ( ) } }
execCmdOrElevate carries out a command.
execCmdOrElevate carries out a command .
// If not launched as elevated and user is not admin, relaunch self. Use AND here to prevent from dead loop. // If elevation failed, just quit to the caller.