TwitterTwitter FacebookFacebook FlickrFlickr RSSRSS

20100412

WinPE中如何修改系統屬性常規中OEM信息

 

(以下均為在XP下製作)

 

用到的工具:Batch Image Resizer(批量調整圖片大小)綠色版,解壓待用。這裡下載:

 

http://www.onegreen.net/Soft_Url.asp?UrlID=1&SoftID=992

            光盤映像工具 UltraISO (一般的PE都有)

            dragmkcab.rar,解壓待用,這裡下載:http://bbs.wuyou.com/viewthread.php?

 

tid=109783&extra=page%3D5

 

  1、用WinRAR解壓MiniPE\WinPE.IS_,得到WinPE.ISOWinPE.ISO裡面的SYSTEM32目錄下面可能有 oeminfo.ini

 

oemlogo.bmp,如果沒有可以把製作好的oeminfo.ini和加入到SYSTEM32里面。oemlogo.bmp,其中 oeminfo.ini是文字

 

部分,oemlogo.bmp是圖像.

 

  其實系統屬性常規中OEM信息只是由兩個文件組成的!一個是oemlogo.bmp(製造商的圖片信息)一個是

 

oeminfo.ini(技術支持的信息)。下面是製作過程:

  a 隨便建立一個文本文件,命名為oeminfo.ini(擴展名是ini的)然後在裡面輸入以下內容:

 

  [General]

 

  Manufacturer=DEEPIN專用版

 

  Model=DEEPIN專用版

 

  [OEMSpecific]

 

  SubModel=DEEPIN專用版

 

  SerialNo=

 

  OEM1=

 

  OEM2=

 

  [SupportInformation]

 

  Line1="DEEPIN專用"

 

  Line2="聯繫人:xxx"

 

  Line3="聯繫電話:xxxxxxx"

 

  Line4="聯繫QQ"

 

  Line5="聯繫地址:xxxxxxxx"

 

  b 修改為你自己的信息,修改DEEPIN專用版,DEEPIN專用聯繫電話:xxxxxxx等信息為自己的信息(注意:技術

 

信息都要用引號,想多要一行,可自己加,只要把Line5改成Line6Line7……等

  c 製作一張大小為191120的圖片(小一點也可以),圖片格式為BMP。打開BatchImageResizer.exe,添加你挑

 

選好的一張圖,輸出格式選BMP,勾上「重命名」,勾上「調整尺寸」,類型選上「忽略縱橫比」,寬度:191,高度

 

120,點「開始」,得到pic001.BMP,把pic001.BMP重命名為oemlogo.bmp

    2、用UltraISO打開WinPE.ISO,在SYSTEM32加入oeminfo.inioemlogo.bmp,如果 WinPE.ISO\SYSTEM32里面已有

 

oeminfo.inioemlogo.bmp,可刪除或覆蓋掉,保存WinPE.ISO,把WinPE.ISO拖到dragmkcab.CMD,得到 WinPE.CAB

 

WinPE.CAB重命名為WinPE.IS_

    3、將新的WinPE.IS_替換舊的WinPE.IS_,製作完成。

 

   複雜一點的看這裡http://www.xmfish.com/thread-654035-1-1.html

Windows PE :部署、測試與診斷系統環境

Windows PE :部署、測試與診斷系統環境

Windows PE Windows Preinstallation EnvironmentWindows 預先安裝環境)的簡稱,這項技術的原始目的,是為了提供輕量級的 Windows 執行環境,以簡化 OEM 廠商將 Windows 作業系統部署到電腦。而隨著 Windows 及其應用程式和驅動程式越加普及,OEM 廠商以及應用軟體廠商對也越加發覺 Windows PE 的確非常實用,也促進了 Windows PE 技術的持續發展。

註:Windows PE 不是 Live CD 不能取代原有的作業系統,僅做為部署、測試環境、診斷、復原系統 ]之用,目前常用於被植入木馬或 Rootkit 之後移除相關程式之用。

Windows PE 的特點:

