Mobile Apps - Creating link on Desktop

Asked By franco
28-Sep-07 05:09 AM
Hello everybody.

I'm Trying to create a link on Desktop to a file.

I used folowing strings to do it inside Project.dat:


Root:-Directory("\Windows")
Directory("\Windows\Desktop"):-Directory("Prova")
Directory("\Windows\Desktop"):-File("calib.lnk", "\Windows\calib.lnk")


But after building image, I can find the directory Prova on DEsktop
but NOT the link calib.lnk.

The file calib.lnk exists in \windows and I can execute it from that.

I tried several strings to make the link on Desktop, but I can't do it.

PLS, any idea on possible solution?


TYhanks


Franco
SHCreateShortcut
(1)
TYhanks
(1)
Calibraton
(1)
Directory
(1)
Windows
(1)
FLATRELEASEDIR
(1)
Followig
(1)
Scritto
(1)
  JRMalin replied...
28-Sep-07 11:04 PM
Include link and exe that link points to in build by entering it in
platform.bib as follows:

;  Name            Path                                           Memory
Type
;  --------------  ---------------------------------------------  -----------
calib.lnk        $(_FLATRELEASEDIR)\calib.lnk                   NK     S
calib.exe        $(_FLATRELEASEDIR)\calib.exe                   NK     S

