[Title] Modify install, remove script for windows
authorTaeyoung Son <taeyoung2.son@samsung.com>
Thu, 12 Jan 2012 07:17:28 +0000 (16:17 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Thu, 12 Jan 2012 07:17:28 +0000 (16:17 +0900)
[Type] Feature
[Module] Sub
[Priority] Minor
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]

Change-Id: I2c073e4ed74306823127f99953f0b3dba8be00e8

packager/windows/install.bat
packager/windows/remove.bat

index d8d24d9..8ec0417 100644 (file)
@@ -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
index b50e7a8..4d9c3d7 100644 (file)
@@ -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