Mobile/Build/Windows Mobile Build Instructions: Difference between revisions

Jump to navigation Jump to search
Line 542: Line 542:
To use the Security Powertoy, run the "C:\Program Files\Windows Mobile 6 SDK\Tools\Security\Security Powertoy\SecCfgMgr.msi" installer.  Once the installer has finished, there will be a shortcut created in your PC's Start Menu named "Security Configuration Manager".
To use the Security Powertoy, run the "C:\Program Files\Windows Mobile 6 SDK\Tools\Security\Security Powertoy\SecCfgMgr.msi" installer.  Once the installer has finished, there will be a shortcut created in your PC's Start Menu named "Security Configuration Manager".


====Putting XULRunner on a Device====
Thanks to Tim Zander for pointing out that no one ever explains how to get XULRunner onto a device.
NOTE: DO NOT FORGET to copy a mozce_shunt.dll executable from the TOPSRCDIR/build/wince/shunt/build/vs8 or TOPSRCDIR/build/wince/shunt/build/vs9 directory into the OBJDIR/dist/bin directory BEFORE copying the whole directory onto a external card or directly onto your device.
You currently (as of 10-Dec-2008) have two options for getting XULRunner on to a device:
  (1) If your device takes a plug-in expansion card, copy the OBJDIR/dist/bin
      directory on to a expansion card from your PC, then place that expansion
      card into your device.
  (2) If your device has a LOT of internal storage (i.e., the HTC Touch Diamond
      has 4GBytes of internal storage), then you can teather your device to
      your PC, and use ActiveSync's File Explorer to copy the OBJDIR/dist/bin
      directory onto your device.
On my PC, the OBJDIR/dist/bin directory is located at c:\hg\mozilla-central\objdir-wm6-dbg\xulrunner\dist\bin, and is approximately 32 MBytes large.
Once you have the executables on your device, you can launch the executables via:
  (A) The Visual Studio IDE (for debugging)
  (B) Via RAPI remote execute command
  (C) Via File Explorer on the device
  (D) Via specially-created shortcut
====Creating Shortcut for XULRunner====
You can make a shortcut link to execute the command you want under Windows Mobile / WinCE. Here is how:
A Shortcut Link File is a text file with an extension .LNK with one line in a very particular format:
  NN#THE_COMMAND_LINE_GOES_HERE
 
  Where:
 
    NN: Number of characters in the whole command line
 
    THE_COMMAND_LINE_GOES_HERE: The actual command you would execute
      (as if you were running in a DOS box on WinXP)
 
  Some things to watch out for:
 
    (1) It is a LOT safer to use a full path to your executable
 
    (2) If the full path to your executable contains any spaces, you
        HAVE to wrap the full path to your executable with double-quotes
 
    (3) Any space not wrapped inside a double-quote will signal the OS that
        an argument has ended and another argument is beginning
 
    (4) If your arguments have spaces in them, again wrap the whole single
        argument in double-quotes
 
  Here is an example:
 
    64#"\Program Files\MyDir\MyExe.exe" "First Argument" SecondArgument
There is also an app that you can use called [http://www.freewareppc.com/utilities/shortcutcreator.shtml ''Shortcut Creator''].
Place your newly created shortcut in \Windows\Start Menu\Programs (or one of its sub-folders).  You MAY want to place your shortcut in the \Windows\Start Menu\Programs\Games folder, because WinMobile 6 does not automatically update the Start Menu's contents until its next reboot.  However, each sub-directory of the Start menu is re-evaluated every time you open the corresponding folder in the Start menu.


===Setting Up MyBrowser===
===Setting Up MyBrowser===
130

edits

Navigation menu