Then to put the link on the desktop add the following to platform.dat
Directory("\Windows\LOC_DESKTOP_DIR"):-File("Calibraton
Utility.lnk","\Windows\calib.lnk")

If you also want the link in the start programs menu add the followig to
platform.dat
Directory("\Windows\LOC_PROGRAMS_DIR"):-File("Calibraton
Utility.lnk","\Windows\calib.lnk")

Make sure your link file has the proper format.

Regards,
-John
  franco replied...
01-Oct-07 07:23 AM
Hello John.

It doesn't work.
I'd already tried it.
As you can see in my message, I included the lines
Root:-Directory("\Windows")
Directory("\Windows\Desktop"):-Directory("Prova")
Directory("\Windows\Desktop"):-File("calib.lnk", "\Windows\calib.lnk")

in Project.dat (I tried also in project.dat as you wrote)
and lines
calib.lnk        $(_FLATRELEASEDIR)\calib.lnk                   NK     	S
calib.exe        $(_FLATRELEASEDIR)\calib.exe                   NK	S

I can find calib.lnk in Windows directory and it works there.
I can find also the directory Prova on my Desktop.

It seems that the command :-Directory("Prova") work correctly, but the
command :-File("calib.lnk", "\Windows\calib.lnk") doesn't work at all.
Any other suggestion?


Thanks

Franco




Il Fri, 28 Sep 2007 20:04:05 -0700, JRMalin ha scritto:
  GraemeW replied...
01-Oct-07 09:48 AM
Did you make sure the new .lnk and .exe were in a FILES section of the
platform.bib, else it will not work..

--
GraemeW
Blog - http://ce4all.blogspot.com
  JRMalin replied...
01-Oct-07 06:13 PM
Franco,

It's not clear to me that you are doing exactly what I described.  Maybe I
wasn't clear, but look closely at my directions, again.  I have given
entries for two files: Platform.bib and Platform.dat.  It looks to me like
you are putting all the entries into the Platform.dat file.  The
Platform.bib entries make sure that your application and link files are
built into the image.  The Platform.dat file places the link onto the
desktop and, optionally, the start-run menu.  Be careful if the browser
wraps the lines in my example.  The example that I sent you is right out of
a working build.

Did you put these entries in Platform.bib (not Platform.dat)?

calib.lnk        $(_FLATRELEASEDIR)\calib.lnk                   NK     S
calib.exe        $(_FLATRELEASEDIR)\calib.exe                   NK     S

Also GraemeW's reminder to have these files in the "Files" directory is also
important.

Regards,
-John
  JPDT replied...
04-Oct-07 10:20 AM
Another way to generate .lnk it's use the next function:

SHCreateShortcut( _T("\\Startup\\Partida.lnk"),
_T("\\Hard Disk\\Partida.bat"));

at the sample I'll generate Partida.lnk on me Startup folder, the second
parameter it's the route of the file that you want generate the .lnk.

Best Regards,
--
JP
help
WinCe 6.0 Monthly updates in Windows Vista Mobile Apps Hi, I am trying to install the January update of Windows CE 6.0 on the Vista and is happining the follow problem: required for this 2007 13:34:12 Build type: SHIP UNICODE 4.00.6000.00 Calling process: C: \ Windows \ system32 \ msiexec.exe = = = MSI (c) (E0:10) [13:34:12:979]: Resetting cached policy values 10) [13:34:13:502]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho.CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ Network Shortcuts MSI (c) (E0:10) [13:34:13:502]: SHELL32::SHGetFolderPath returned: C: \ Users 10) [13:34:13:502]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho.CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ Printer Shortcuts MSI (c) (E0:10) [13:34:13:503]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho.CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ Recent MSI (c) (E0:10) [13:34:13:503]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ SendTo MSI (c) (E0:10) [13:34:13:503]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho.CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ Templates MSI (c) (E0:10) [13:34:13:503]: SHELL32::SHGetFolderPath returned: C: \ ProgramData MSI
WinCe 6.0 Monthly updates in Windows Vista Mobile Apps Hi all, I installed WinCE 6.0 in a Windwos Vista enterprise 0 WinCE 6.0 SP1 .NETCF 2.0 SP1 Thanks, Bye, WindowsCE Platform Builder Discussions Windows Embedded CE 6.0 (1) WinCE (1) Windows Installer (1) Windows Vista (1) OutOfNoRbDiskSpace (1) WshShell.RegRead (1) MsidbCustomActionTypeFirstSequence (1) MsiSelectionTreeSelectedFeature (1) Try logging the installer 2007 13:34:12 Build type: SHIP UNICODE 4.00.6000.00 Calling process: C: \ Windows \ system32 \ msiexec.exe = = = MSI (c) (E0:10) [13:34:12:979]: Resetting cached policy values 10) [13:34:13:502]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho.CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ Network Shortcuts MSI (c) (E0:10) [13:34:13:502]: SHELL32::SHGetFolderPath returned: C: \ Users 10) [13:34:13:502]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho.CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ Printer Shortcuts MSI (c) (E0:10) [13:34:13:503]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho.CONNEC \ AppData \ Roaming \ Microsoft \ Windows \ Recent MSI (c) (E0:10) [13:34:13:503]: SHELL32::SHGetFolderPath returned: C: \ Users \ mcoelho
if we can get rid of them another way then removing the line (for example : Directory(" \ Windows \ LOC_DESKTOP_DIR"):-File("Transcriber.lnk", folder. Thank you, Keaven WindowsCE Platform Builder Discussions Windows (1) Directory (1) LOC_DESKTOP_DIR (1) GuruCE (1) PowerPoint (1) EMVP (1) PostFMergeObj (1) MSFTNGP (1) No, stuff from \ public is simply to copy your version, from \ platform, maybe, to the flat release directory, where it will overwrite the \ public version. Paul T. Yes I agree I don't initobj.tmp popd echo PostFmergeObj.bat exit. @echo on and here is my text file Directory(" \ Windows"):-Directory("LOC_DESKTOP_DIR") Directory(" \ Windows \ LOC_DESKTOP_DIR"):-File("LOC_INTERNETEXPLORER_LNK", Directory(" \ Windows \ LOC_DESKTOP_DIR"):-File("Media Player.lnk", Directory(" \ Windows
are both in my bib section under both MODULES and FILES be copied into a directory in " \ Windows" and a directory in " \ Program Files". I have confirmed that my bib entries cause all of the required files to be populated within the " \ Windows" folder. After my own version of platform.dat did not work I tried to base file in Mike Hall's Blog (http: / / blogs.msdn.com / mikehall / archive / 2008 / 01 / 16 / windows-ce-adding-two-files-of-the-same-name-to-two- different-folders-in-the-file file2.txt $(_FLATRELEASEDIR) \ file2.txt NK S ; ; Copyright (c) 2005 XXXXXXX. All rights reserved. ; root:-Directory(" \ "):-Directory("Demo") Directory(" \ Demo"):-Directory("FirstFox") Directory(" \ Demo \ FirstFox"):-File("file.txt", " \ windows \ file1.txt") root:-Directory(" \ "):-Directory
Studio 2005. I am confused when creating a new smart device project. We can select Windows CE 5.0 or Pocket PC 2003. My question is, are they compatible? (I am developing native unmanaged C++ application) 1. If I build Windows CE 5.0 project, could it run on Pocket PC 2003 device or emulator? 2 If I build Pocket PC 2003 project, could it run on Windows CE 5.0 device or emulator? 3. What are the differences? thanks in advance, George PocketPC Developer Discussions Windows Mobile 5.0 (1) Windows Mobile 6.0 (1) WinCE (1) Visual Studio 2005 (1) PocketPC (1) EMVP (1) OEMs Pocket PC specific APIs or features not available in your generic CE device then no. Windows CE is modular, so there's no "what's the difference" answer. Pocket PC is a subset of Windows CE features with the addition of some Pocket PC-specific features. - - Chris Tacke, eMVP Join Embedded Developer Community http: / / community.opennetcf.com Thanks Chris, Great reply! 1. could I understand Windows Mobile and Windows CE in this way? Windows CE is a toolkit (Windows CE itself