echo Desktop menu icon path : %desktop_menu_icon_path%\r
echo Setting shortcut...\r
wscript.exe %MAKESHORTCUT_PATH% /shortcut:"%start_menu_programs_path%\%CATEGORY%\%vtm_shortcut_name%" /target:"%program_path%\%vtm_execute_file%" /icon:"%desktop_menu_icon_path%\%vtm_icon_file%"\r
+echo Setting registry\r
+reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /f /v %program_path%\%vtm_execute_file% /t REG_SZ /d RUNASADMIN\r
echo COMPLETE\r
set vtm_shortcut_name=Emulator Manager\r
+set execute_path=Emulator\bin\r
+set vtm_execute_file=emulator-manager.exe\r
+set program_path=%INSTALLED_PATH%\%execute_path%\r
:: delims is a TAB followed by a space\r
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\r
ECHO Start menu path=%start_menu_programs_path%\r
-\r
+echo delete from registry\r
+reg delete "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /f /v %program_path%\%vtm_execute_file%\r
del "%start_menu_programs_path%\%CATEGORY%\%vtm_shortcut_name%.lnk"\r