@echo off
title 软件缘 桌面快捷方式创建工具！

>nul 2>&1 REG.exe query "HKU\S-1-5-19" || (
    ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\Getadmin.vbs"
    ECHO UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%TEMP%\Getadmin.vbs"
    "%TEMP%\Getadmin.vbs"
    DEL /f /q "%TEMP%\Getadmin.vbs" 2>nul
    Exit /b
)

cd "%~dp0ReNamer"

xcopy /y "License.key" "%Public%\Documents\den4b\ReNamer\" >NUL 2>NUL
xcopy /y "Settings.ini" "%UserProfile%\Documents\den4b\ReNamer\" >NUL 2>NUL

mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\ReNamer Pro.lnk""):b.TargetPath=""%~dp0ReNamer\ReNamer.exe"":b.WorkingDirectory=""%~dp0ReNamer\"":b.Save:close")