@echo off 
@echo. 
@echo.
@echo.

echo. Your Windows license key
echo. Location 1
wmic path softwareLicensingService get OA3xOriginalProductKey
echo. Location 2
Reg Query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v BackupProductKeyDefault

setlocal
:DOWNLOAD1
SET /P AREYOUSURE=Download wallpaper, icon and optimization script? (y)
IF /I "%AREYOUSURE%" NEQ "y" GOTO DOWNLOAD2
curl "http://excellent-electronics.nl/prismanote/tools/image.ico" > icon.ico
curl "http://excellent-electronics.nl/prismanote/tools/wallpaper.jpg" > wallpaper.jpg
:: curl "http://excellent-electronics.nl/prismanote/tools/optimizer.bat" > optimizer.bat

:DOWNLOAD2
SET /P AREYOUSURE=Download PrismaNote Support, Printhelper and Google Chrome (y)?
IF /I "%AREYOUSURE%" NEQ "y" GOTO SHORTCUT
curl "http://excellent-electronics.nl/prismanote/tools/PrismanoteSupport.exe" > PrismanoteSupport.exe
curl "http://excellent-electronics.nl/prismanote/tools/PrismaNotePrinthelper4.26.7.exe" > PrismaNotePrinthelper4.26.7.exe
start https://dl.google.com/chrome/install/375.126/chrome_installer.exe

:SHORTCUT
SET /P AREYOUSURE=Do you want to make a shortcut (y)?
IF /I "%AREYOUSURE%" NEQ "y" GOTO END
::Set the application-specific string vars 
SET AppDescription=PrismaNote
SET IconName=icon.ico
SET Shortcut_Name=PrismaNote.url
SET URL_PATH=https://www.prismanote.com/retailer/home

::Set the common string vars 
SET WORKING_PATH=%~dp0
SET ICONDEST=c:\ProgramData\%AppDescription%
SET LinkPath=%userprofile%\Desktop\%Shortcut_Name%

@echo. Copy Icon 
IF EXIST "%ICONDEST%" (GOTO _CopyIcon) 
mkdir "%ICONDEST%"
:_CopyIcon 
copy "%WORKING_PATH%%IconName%" "%ICONDEST%"

echo. 
echo. Create desktop shortcut... 
echo [InternetShortcut] > "%LinkPath%"
echo URL=%URL_PATH% >> "%LinkPath%"
echo IDList= >> "%LinkPath%"
echo IconFile=%ICONDEST%\%IconName% >> "%LinkPath%"
echo IconIndex=0 >> "%LinkPath%"
echo HotKey=0 >> "%LinkPath%"
echo. 
echo. 
echo. 
echo. 
echo.You should now have a shortcut to %AppDescription% on your desktop... 
echo. 
echo.

:END
endlocal