2012年2月11日 星期六

bcdedit 變更Default開機OS(Win8 and Win7)

1. 雙OS  Windows 7 / Windows 8
2. 後裝 Windows 8 成為Default OS
3. Command mode: failure
3-1 Boot Configuration Data Edit
C:\>bcdedit

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume1
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {default}
resumeobject            {db075fb7-2662-11e1-83c4-ff9d1aa23ceb}
displayorder            {default}
                        {current}
toolsdisplayorder       {memdiag}
timeout                 30
custom:26000025         Yes

Windows 開機載入器
-------------------
identifier              {default}
device                  partition=D:
path                    \Windows\system32\winload.exe
description             Windows Developer Preview
locale                  en-US
inherit                 {bootloadersettings}
recoverysequence        {db075fb9-2662-11e1-83c4-ff9d1aa23ceb}
recoveryenabled         Yes
osdevice                partition=D:
systemroot              \Windows
resumeobject            {db075fb7-2662-11e1-83c4-ff9d1aa23ceb}
nx                      OptIn
custom:250000c2         1

Windows 開機載入器
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  zh-TW
inherit                 {bootloadersettings}
recoverysequence        {db075fb5-2662-11e1-83c4-ff9d1aa23ceb}
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \Windows
resumeobject            {db075fb3-2662-11e1-83c4-ff9d1aa23ceb}
nx                      OptIn


3-2. 變更Default OS by ID 如下

C:\>bcdedit /default {db075fb3-2662-11e1-83c4-ff9d1aa23ceb}
操作順利完成。

C:\>bcdedit

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume1
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {default}
resumeobject            {db075fb7-2662-11e1-83c4-ff9d1aa23ceb}
displayorder            {db075fb8-2662-11e1-83c4-ff9d1aa23ceb}
                        {current}
toolsdisplayorder       {memdiag}
timeout                 30
custom:26000025         Yes

Windows 開機載入器
-------------------
identifier              {db075fb8-2662-11e1-83c4-ff9d1aa23ceb}
device                  partition=D:
path                    \Windows\system32\winload.exe
description             Windows Developer Preview
locale                  en-US
inherit                 {bootloadersettings}
recoverysequence        {db075fb9-2662-11e1-83c4-ff9d1aa23ceb}
recoveryenabled         Yes
osdevice                partition=D:
systemroot              \Windows
resumeobject            {db075fb7-2662-11e1-83c4-ff9d1aa23ceb}
nx                      OptIn
custom:250000c2         1

Windows 開機載入器
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  zh-TW
inherit                 {bootloadersettings}
recoverysequence        {db075fb5-2662-11e1-83c4-ff9d1aa23ceb}
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \Windows
resumeobject            {default}
nx                      OptIn

4. The easy way by Winodws 7
4-1 電腦右鍵(內容)
4-2 進階
4-3 啟動及修復設定
4-4 選取Default boot OS
OK!


2012年2月10日 星期五

Install local cab file (Windows 7)

Ref: http://www.mydigitallife.info/how-to-install-windows-7-local-packs-localpacks-cab-update-file/
1. Prepare local cab file
2. Open command mode with administrator role
3. dism /online /add-package /PackagePath:"...xxx.cab"

2012年2月5日 星期日

MSDNAA IE(X64) Error

There was an error launching File Transfer Manager.
...
The error may be occur due to that I used the IE(x64) to download files.


The error was solved by employ IE(x32) and the file transfer is proceeded.

2012年1月31日 星期二

Direct3D 11.1 Simple Stereo 3D Sample

1. Direct3D 11.1 Simple Stereo 3D Sample
    This sample demonstrates how to add a stereoscopic 3D effect to Metro style C++ apps using 
    Direct3D. It also demonstrates how to respond to system stereo changes in Direct3D.
2. The stereo function can not be tested since projector can't be installed.
    

Windows 8 + VS 2011

1. Download Windows 8 + VS 2011
2. Make a bootable USB and install into a ASUS A43S.

2-1 Command mode by "Administrator role"
C:\Windows\system32>diskpart

Microsoft DiskPart 版本 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
在電腦: T400-CSJOUX64

DISKPART> list disk

  磁碟 ###  狀態           大小     可用     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  磁碟 0    連線             1405 MB      0 B
  磁碟 1    連線              465 GB      0 B
  磁碟 2    連線             7663 MB      0 B

DISKPART> select disk 2

磁碟 2 是所選擇的磁碟。
  
DISKPART> create partition primary

找不到可用的空間。可能是因為沒有足夠的可用空間可以您指定的大小與位移建立磁碟
分割。請指定其他大小與位移值或兩者皆不指定,以建立最大大小的磁碟分割。可能是
磁碟是使用 MBR 磁碟分割格式來分割,且磁碟包含 4 個主要磁碟分割 (無法再建立
其他磁碟分割),或包含 3 個主要磁碟分割與 1 個延伸磁碟分割 (只能建立邏輯磁
碟機)。

 --------- USB disc 已有 Partition 造成上述訊息
DISKPART> list partition

  磁碟分割  ###  類型              大小     位移
  -------------  ----------------  -------  -------
  磁碟分割  1    主要                7663 MB    31 KB

DISKPART> select partition 1

磁碟分割 1 是所選擇的磁碟分割。

DISKPART> active

DiskPart 已標記目前的磁碟分割為使用中。

DISKPART> format fs=NTFS

  100 % 已完成

DiskPart 已順利格式化磁碟區。

DISKPART> exit

Follow the procedure as described in reference"

D:CD BOOT and hit enter. Where “D” is your DVD drive letter.
CD BOOT and hit enter to see the below message.
BOOTSECT.EXE/NT60 H:


Xcopy d: x: /s 




3. Windows 8





































4. VS2011

2012年1月29日 星期日

'Microsoft.Research.Kinect.Nui.Runtime.Runtime()' 已過時: 'This constructor to be removed. Use Runtime.Kinects[0] instead.

1. Re-Install windows 7 x64 and play with Kinect.
2. Error : 'Microsoft.Research.Kinect.Nui.Runtime.Runtime()' 已過時: 'This constructor to be removed.  Use Runtime.Kinects[0] instead. can be solved by
        // initialize kinect

        // nui = new Runtime();
           nui = Runtime.Kinects[0];
3. The ref error by remove and re-add reference  Microsoft.Research.Kinect

2012年1月3日 星期二

ServerAppFabric Deployment

1. 測試ServerAppFabric Sample Order Application Deployment.
2. 看來並沒有那麼麻煩。
3. Testing Sample application.
4. 封裝 WCF/WF 應用程式 (obj\Debug\Package\SaleService.zip)
4-1 右鍵屬性
4-2 輸入發佈程式名稱
4-3 發佈壓縮檔位置













5. 開啟遠端IIS管理介面
6. 匯入