秀丸のディレクトリにある.NET Framework系のアセンブリのNGenダウンロード更新日 2022/04/26
HmAssemblyNGen.batの内容「HmAssemblyNGen.bat」を「秀丸ディレクトリ」へと配置し、「管理者権限」で実行すれば、「秀丸ディレクトリ」の.dllファイルのNGenが出来ますので、 @echo off rem 通常権限で実行されていば、管理者権限で実行しなおす。 cd /d %~dp0 for /f "tokens=3 delims=\ " %%i in ('whoami /groups^|find "Mandatory"') do set LEVEL=%%i if NOT "%LEVEL%"=="High" ( powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -Command "Start-Process %~f0 -Verb runas" exit ) rem これ以降の処理は管理者権限で実行される @echo off cd %~dp0 echo %~dp0 SET CURRENT_TMP_DIR=%~dp0 SET CURRENT_TMP_DIR_WITHOUT_LAST_SEPARATOR=%CURRENT_TMP_DIR:~0,-1% echo %~dp0 find hidemaru.exe "32bit edition" if %ERRORLEVEL%==0 ( echo "秀丸エディタ 32bit版"; for /R %targetdir% %%A in (*.dll) do ( C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install %%~fA /AppBase:"%CURRENT_TMP_DIR_WITHOUT_LAST_SEPARATOR%" ) ) find hidemaru.exe "64bit edition" if %ERRORLEVEL%==0 ( echo "秀丸エディタ 64bit版"; for /R %targetdir% %%A in (*.dll) do ( echo %%A C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install %%~fA /AppBase:"%CURRENT_TMP_DIR_WITHOUT_LAST_SEPARATOR%" ) ) ライセンス
|