You are on page 1of 1

@echo off

IF DEFINED ProgramFiles(x86) (
goto M64
) ELSE (
goto M32
)

:M64
echo This is a x64 system
SET TARGET_PATH=%ProgramFiles(x86)%
SET COMMON=%CommonProgramFiles(x86)%
goto DO_IT

:M32
echo This is a x86 system
SET TARGET_PATH=%ProgramFiles%
SET COMMON=%CommonProgramFiles%
goto DO_IT

:DO_IT
echo Deleting PsiClient.dll from target folder...
del "%TARGET_PATH%\Corel\CorelDRAW Graphics Suite X5\Programs\PsiClient.dll"

echo Spoofing PSIKey_2.dll as PsiClient.dll into target folder...


copy "%COMMON%\Protexis\License Service\PSIKey-03000201.dll" "%TARGET_PATH
%\Corel\CorelDRAW Graphics Suite X5\Programs\PsiClient.dll"

echo Stopping Protexis Service


sc stop PSI_SVC_2

echo Deleting Protexis Service


sc delete PSI_SVC_2

echo deleting Protexis folders


rd /s/q "%COMMON%\Protexis"

:END
echo Done
pause

You might also like