Skip to content

Instantly share code, notes, and snippets.

@AlexRogalskiy
Last active April 22, 2025 03:52
Show Gist options
  • Save AlexRogalskiy/b1e21d0c4b3344e0d7004fe794989d9f to your computer and use it in GitHub Desktop.
Save AlexRogalskiy/b1e21d0c4b3344e0d7004fe794989d9f to your computer and use it in GitHub Desktop.
IntelliJ Idea trial prolongation
================================================================================
find ~/.IntelliJIdea* -type d -exec touch -t $(date +"%Y%m%d%H%M") {} ;
#!/bin/bash
echo "removeing evaluation key"
rm -rf ~/.IntelliJIdea*/config/eval
rm -rf ~/.GoLand*/config/eval
rm -rf ~/.WebStorm*/config/eval
rm -rf ~/.java/.userPrefs/jetbrains/goland
rm -rf ~/.java/.userPrefs/jetbrains/idea
rm -rf ~/.java/.userPrefs/jetbrains/webstorm
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea*/config/options/options.xml
sed -i '/evlsprt/d' ~/.GoLand*/config/options/options.xml
sed -i '/evlsprt/d' ~/.WebStorm*/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
echo "change date file"
find ~/.IntelliJIdea* -type d -exec touch -t $(date +"%Y%m%d%H%M") {} +;
find ~/.IntelliJIdea* -type f -exec touch -t $(date +"%Y%m%d%H%M") {} +;
find ~/.GoLand* -type d -exec touch -t $(date +"%Y%m%d%H%M") {} +;
find ~/.GoLand* -type f -exec touch -t $(date +"%Y%m%d%H%M") {} +;
find ~/.WebStorm* -type d -exec touch -t $(date +"%Y%m%d%H%M") {} +;
find ~/.WebStorm* -type f -exec touch -t $(date +"%Y%m%d%H%M") {} +;
================================================================================
#!/bin/bash
echo "removeing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
## or:
#For IntelliJ IDEA 2017.1.2 EAP on Windows 10, I had to:
#
#Go to ´~/.IntelliJIdea2017.1/config´
#Remove the folder ´eval´
#Edit file options/options.xml and remove all properties that the name begins with evlsprt, such as:
#<property name="evlsprt3.171" value="18" />
#Go to Windows Registry and under subkeys of HKCU\Software\JavaSoft\Prefs\jetbrains\idea delete keys that begin with evlsprt
================================================================================
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft" /f
set JETBRAINSDIR=%USERPROFILE%\AppData\Roaming\JetBrains
rmdir /S /Q %JETBRAINSDIR%\WebStorm2020.1\eval
rmdir /S /Q %JETBRAINSDIR%\consentOptions
del %JETBRAINSDIR%\WebStorm2020.1\options\other.xml
del %JETBRAINSDIR%\PermanentDeviceId
del %JETBRAINSDIR%\PermanentUserId
del %JETBRAINSDIR%\bl
del %JETBRAINSDIR%\crl
reg delete HKEY_CURRENT_USER\Software\JavaSoft /f
pause
================================================================================
#!/bin/bash
echo "removeing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
## or:
#For IntelliJ IDEA 2017.1.2 EAP on Windows 10, I had to:
#
#Go to ´~/.IntelliJIdea2017.1/config´
#Remove the folder ´eval´
#Edit file options/options.xml and remove all properties that the name begins with evlsprt, such as:
#<property name="evlsprt3.171" value="18" />
#Go to Windows Registry and under subkeys of HKCU\Software\JavaSoft\Prefs\jetbrains\idea delete keys that begin with evlsprt
================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment