Initialize
[sdk/emulator/qemu.git] / package / emulator.install.windows
1 @ECHO OFF\r
2 set vtm_shortcut_name=Emulator Manager\r
3 set execute_path=Emulator\bin\r
4 set vtm_execute_file=emulator-manager.exe\r
5 set icon_path=Emulator\skins\icons\r
6 set vtm_icon_file=vtm.ico\r
7 \r
8 set program_path=%INSTALLED_PATH%\%execute_path%\r
9 set desktop_menu_icon_path=%INSTALLED_PATH%\%icon_path%\r
10 \r
11 echo Program path : %program_path%\r
12 echo Desktop menu icon path : %desktop_menu_icon_path%\r
13 echo Setting shortcut...\r
14 wscript.exe %MAKESHORTCUT_PATH% /shortcut:"%vtm_shortcut_name%" /target:"%program_path%\%vtm_execute_file%" /icon:"%desktop_menu_icon_path%\%vtm_icon_file%"\r
15 echo Setting registry\r
16 reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"  /f /v %program_path%\%vtm_execute_file% /t REG_SZ /d RUNASADMIN\r
17 echo COMPLETE\r