Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsAddict committed Nov 30, 2023
1 parent be7729c commit 761b8ba
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IAS.cmd export-ignore
# LICENSE export-ignore
# README.md export-ignore
IAS.cmd export-ignore
LICENSE export-ignore
README.md export-ignore
45 changes: 36 additions & 9 deletions IAS.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@set iasver=0.9
@set iasver=1.0
@setlocal DisableDelayedExpansion
@echo off

Expand Down Expand Up @@ -232,6 +232,23 @@ exit /b

::========================================================================================================================================

:: This code checks if script is running in terminal app and if yes then relaunches it with conhost.exe

if %_unattended%==1 set wtrel=1
for %%# in (%_args%) do (if /i "%%#"=="-wt" set wtrel=1)

set terminal=
if %winbuild% GEQ 17763 (
if not "%WT_SESSION%%WT_PROFILE_ID%%SESSIONNAME%"=="" set terminal=1
)

if %winbuild% GEQ 17763 if defined terminal if not defined wtrel (
start conhost.exe -ForceNoHandoff -- "!_batf!" %_args% -wt
exit /b
)

::========================================================================================================================================

:: Check for updates

set -=
Expand Down Expand Up @@ -318,7 +335,7 @@ reg add HKCU\IAS_TEST %nul%
reg query HKU\%_sid%\IAS_TEST %nul% && (
set HKCUsync=1
)
::set HKCUsync=$null

reg delete HKCU\IAS_TEST /f %nul%
reg delete HKU\%_sid%\IAS_TEST /f %nul%

Expand Down Expand Up @@ -364,7 +381,7 @@ if %_activate%==1 goto :_activate

cls
title IDM Activation Script %iasver%
mode 75, 28
if not defined terminal mode 75, 28

echo:
echo:
Expand Down Expand Up @@ -400,11 +417,11 @@ goto :MainMenu

cls
if not %HKCUsync%==1 (
mode 153, 35
if not defined terminal mode 153, 35
) else (
mode 113, 35
if not defined terminal mode 113, 35
)
if not defined WT_SESSION %psc% "&%_buf%" %nul%
if not defined terminal %psc% "&%_buf%" %nul%

echo:
%idmcheck% && taskkill /f /im idman.exe
Expand Down Expand Up @@ -490,11 +507,11 @@ exit /b

cls
if not %HKCUsync%==1 (
mode 153, 35
if not defined terminal mode 153, 35
) else (
mode 113, 35
if not defined terminal mode 113, 35
)
if not defined WT_SESSION %psc% "&%_buf%" %nul%
if not defined terminal %psc% "&%_buf%" %nul%

echo:
if not exist "%IDMan%" (
Expand Down Expand Up @@ -564,16 +581,26 @@ echo:
echo:
if %_unattended%==1 timeout /t 2 & exit /b

if defined terminal (
call :_color %_Yellow% "Press 0 key to return..."
choice /c 0 /n
) else (
call :_color %_Yellow% "Press any key to return..."
pause %nul1%
)
goto MainMenu

:done2

if %_unattended%==1 timeout /t 2 & exit /b

if defined terminal (
echo Press 0 key to exit...
choice /c 0 /n
) else (
echo Press any key to exit...
pause %nul1%
)
exit /b

::========================================================================================================================================
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ An open-source tool to activate and reset the trial of [Internet Download Manage

## IAS Latest Release

Last Release - v0.9 (29-Nov-2023)\
Last Release - v1.0 (01-Dec-2023)\
[GitHub](https://github.com/WindowsAddict/IDM-Activation-Script) - [BitBucket](https://bitbucket.org/WindowsAddict/idm-activation-script/)

## Download / How to use it?
Expand Down Expand Up @@ -76,6 +76,11 @@ Last Release - v0.9 (29-Nov-2023)\

## Changelog

#### v1.0

- Added the code to relaunch the script with conhost.exe if the script is running from the terminal app.
- Fixed an issue in getting the current user account SID.

#### v0.9

- Fixed an issue where the script can not activate and reset IDM in non-admin user accounts.
Expand All @@ -96,14 +101,14 @@ Last Release - v0.9 (29-Nov-2023)\

## Screenshots

![](https://github.com/massgravel/mas-docs/blob/main/IAS.png?raw=true)
![](https://massgrave.dev/IAS.png?raw=true)

![](https://github.com/massgravel/mas-docs/blob/main/IAS_Activation.png?raw=true)
![](https://massgrave.dev//IAS_Activation.png?raw=true)

## Credits

| | |
|---------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|----------------|--------------------------------------------------------|
| Dukun Cabul | Original researcher of this IDM trial reset and activation logic, made an Autoit tool for these methods, [IDM-AIO_2020_Final](https://nsaneforums.com/topic/371047-discussion-internet-download-manager-fixes/page/8/#comment-1632062) |
| AveYo aka BAU | [reg_own lean and mean snippet](https://pastebin.com/XTPt0JSC) |
| [abbodi1406](https://github.com/abbodi1406) | Help in coding |
Expand Down

0 comments on commit 761b8ba

Please sign in to comment.