mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 10:03:43 +08:00
fix
This commit is contained in:
parent
d035f309c2
commit
c92078b931
@ -183,15 +183,15 @@ foreach ($adapter in $adapterMemory) {
|
|||||||
|
|
||||||
static initVBS() async {
|
static initVBS() async {
|
||||||
final script = '''
|
final script = '''
|
||||||
If Not WScript.Arguments.Named.Exists("elevate") Then
|
If Not WScript.Arguments.Named.Exists("elevate") Then
|
||||||
CreateObject("Shell.Application").ShellExecute WScript.FullName _
|
CreateObject("Shell.Application").ShellExecute WScript.FullName _
|
||||||
, """" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
, """" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
||||||
WScript.Quit
|
WScript.Quit
|
||||||
End If
|
End If
|
||||||
|
Dim objShell
|
||||||
Set WshShell = WScript.CreateObject("WScript.Shell")
|
Set objShell = WScript.CreateObject( "WScript.Shell" )
|
||||||
exeName = """${Platform.resolvedExecutable}"""
|
objShell.Run("""${Platform.resolvedExecutable}""")
|
||||||
statusCode = WshShell.Run(exeName, 1, true)
|
Set objShell = Nothing
|
||||||
''';
|
''';
|
||||||
final vbsFile = File(AppConf.launchHelperPath);
|
final vbsFile = File(AppConf.launchHelperPath);
|
||||||
if (await vbsFile.exists()) {
|
if (await vbsFile.exists()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user