According to Metro Application Lifetime sample and related document, it description about Metro app about suspend/resume.
However, I also find I could not make my Metro app enter suspend mode, so I try to figure out some answer from MSFT forum. Refer here and here.
Here is my summary for this:
When leave app about 5 sec or trigger another app about 5 sec, the “suspend” event will called.
“Suspends”/”Resume” event will trigger automatically when you not attach debugger on release build. See “Star without Debugging” on “debug” tab.
If you using debugger, you only trigger “suspend” manually.
Sleep/Hibernate will trigger “Suspend” if your app is release version without debugger attach.
From last article “HOW TO COMMUNICATE BETWEEN METRO UI AND DESKTOP UI ON WIN8”, it talking about to pass the control between Metro/Desktop application. However during programing on Metro and Desktop, you might need some communication mechanism for Metro/Desktop application. I just provide my experience for this kind of question, here is my solution for communicate between Metro and Desktop on Win8 Customer Preview. (I also feedback on MSFT forum here) Write a application to listen TCP as information center which call “DesktopSvr” (ex: here) Metro app try to send message to localhost via streamsocket (P.S. localhost is not work, but 127.0.0.1 work well). “DesktopSvr” will pass desktop app via IPC or anyway you familiar. Metro application communication guidline: Desktop might also pass some data to “DesktopSvr” it will be our information center. Metro: Since Metro UI will not get any TCP feedback if app under suspends, so communicate between...
It just a summarize to explain MSFT sample: Association launching sample. Metro UI to call Desktop UI File extension call: Add default open on registry if you want create new one. [HKEY_CLASSES_ROOT.XXX] Using Windows.System.Launcher.launchFileAsync Protocol call: (such as “http://”, “mailto://”) Add default protocol on registry if you want create new one. [HKEY_CLASSES_ROOT%PROTOCOL%] [HKEY_CLASSES_ROOT\%PROTOCOL%DefaultIcon] @=”C:\Program Files\XXX.exe,0”[HKEY_CLASSES_ROOT\%PROTOCOL%shell] @=”play” [HKEY_CLASSES_ROOT\%PROTOCOL%shellopen] @=”” [HKEY_CLASSES_ROOT\%PROTOCOL%shellopencommand] @=”“C:\Program Files\XXX.exe” %1” [HKEY_CLASSES_ROOT%PROTOCOL%shellplaycommand] @=”“C:\Program Files\XXX.exe” %1” * Using Windows.System.Launcher.launchUriAsync P.S.: Since it is Async, please note you might need handle it well to make it work. :) Metro UI to call Desktop UI * File extension call * Add on “package.appxmanifest” “Declarations” to add “Protocol”. * Handle callback feedback and launch this app. * Double click file on desktop UI. * Protocol call: (such as “http://”, “mailto://”) * Add on “package.appxmanifest” “Declarations” to add “File Type Associations”. (ex: “sampleApp://”) * Handle callback feedback and launch this app. * Type “sampleApp://”...
Windows 8 8250 is official Win8 beta which release on 02/29
It not include VS2011 which vs2011 beta also release.
Only VS2011 Express for Win8 has “Store” publish.
ACK/HCK is not include with Win8 beta but include on VS2011 beta
(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