echo off

echo %PROCESSOR_ARCHITECTURE% | findstr 64 > nul
@if ERRORLEVEL 1 (
    REG ADD "HKLM\SOFTWARE\Adobe\Photoshop\7.0" /v "FreeBeforeSlopAdjust" /t REG_DWORD /d 0x75fb4000 /f
    REG ADD "HKLM\SOFTWARE\Adobe\Photoshop\7.0" /v "FreeSpace" /t REG_DWORD /d 0x35e697d8 /f

    REG ADD "HKLM\SOFTWARE\Adobe\Photoshop\7.0\Registration" /v "COMPAN" /t REG_SZ /d "A" /f
    REG ADD "HKLM\SOFTWARE\Adobe\Photoshop\7.0\Registration" /v "NAME" /t REG_SZ /d "B" /f
    REG ADD "HKLM\SOFTWARE\Adobe\Photoshop\7.0\Registration" /v "SERIAL" /t REG_SZ /d "104512096738466876962783" /f
)else @if ERRORLEVEL 0 (
    REG ADD "HKLM\SOFTWARE\Wow6432Node\Adobe\Photoshop\7.0" /v "FreeBeforeSlopAdjust" /t REG_DWORD /d 0x75fb4000 /f
    REG ADD "HKLM\SOFTWARE\Wow6432Node\Adobe\Photoshop\7.0" /v "FreeSpace" /t REG_DWORD /d 0x35e697d8 /f

    REG ADD "HKLM\SOFTWARE\Wow6432Node\Adobe\Photoshop\7.0\Registration" /v "COMPAN" /t REG_SZ /d "A" /f
    REG ADD "HKLM\SOFTWARE\Wow6432Node\Adobe\Photoshop\7.0\Registration" /v "NAME" /t REG_SZ /d "B" /f
    REG ADD "HKLM\SOFTWARE\Wow6432Node\Adobe\Photoshop\7.0\Registration" /v "SERIAL" /t REG_SZ /d "104512096738466876962783" /f
)

start Photoshop.exe
exit