[Title] add admin authority to emulator manager (on windows)
authormunkyu.im <munkyu.im@samsung.com>
Thu, 22 Dec 2011 01:15:03 +0000 (10:15 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Thu, 22 Dec 2011 01:15:03 +0000 (10:15 +0900)
[Type]Enhancement
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/package/install.bat
tizen/package/remove.bat

index 8e90d37..720cbac 100644 (file)
@@ -14,4 +14,6 @@ echo Program path : %program_path%
 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
index 7ad9865..30c2fbb 100644 (file)
@@ -1,6 +1,10 @@
 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