From: Taeyoung Son Date: Thu, 12 Jan 2012 07:17:28 +0000 (+0900) Subject: [Title] Modify install, remove script for windows X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd2056d42c9dd22884c93f35584ef9983bc23105;p=sdk%2Fide%2Fcommon-eplugin.git [Title] Modify install, remove script for windows [Type] Feature [Module] Sub [Priority] Minor [CQ#] [Redmine#] [Problem] [Cause] [Solution] Change-Id: I2c073e4ed74306823127f99953f0b3dba8be00e8 --- diff --git a/packager/windows/install.bat b/packager/windows/install.bat index d8d24d9..8ec0417 100644 --- a/packager/windows/install.bat +++ b/packager/windows/install.bat @@ -1,5 +1,5 @@ @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 @@ -8,11 +8,8 @@ set execute_path=%program_path%\%execute_file% 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 diff --git a/packager/windows/remove.bat b/packager/windows/remove.bat index b50e7a8..4d9c3d7 100644 --- a/packager/windows/remove.bat +++ b/packager/windows/remove.bat @@ -1,10 +1,10 @@ @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