modify Windows launch script; version up 80/14980/1
authorziv.chang <ziv.chang@intel.com>
Tue, 14 Jan 2014 09:57:21 +0000 (17:57 +0800)
committerziv.chang <ziv.chang@intel.com>
Tue, 14 Jan 2014 09:59:29 +0000 (17:59 +0800)
modify Windows launch script

Change-Id: I81d5f1c431d9b4f224993841fba4013e04f3c771
Signed-off-by: ziv.chang <ziv.chang@intel.com>
package/addingFiles/windows/common/tools/websimulator/simulator.bat
package/changelog
package/pkginfo.manifest

index 6b83e8b..94573d5 100755 (executable)
@@ -1,4 +1,22 @@
-ver | find "Version 6" && set DIR=%LOCALAPPDATA%|| set DIR=%HOMEDRIVE%%HOMEPATH%\Local Settings\Application Data\r
-set CHROME=%DIR%\Google\Chrome\Application\chrome.exe\r
+@echo off\r
+\r
+set CHROME=chrome.exe\r
+set REGPATH=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%CHROME%\r
+\r
+reg query "%REGPATH%" >nul 2>nul\r
+\r
+if %ERRORLEVEL% == 1 (goto err)\r
+\r
+for /f "tokens=2,*" %%i in ('reg query "%REGPATH%"') do (\r
+    set PATH=%%j\r
+)\r
+\r
+if not exist "%PATH%\%CHROME%" (goto err)\r
+\r
 set /p OPTIONS= <%CD%\sdk-wrt-options.txt\r
-"%CHROME%" %OPTIONS% --app="file://%CD%/web/index.html" --user-data-dir=%CD%/sdk-profile-data/\r
+start /d "%PATH%" %CHROME% %OPTIONS% --app="file://%CD%/web/index.html" --user-data-dir=%CD%/sdk-profile-data/\r
+exit\r
+\r
+:err\r
+echo ATTENTIONS: Google Chrome is required to be installed before launching Web Simulator.\r
+pause\r
index 4b1a5a1..332f1c4 100644 (file)
@@ -1,3 +1,6 @@
+* 2.0.25
+- modify Windows launch script
+== ziv.chang <ziv.chang@intel.com> 2014-01-14 18:00
 * 2.0.24
 - bug fix
 == ziv.chang <ziv.chang@intel.com> 2014-01-03 17:30
index 94166aa..fbe010f 100644 (file)
@@ -1,4 +1,4 @@
-Version:2.0.24
+Version:2.0.25
 Maintainer:hyeongseok heo <hyeong-seok.heo@samsung.com>, gyeongseok seo <gyeongseok.seo@samsung.com>, jihoon song <jihoon80.song@samsung.com>, changhyun lee <changhyun1.lee@samsung.com>, bonyong lee <bonyong.lee@samsung.com>
 
 Package:websimulator-core