Windows PE 是簡化版的Windows XPWindows Server 2003,放在一片可直接啟動的CDDVD光碟,特點是啟動時出現 Windows XP Windows Server 2003 的啟動畫面,以及出現簡單的圖形介面,但沒有「開始」的工作列,亦不能執行Internet Explorer

Windows PE 支援網路,但只附帶以下工具:命令提示字元、記事本和一些DOS命令提示字元的維護工具。

Windows PE 的版本演進:

Windows PE 1.0Windows XP Professional):能從 PXE 及光碟開機。

Windows PE 1.1Windows XP Professional SP1):支援分散式檔案系統(DFS),並且完整具備從硬碟開機的能力。

Windows PE 1.2Windows Server 2003 標準版或企業版):Windows Server 2003 Windows XP Professional SP1 皆可製作 Windows PE 1.2

Windows PE 2004/1.5Windows XP Professional SP2):從這個版本開始,Windows PE 也另以年份表示版本,而新的功能包括支援 WMI Windows 防火牆;前者能加入額外的驅動程式類型,能在開機之後重新掃瞄隨插即用的硬體。

Windows PE 2005/1.6Windows Server 2003 SP1):這個版本開始支援 RAMDisk USB 隨身碟開機。要注意的是,雖然 Windows XP Professional SP2 Windows Server 2003 SP1 都能製作出 Windows PE 1.6,但只有 Windows Server 2003 SP1 才能製作出支援 RAMDisk USB 隨身碟開機的 Windows PE

Windows PE 2006/2.0Windows Vista):Windows PE 2.0 包括 Windows PE 1.6 中的所有功能,並加入了許多新功能和元件,包括:

  • Microsoft Windows Imaging (WIM) 映像內開機
  • 驅動程式插入與即時的隨插即用支援
  • 可寫入的塗銷空間 (即使是從 CD 開機)
  • 輕鬆加入選用元件 - Microsoft 核心可延伸標記語言服務、Windows 修復環境、Microsoft Data Access Components
  • 語言套件
  • 自動檔案支援
  • 建立與更新 Windows PE 的工具已獲得改善

註:Microsoft 官方並沒有生產Windows PE 3.0 ]。這個版本是由網路上某位大大自行利用改造出來的,如你想使用這個版本請自行評估風險

--------------------------------------------------------------------

Windows PE 是個輕量級的 Windows,而且通常有其特定目的(例如安裝、部署 Windows,或者離線備份資料),因此 Windows PE 的功能自然不若一般的 Windows 完整。

以下簡述目前 Windows PE 的功能限制:
預設僅包含磁碟及網路功能及重要的 Win32 API,以下是 Windows PE 不支援的 Windows API

  1. 存取控制
  2. NetShow 劇院系統管理
  3. OpenGL
  4. 電源選項
  5. 列印及列印多工緩衝處理程式
  6. 靜態映像
  7. 磁帶備份
  8. 終端機服務
  9. 使用者設定檔
  10. 桌面
  11. Windows Management Instrumentation
  12. Windows 多媒體
  13. Windows Shell


