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
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