Ademuzun Posted February 17, 2021 Share Posted February 17, 2021 Merhaba, Aşağıdaki setupcomplete komutunu Aio işletim sistemi kurar iken kullanıyorum windows 7 kurar iken sorun yok lakin windows 10 kurar iken çalışmıyor windows 10 un birden fazla restart atmasından olabilirmi win7 ve win 10 iki sistemdede kullanabilmek için nasıl düzenlemek lazım. Konu Hakkında Bilgisi olan varmı yardımcı olabilecek. @ECHO OFF @COLOR 1c title setlocal EnableExtensions setlocal EnableDelayedExpansion fltmc >nul 2>&1 || ( echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~fs0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs" >nul 2>&1 exit /b ) pushd "%~dp0" dism /online /add-package /PackagePath:"%~dp0x.cmd" start /wait "app" "%~dp0x.cmd" set /a KEYNUM=1 SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Wındows Programlarınızı Yukluyor..." /f FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\software (for /f "delims=" %%z in ('dir /b %%i:\software\*.exe') do ( call :RunOnceEx REG ADD %KEY%\CrazyChat!KEYNUM! /VE /D "%%~nz" /f REG ADD %KEY%\CrazyChat!KEYNUM! /V 1 /D "%%i:\software\%%z" /f )) RMDIR /S /Q "%~dp0" exit :RunOnceEx set /a KEYNUM=!KEYNUM!+1 del /q /f "%0" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.