Sharing your AGENT App - nothingmn/AGENT.Contrib GitHub Wiki

So, you can share your faces with people WITHOUT having any additional install. Here is how:

  1. Make a new folder: C:\MyWatchFace\Debug\
  2. Make sure you have winrar installed
  3. Make a new folder: C:\MyWatchFace\
  4. Make a new folder: C:\MyWatchFace\Assemblies\
  5. Copy C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\ into the C:\MyWatchFace\Assemblies\ folder
  6. Delete C:\MyWatchFace\Assemblies\be folder
  7. Delete all PDB files from the C:\MyWatchFace\Assemblies\le folder
  8. Delete unecessary DLL's from the C:\MyWatchFace\Assemblies\le\ folder (like networking, ftp, http, etc..)
  9. Create a batch file, c:\MyWatchFace\DigitalTimeWatchFace.cmd
  10. Copy your Debug folder for your face into the Debug folder that you created above.
  11. Contents of said batch file:
"AGENT Emulator.exe"  "/load:Assemblies\le\Microsoft.SPOT.Graphics.pe"  "/load:Assemblies\le\Microsoft.SPOT.Native.pe" "/load:Debug\le\agent.contrib.pe" "/load:Assemblies\le\mscorlib.pe" "/load:Assemblies\le\Microsoft.SPOT.Hardware.pe" /load:"Debug\le\DigitalTimeWatchFace.pe"

Make sure you specify all the right /load: calls to your dependancies, and to your watch face, etc...

Packaging:

  1. Use WinRar to package up the structure.
  2. Create an SFX archive
  3. Extract to %temp%\AGENT\
  4. Overwrite all files, with no user interaction
  5. Execute after run: %temp%\AGENT\DigitalTimeWatchFace.cmd

All should work!

Here is a package I put together with these very steps:

http://goo.gl/qaanB

You should be able to just double click that and it will launch the emulator with a simple digital face.

Feel free to use it as a starting point.

FYI. Here is the SFX config:

;The comment below contains SFX script commands
 
Path=%temp%\AGENT\
Setup=%temp%\AGENT\DigitalTimeWatchFace.cmd
Silent=1
Overwrite=1