Install: Added double quotes into install & remove scripts
authorjinhyung.jo <jinhyung.jo@samsung.com>
Tue, 30 Jun 2015 06:54:50 +0000 (15:54 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 1 Jul 2015 05:37:05 +0000 (14:37 +0900)
For the file path string that contains a space character in Windows

Change-Id: I77a3e12df9ea8459e5af8c228d964a1a3834dda1
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
(cherry picked from commit 0e842dc6b516b6b1ad57ce39ea203f7a2b0fb6e0)

package/emulator-manager.install.windows
package/emulator-manager.remove.windows

index ddcc41e..170e8da 100755 (executable)
@@ -13,11 +13,11 @@ echo Program path : %program_path%
 echo Desktop menu icon path : %desktop_menu_icon_path%\r
 echo Setting shortcut...\r
 if not "%MAKESHORTCUT_PATH%" == "" (\r
-       wscript.exe %MAKESHORTCUT_PATH% /shortcut:"%em_shortcut_name%" /target:"%program_path%\%em_execute_file%" /icon:"%desktop_menu_icon_path%\%em_icon_file%"\r
+       wscript.exe "%MAKESHORTCUT_PATH%" /shortcut:"%em_shortcut_name%" /target:"%program_path%\%em_execute_file%" /icon:"%desktop_menu_icon_path%\%em_icon_file%"\r
 )\r
 echo Setting registry\r
-reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"  /f /v %program_path%\%em_execute_file% /t REG_SZ /d RUNASADMIN\r
+reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"  /f /v "%program_path%\%em_execute_file%" /t REG_SZ /d RUNASADMIN\r
 \r
 :: make $USERNAME.lock file\r
-echo %SDK_DATA_PATH%> %program_path%\.%USERNAME%.lock\r
+echo %SDK_DATA_PATH%> "%program_path%\.%USERNAME%.lock"\r
 echo COMPLETE\r
index f3d5741..3251525 100755 (executable)
@@ -2,11 +2,11 @@ set em_shortcut_name=Emulator Manager
 set execute_path=tools\emulator\bin\r
 set em_execute_file=emulator-manager.exe\r
 set program_path=%INSTALLED_PATH%\%execute_path%\r
-ECHO Start menu path=%start_menu_programs_path%\r
+ECHO Start menu path=%programs_path%\r
 echo delete from registry\r
-reg delete "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"  /f /v %program_path%\%em_execute_file%\r
-wscript.exe %REMOVE_SHORTCUT% /shortcut:%em_shortcut_name%\r
+reg delete "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"  /f /v "%program_path%\%em_execute_file%"\r
+wscript.exe "%REMOVE_SHORTCUT%" /shortcut:"%em_shortcut_name%"\r
 \r
 :: Remove %username%.lock file\r
-del %INSTALLED_PATH%\%execute_path%\.%USERNAME%.lock\r
+del "%INSTALLED_PATH%\%execute_path%\.%USERNAME%.lock"\r
 \r