Windows PE 的限制:

  • 持續使用 24 小時之後會重新開機,這是為了避免 Windows PE 成為盜版作業系統。
  • Windows PE 雖然提供網路功能,但並無法讓您從網路另一端存取 Windows PE 電腦裡的檔案或資料夾。
  • 僅能對獨立根目錄進行分散式檔案系統(DFS)的名稱解析,不支援網域根目錄。
  • 僅支援 TCP/IP(包含 IPv4 IPv6)及 NetBIOS over TCP/IP,不支援諸如 SPX/IPX 等其他的網路通訊協定。
  • Windows PE 雖然支援 PXE,但不見得能支援所有廠牌的 PXE 裝置;而RIS伺服器對 Windows PE 網路啟動的支援程度最高。
  • Windows PE 不會儲存所指定的磁碟機代號,也就是說重開機之後會回復成預設順序。
  • 預設的英文版 Windows PE 大小為 160 MB32 位元 Windows PE 最多可縮到 86 MB;中文版的 Windows PE 大小則為 300 370 MB 左右。Windows PE 雖然可藉由客製化減小,但仍然大的無法存入一般磁片(雖然可存入 LS-120/LS-240 磁片並啟動 Windows PE,但效能不佳)。
  • 無法從 Windows XP Home Edition 建置的 Windows PE
  • 不支援 Microsoft .NET Common Language Runtime
  • 32 位元及 64 位元版本的 Windows PE 各不支援 Windows on Windows 32WOW32)及 Windows on Windows 64WOW64)子系統,因此 32 位元 Windows PE 無法執行 16 位元 Windows 程式,而 64 位元 Windows PE 無法執行 32 位元 Windows 程式。
  • 32 位元版本的 Windows PE 才能安裝 32 位元版本的 Windows;同理,64 位元版本的 Windows PE 才能安裝 64 位元版本的 Windows
  • Windows PE 能在啟動 Windows 安裝程式之前,設定、分割電腦裡的硬碟。但若啟動 Windows 安裝程式之前,就以 Diskpart.exe 將硬碟轉換成動態磁碟,Windows 安裝程式會將這些硬碟視為外來而無法存取這些硬碟裡的磁區。
  • Windows PE 不支援以 Windows Installer 封裝的應用程式。
  • 記憶體最小需求為 256 MB

--------------------------------------------------------------------

OEM 廠商 Windows PE 官方下載處:

Windows PE 1.6 含之前的版本及OPK 是只有提供OEM 廠商或與微軟簽訂大量授權合約的用戶才能取得,並不提供給一般使用者使用。

Windows PE 2004/1.5 for Windows XP Professional SP2

Windows PE 2005/1.6 for Windows Server 2003 SP1

 

Windows PE 2006/2.0Windows Vista)下載處:

Windows Vista 推出後,WAIK 將可免費 Microsoft 下載,其中將包括下列元件:Windows PE 2.0Windows Deployment ServicesImageX Windows System Image ManagerWindows System Image Manager 是我先前從未提過的工具,可讓您建立 unattend.xml 檔案,以自動執行安裝。也包括所有工具的完整說明文件。請注意,取得 WAIK 的建議方法是從 microsoft.com/desktopdeployment 下載完整的 Business Desktop Deployment Solution Accelerator (BDD),它不僅提供 WAIK,還提供 User State Migration Tool (USMT)Application Compatibility Toolkit (ACT)BDD 也包括其他工具及指導,可協助您順利部署 Windows Vista

Windows 自動化安裝套件 (WAIK) 下載處

--------------------------------------------------------------------

內文引用資料:

簡介 Windows PE

Windows PE

 

相關資源:

Windows 預先安裝環境技術概觀

Microsoft Windows 預先安裝環 (WinPE)

準備迎接 Windows PE 2.0

Windows Automated Installation Kit

 

mbstowcs and MultiByteToWideChar

mbstowcs and MultiByteToWideChar

       

mbstowcs()MultiByteToWideChar()的簡化版,除了參數少了,本來以為參數少了一些,並不會影響使用,今天卻發現了它的一個小問題,在中文字符的轉換上,前者似乎無法對中文字符進行處理,轉換後顯示成亂碼,而後者則不會。

 

代碼:

WCHAR strPath[MAX_PATH];

CHAR buf[] =   i am 中國人」;

 

// 簡化版對中文字符的轉換不好

//   mbstowcs( strPath, buf, MAX_PATH );

// 還是這個比較好

MultiByteToWideChar(CP_ACP, 0, buf, strlen(buf), strPath, MAX_PATH );

///////////////////////////////////////////////////////////////////////

 

void CharArrayToWCAHRArray(const char* pSrc,int nSrcLen,WCHAR *szpDst)

{

 int   nwLen   =   MultiByteToWideChar(CP_ACP,   0,   pSrc, 

  nSrcLen,   NULL,   0);

 

 MultiByteToWideChar(CP_ACP,   0,   pSrc,   nSrcLen,   szpDst, 

  nwLen+1); 

 

}

 

////////////////////////////////////實例 ///////////////////////////////////////////

 

