No worries, we all have those moments. Thanks for the update. Here is how my directory looks now (see screenshot). Spoiler: screenshot
@s1ave77 If you put this code at beginning your command file is self-elevating. No need to run as admin. Code: @echo off color 1f >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if "%errorlevel%" NEQ "0" ( echo: Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo: UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" & exit ) if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs" ) %windir%\system32\reg.exe query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v PROCESSOR_ARCHITECTURE | find /i "amd64" 1>nul || ( echo ============================================================ echo ERROR: This pack is for 64-bit systems. echo ============================================================ echo. echo. echo Press any key to exit... pause >nul goto :eof ) %~d0 cd /d "%~dp0" cls
I am not sure if you can run this on 32-bit. I have never tried. I think this code was originally written for a 64 bit program, so that part can be removed.
Not sure what you mean. Script is already self-elevated. This is a good case where exist dozens of ways to achieve. Yours is one, but is using temp file what i wanted to avoid. @abbodi1406 uses similiar attempt as one-liner: Code: cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) Still prefer the powershell way without any temp files: Code: (cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1
Not any secret . Was afaik @BetonMAN in the old Rearm Wizard thread who presented the powershell way .
@mkuba50 already created GitLab project, but is private atm. BTW: @adguard allowed doggie to use his FTP so JSON database is easier to maintain that way . Official Update rolling ....
S-M-R-T M50 UUPDL v0.05.11 released . +++ FEATURE UPDATE RELEASE +++ Changelog v0.05.11 --database for JSONs now is FTP hosted (thanks to adguard@rgadguard) --some little fixes and cleansing +++silently+++released+++update+++test+++phase+++ v0.05.01 --ARM builds celebrate re-appearance v0.04.22 --almost last visual updates v0.04.15 --some more visual updates --fixed error when database folder is empty --when folder is empty it will be recreated v0.04.01 --some more visual updates --added database update from latest known state (atm maintained by me) +++silently+++released+++update+++test+++phase+++ https://forums.mydigitallife.net/threads/uup-dump.75052/page-5#post-1368477
Code: [ USER ] [R]eplace current or [S]kip ?: R [ INFO ] UPDATER WILL START NOW. TOOL WILL CLOSE. [ USER ] PRESS ANY KEY >> Code: ##################### [ INFO ] UUPDL UPDATE ##################### [ INFO ] PLEASE WAIT. #####################
exelent tool, wonder if it can me maked all in one så after download it ask would you like to make it to iso now Y/N -maybe I just dream -
Did you run it for download the AiO? If you placed @abbodi1406 tool in the folder (just bin and convert-UUP.cmd) it will detect it and make the iso