- Modified to skip running wscript.exe in DIBS environment.
Change-Id: I9332139ced429e5e0f77c5e3850035fc28048c43
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
echo Program path : %program_path%\r
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
+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
+)\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
\r