#include "stdafx.h"

#include <windows.h>

#include <commctrl.h>

 

void CharArrayToWCAHRArray(const char* pSrc,int nSrcLen,WCHAR *szpDst)

{

 int   nwLen   =   MultiByteToWideChar(CP_ACP,   0,   pSrc, 

  nSrcLen,   NULL,   0);

 

 MultiByteToWideChar(CP_ACP,   0,   pSrc,   nSrcLen,   szpDst, 

  nwLen+1); 

 

}

int _tmain(int argc, _TCHAR* argv[])

{

 WCHAR strpath[MAX_PATH];

 CHAR buf[] = "i am 中國人";

 //mbstowcs(strpath,buf,MAX_PATH);

 CharArrayToWCAHRArray(buf,strlen(buf)+1,strpath);

 //RETAILMSG(1,(TEXT("strpath==%s")strpath));

 RETAILMSG(1,(L"buf==%d\r\n",strlen(buf)));

    RETAILMSG(1,(L"strpath==%d\r\n",wcslen(strpath)));

 RETAILMSG(1,(L"strpath==%s\r\n",strpath));

 return 0;

}

8 tips for super vacation snapshots

8 tips for super vacation snapshots

Shooting great vacation photos, even with that new digital camera, takes smarts and know-how. To help you make the most of your digicam on your next trip, Microsoft At Home asked top photo gurus for their professional tips. Badly taken vacation snaps can be awfully disappointing, but good ones are a lifelong treasure.

Power up

 

·         Learn to manage power—dead batteries ruin great photo ops. Always take two sets of batteries and a charger, says Jorge DaSilva, manager of Henry's School of Imaging. Use one set in the camera while the other charges.

·         Or, invest in a super-long-lasting, clip-on, rechargeable Lithium Ion power pack like the DigiPower DPS-9000, which can be used with most digital cameras, suggests photo instructor Larry Frank, a senior product specialist at photo wholesaler DayMen Photo Marketing Inc.

·         Find out what kind of power adapter you need for foreign parts—possibly a transformer, more likely just a plug adapter—and get it before you leave, says freelance nature and travel photographer Danny Catt. If you can't tell what you need from the camera's manual, ask the retailer where you bought it.

·         The digicam's LCD screen is a power hog—turn it off and use the optical view finder most of the time, Frank says.
Hint: Do use the LCD when shooting close-ups to avoid inaccurately framed shots.

Protect your gear

·         Digicams are very susceptible to water damage. After one of Catt's cameras got a little damp, "it was toast," he says. Stay away from water and carry your camera in a waterproof bag.

·         Add a pack of silica gel to reduce moisture further, DaSilva suggests. You can buy one in camera stores.

·         When going through airport security, put memory cards in the plastic tray provided to avoid x-rays, metal detectors, or anything with a magnetic field.

Pack enough memory

·         The camera's manual should tell you how many shots at a given size and quality you can store on your memory card. Use this information to calculate the storage required for each picture, then multiply by the number of pictures you expect to take.
Hint: Biggest size = highest resolution for making jumbo print enlargements.

·         Conserve by using lower resolution for shots you know you'll only want to print small or e-mail, says DaSilva.

·         Buy all the storage you need and maybe a little more before you travel, Catt says, so you can be sure it works.

·         Exploit your digicam's greatest feature: edit as you go—delete shots that don't work.
Hint: Take the camera's AV cord (virtually all come with one), and plug it into a hotel room TV to get a better look at the pictures. If you travel a lot, get a camera that has playback for different television systems around the world.

Know your camera

Most digicams don't take the picture the split second you click the shutter, Catt notes. Try to anticipate the shot. Then check the LCD to make sure you got it. If not, shoot again.

·         When setting exposure, if in doubt, err towards underexposure (too dark), Frank advises. Overexposed digicam shots are prone to burnouts—bright parts of the picture rendered as pure white.
Hint: Avoid shots that include the sun, Catt says.

