Skip to content

Commit

Permalink
Support for scripted execution.
Browse files Browse the repository at this point in the history
  • Loading branch information
TGSAN committed Nov 25, 2024
1 parent 7035b75 commit 0fa8205
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMWTAT_DIGITAL/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CMWTAT Digital Edition V2")]
[assembly: AssemblyDescription("CloudMoe Windows 10 Activation Toolkit V2")]
[assembly: AssemblyTitle("CMWTAT Digital Edition")]
[assembly: AssemblyDescription("CloudMoe Windows 10+ Activation Toolkit")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("CloudMoe Network")]
[assembly: AssemblyProduct("CMWTAT Digital Edition V2")]
[assembly: AssemblyCopyright("Copyright © CloudMoe Saltfish Studio 2022")]
[assembly: AssemblyProduct("CMWTAT Digital Edition")]
[assembly: AssemblyCopyright("Copyright © CloudMoe Saltfish Studio 2024")]
[assembly: AssemblyTrademark("CloudMoe Saltfish Studio")]
[assembly: AssemblyCulture("")]

Expand Down Expand Up @@ -51,5 +51,5 @@
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.7.1.0")]
[assembly: AssemblyFileVersion("2.7.1.0")]
[assembly: AssemblyVersion("2.7.2.0")]
[assembly: AssemblyFileVersion("2.7.2.0")]
Binary file removed CMWTAT_Digital_Release_2_7_1_0.zip
Binary file not shown.
Binary file added CMWTAT_Digital_Release_2_7_2_0.exe
Binary file not shown.
15 changes: 15 additions & 0 deletions DirectRun.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$isAdmin = (New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)

if (-not $isAdmin) {
Start-Process powershell -ArgumentList "irm https://tgsan.github.io/CMWTAT_Digital_Edition/DirectRun.ps1 | iex" -Verb RunAs
Exit
}

# $exePath = ".\CMWTAT_DIGITAL\bin\Debug\CMWTAT_DIGITAL.exe"
# $exeBytes = [System.IO.File]::ReadAllBytes($exePath)
# $bytes = $exeBytes

$bytes = (Invoke-WebRequest "https://tgsan.github.io/CMWTAT_Digital_Edition/CMWTAT_Digital_Release_2_7_2_0.exe").Content
$assembly = [System.Reflection.Assembly]::Load($bytes)
$entryPointMethod = $assembly.EntryPoint
$entryPointMethod.Invoke($null, @())

0 comments on commit 0fa8205

Please sign in to comment.