@ECHO OFF
-set shortcut_name=Tizen IDE
+set shortcut_name="Tizen IDE"
set execute_file=IDE.exe
set icon_file=tizen-sdk-ide.ico
set font_file=EcoSansMonoBD_110929.ttf
set icon_path=%program_path%\resources\icons
set font_path=%program_path%\resources\fonts
-:: delims is a TAB followed by a space
-FOR /F "tokens=2* delims= " %%A IN ('reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Programs') DO SET start_menu_programs_path=%%B
-
echo Setting shortcut...
-wscript.exe "%MAKESHORTCUT_PATH%" /shortcut:"%start_menu_programs_path%\%CATEGORY%\%shortcut_name%" /target:"%execute_path%" /icon:"%icon_path%\%icon_file%"
+wscript.exe "%MAKESHORTCUT_PATH%" /shortcut:"%shortcut_name%" /target:"%execute_path%" /icon:"%icon_path%\%icon_file%"
echo Make shortcut success.
:: Install Tizen font
@echo off
-set shortcut_name="TizenIDE"
+set shortcut_name="Tizen IDE"
:: delims is a TAB followed by a space
-FOR /F "tokens=2* delims= " %%A IN ('reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Programs') DO SET start_menu_programs_path=%%B
-del "%start_menu_programs_path%\%CATEGORY%\%shortcut_name%.lnk" /f/q/a
+%REMOVE_SHORTCUT% /shortcut:"%shortcut_name%"
+
rd/s/q "%INSTALLED_PATH%\IDE\p2"
:: Uninstall Tizen font
:: del %HOMEDRIVE%\Windows\Fonts\unnamed.ttf