·         Understand and exploit creative manual options, Frank says. "Use a fast shutter speed to stop action, for example, or a slow shutter speed to create a pleasing blur when shooting a waterfall or something with implied movement."

·         Also understand and exploit advanced digital features, Catt urges. Many digicams help you shoot pictures you can later "stitch" into panoramas using a computer. Many will also apply special effects black and white, sepia tone, polarization. "Sometimes you have to think outside the photographic box," he says.

Compose carefully

·         Make the main subject BIG, says Frank. "Assume your audience has the attention span of a three-year-old."

·         More often than not, avoid placing your main subject dead center. Imagine a tic-tac-toe grid overlaying the picture frame, DaSilva suggests. Try to place the subject at one of the grid's intersections.

·         When shooting landscapes and sunsets, Catt says, decide which is pictorially more important: land or sky. If land, place the horizon in the top third of the picture, if sky, place it in the bottom third seldom in the middle.

·         Look for natural frames in the scene to better compose the main subject, Da Silva says a church spire framed by the arches of a cloister, for example.

·         Look for lines in the scene, Catt suggests a road or footsteps in the sand and try to frame the picture so the lines lead the eye from the left toward your main subject.

What to shoot—and when

·         Shoot more often in the half hour to two hours before and after sunrise and sunset. The low-angle light at these times produces dramatic and pleasing results, says DaSilva.
Hint: When shooting in low light—outside or in—always use a lightweight mini tripod to hold the camera steady for the slower shutter speeds required, DaSilva says.

·         "Try and look below the surface" when photographing your travels, Frank explains. Look for shots that capture something of the local ambience and culture.

·         Check calendars ahead of time for festivals and other special events you can shoot. Check out harbor areas and amusement parks. Shoot farmers' markets early in the morning when locals are shopping.
Hint: Learn a few words of the local language and always ask people before taking their pictures. Most happily agree.

Organize and share what you shoot

·         Photo collages celebrate important events and themes in our lives. Pick a folder, press a button, and in a few minutes Microsoft AutoCollage presents you with a unique memento to print or e-mail to your family and friends.

·         Learn about more innovative ways to make the most out of your photographs on the Microsoft Professional Photography site.

·         Tell your vacation story. That's right, your vacation is a story, with a beginning, middle, and an end. Capturing your photos in a way that tells the story is the first step in really taking your vacation home with you and sharing it with others.

·         Use Windows Live Spaces to share your photos with family and friends.

Add stunning photo effects

·         Microsoft Photosynth transforms regular digital photos into a three-dimensional, 360-degree experiences. This new service changes the way you experience and share photos.

·         Combine black and white and color in one image and other cool effects. With many of today's digital imaging software packages, like the ones on the Microsoft Professional Photography site or Adobe Photoshop Elements, you can apply amazing effects to your photos that used to be available only to professional photographers.
Hint: Before you start, make a working copy of your original image by saving it with a new file name. You can do this by opening the image and typing a "bw" at the end of the filename when you save it to differentiate the working image from the original. For example, if the image file name is "Leaf," save the image as "Leafbw." By doing all your work on your working copy of the image, you can always start over with a fresh copy of the original if you don't like the results.

·         You can easily convert color photos to black and white by using your favorite image-editing program. With some camera models you can even do this in the camera before downloading the image to your computer. Once the image is on your computer, you can use your image-editing program to adjust contrast and brightness to create a photograph that's reminiscent of an Ansel Adams.
Hint: Silhouettes look terrific in black and white, as do old buildings. The effect adds drama. But be sure to reserve this technique for landscapes or buildings. Photos of family members in black and white may not be as warm as you want them to be.

·         Fill the frame for dramatic effect. By tilting the camera down about a third of a frame, you can create a much different effect than simply capturing a landscape. Look carefully at the picture you're framing before you click the button. Experiment by moving the camera up and down, side to side. Tilt the camera to various angles and see what it shows you. Fill the frame with the object that interests you most. If your digital camera has an LCD screen, you can use it to improve your sensitivity to the entire scene.

