echo Desktop menu icon path : %desktop_menu_icon_path%\r
echo Setting shortcut...\r
wscript.exe %MAKESHORTCUT_PATH% /shortcut:"%em_shortcut_name%" /target:"%program_path%\%em_execute_file%" /icon:"%desktop_menu_icon_path%\%em_icon_file%"\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
echo COMPLETE\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 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
\r