(copy from my another site)
由於要修改去年寫給自己用的小工具 (WLWPlurk),看到其他在Codeplex上面的人都是用WIX(Windows Installer XML)來做包裝plugin的動作。
所以也去好好的搜尋一下有沒有相關可以用的東西。 由於我自己也不是專業在做Installer的人~ 裡面的一些設定也真的把我搞糊塗,才了解前因後果。還好找到了相關的文件WiX Script for installing Live Writer Plugins,雖然他上面的sample是針對 WIX 2.0,不過我也把它修改過後分享給大家。
希望有需要的人就拿去用吧。
Install WIX 3.6 from http://wix.sourceforge.net/downloadv3.html
Setup your path setting to your install path.
Inser follow code (it should be XXX.WXS)
(refer from http://wlwextensionlearning.blogspot.com/2012/02/windows-live-writer-plugin-how-to.html)
You might need repace follow string as follows:
1. {$Plugin Name$} : your plugin name
2. {$InstallGUID$}: A GUID for your installation program
3. {$Manufacturer$}: Manufacturer name
4. {$PluginGUID$}: A GUID for your plugin
5. {$Description$}: A description for your plugin
6. {$FILE_ID$}: ID for your binary which need install. (could be multiple file)
7. {$FILE_NAME$}: Name for your binary which need install. (could be multiple file)
8. {$FILE_Address$}: File address for your binary which need install. (could be multiple file)
Compiler your WIX source code
1. candle XXX.wxs
2. light -ext WixUIExtension XXX.wixobj
欠了好久~ 總算一口氣把它寫完:
請到這裡下載: http://wlwplurk.codeplex.com/
Upgrade code with VS2010.
Add login page for change account. Using registry to save your login information.
Add post content page to let you modify your plurk before post it.
How to use it:
Just download this binary, extract it and put on your Windows Live Writer plugin folder such as C:Program FilesWindows LiveWriterPlugins
This project implement base on two major component:
Json.net (http://json.codeplex.com/)
NPlurk (http://nplurk.codeplex.com/)
You need plurk API key from http://www.plurk.com/API/ to use this source code.
HW-59T - Improving performance with the Windows Performance Toolkit refer: http://channel9.msdn.com/Events/BUILD/BUILD2011/HW-59T Note: Motivation for performance analysis: Performance related to multiple layered impact such as : hardware, OS, other application and process impact. Stage of performance improvement: Preception –> Measurement –> Analysis. It will be back and forth after analysis and re-preception. Tool list: Trace Capture: Windows Performance Recorder Tacce Analysis: Windows Performance Analizer Things to look out: Don’t assume you know what’s wrong. Don’t enable too much instrumentation Don’t trace longer than you need. PLAT-203T Async everywhere: creating responsive APIs & apps refer: http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-203T Note: Async only support on some API: XAML, Tile on UI GPS and portable debice on Device All network and communicate Applifetime, Authentication, Crytography on Fundamental Await Await is a simple way to against async API. Await will make the async highest priority and let the compiler know here need to wait the result come back....
APP-186T - Build advanced touch apps in Windows 8 refer: http://channel9.msdn.com/Events/BUILD/BUILD2011/APP-186T Major point of touch app design: Unify pen and touch into PointerPoint Get mouse and pen for free performance performance and performance Touch and Gesture support in framework Metro app with HTML or XAML—> Gesture event ICoreWindow –> Using point (touch simulate mouse click) Windows Runtime –> PointerPoint with GestureRecognizer PointerPoint: Whole related point implement is here, HID data also can get using PointerPoint. GestureRecognizer: It just like the Win7 multiple touch support on MSFT, it support kind of gesture such as: Tap, Hold, rotate and Scale But more support on Win8 such as: HoldWithMouse? RightTap To simulate with right click on mouse, such your finger about right click here. mmmm….. it should be MSFT patent here for right click. For desktop developer, MSFT also support full Windows Runtime about Gesture support –> Great! WM_Point –> the same as...
It need note that Windows 8 has two version of IE (it should say, one application but two entry for different mode)
Desktop IE
Metro IE
But it is very tricky, if you type “open http://Web” on desktop explorer will open “Metro IE”
When you try to use this command to open web side, please note metro browser will be default option, not desktop browser.
ShellExecute(NULL,TEXT(“open”), TEXT(“http://msdn.microsoft.com”), TEXT(“”),NULL,SW_SHOWNORMAL);
To specific using desktop browser, it should specific command on [HKEY_CLASSES_ROOThttpshellopencommand]