·         Get up close! Most people see a group of flowers, say "Wow!", and snap a shot of the whole bunch. Don't settle for this canned shot; zoom in on the details. Almost every camera has a magnify or macro button that lets you get close and create a much more interesting photo.

·         Change your perspective. Most people stand up and shoot their photographs at a 45-degree angle. Try bending over, getting down on your knees, or standing above your subject.

Article written by Gerry Blackwell and adapted from an original piece from Microsoft Home Magazine.

 

20100411

How to Enable or Disable Windows 7 Transparency

How to Enable or Disable Windows 7 Transparency

 

information   Information

This will show you how to enable or disable tranparency for windows, the Start Menu, and the taskbar in Windows 7.

warning   Warning

You will not have the Transparency option if you have a Basic and High Contrast Theme instead of a Aero Theme.

Aero Requirements to be Enabled in Windows 7:
NOTE: If Aero is not enabled, then Transparency will not work even when enabled.

  • 1 GHz 32-bit or 64-bit processor
  • 1 GB of system memory
  • A graphics card with support for DirectX 9 graphics with at least 128 MB of memory.
  • The graphics card must support Pixel Shader 2.0 and the Windows Display Driver Model (WDDM).
  • You must be have True Color (32 bit) set instead of High Color (16 bit).
  • Be sure to have the correct Windows 7 driver version installed for your graphics card/chip.
  • The desktop composition and Animate controls and elements inside windows options enabled in Visual Effects.
  • Refresh or update your WEI score.
  • The Desktop Window Manager Session Manager and Themes Services need to be set to Start and Automatic.




Here's How:

1. Right click on a empty space on the desktop and click on Personalize. (See screenshot below)

http://www.sevenforums.com/attachments/tutorials/183d1230590680-transparency-enable-disable-right_click.jpg

2. Click on the Window Color link at the bottom of the window. (See screenshot below)
NOTE: The name in gray under Windows Color is the current color selected.

Transparency - Enable or Disable-personalize.jpg

3. To Enable Transparency -

A) Check the Enable transparency box. (See screenshot below step 5)





B) Adjust your Color intensity slider for how transparent you want it.

  • Slide LEFT = More transparent
  • Slide RIGHT = Less to not transparent

C) Go to step 5.

4. To Disable Transparency -

A) Uncheck the Enable transparency box. (See screenshot below)

5. Click on OK.

Transparency - Enable or Disable-color_and_appearance-1.jpg

 

製作可用來安裝Windows 7的USB碟

製作可用來安裝Windows 7USB

如果你和筆者一樣沒有外接DVD光碟機但又想安裝Windows 7U100上的話,可以用USB隨身碟或USB外接硬碟來取代。
底下就是製作的步驟:

1.
首先在U100XP系統中安裝像Daemon Tool Lite之類可以把iso檔掛載成虛擬光碟的軟體。
2.
下載Windows 7 Betaiso
3.
準備一支4GB或更大可用空間的USB隨身碟,或一台USB外接硬碟。如果磁碟中有資料,最好先行備份。(請別拿安裝有作業系統的硬碟,否則原有系統將無法再開機)
4.
USB隨身碟或外接硬碟接到U100
5.
打開磁碟管理員程式,將USB隨身碟/外接硬碟的磁區設為Active(如果已是Active則省略)
6.
USB隨身碟/外接硬碟快速格式化成NTFS (這一步驟可省略,筆者用的是一顆存有資料的外接硬碟,為了保留資料,所以省略此步驟)
7.
打開Daemon Tool Lite並將Windows 7 Betaiso檔掛載成虛擬光碟
8. (
底下步驟將假設虛擬光碟是G槽,USB隨身碟/外接硬碟在E)
9.
執行命令提示字元(cmd)
10.
打入命令 G:\boot\bootsect /nt60 E: 並按Enter(這一步驟將會把開機檔灌入USB碟中)
11.
打入命令 xcopy G: /s/e/f E: 並按Enter (這一步驟將會把iso檔內的檔案拷貝到USB碟中)

大功告成,你的USB碟將可用來安裝Windows 7

 

 

 
PUMA螢光夜跑