-
Notifications
You must be signed in to change notification settings - Fork 8
Sharing your AGENT App
Rob Chartier edited this page Jun 29, 2013
·
6 revisions
So, you can share your faces with people WITHOUT having any additional install. Here is how:
- Make a new folder: C:\MyWatchFace\Debug\
- Make sure you have winrar installed
- Make a new folder: C:\MyWatchFace\
- Make a new folder: C:\MyWatchFace\Assemblies\
- Copy C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\ into the C:\MyWatchFace\Assemblies\ folder
- Delete C:\MyWatchFace\Assemblies\be folder
- Delete all PDB files from the C:\MyWatchFace\Assemblies\le folder
- Delete unecessary DLL's from the C:\MyWatchFace\Assemblies\le\ folder (like networking, ftp, http, etc..)
- Create a batch file, c:\MyWatchFace\DigitalTimeWatchFace.cmd
- Copy your Debug folder for your face into the Debug folder that you created above.
- 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:
- Use WinRar to package up the structure.
- Create an SFX archive
- Extract to %temp%\AGENT\
- Overwrite all files, with no user interaction
- Execute after run: %temp%\AGENT\DigitalTimeWatchFace.cmd
All should work!
Here is a package I put together with these very steps:
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