example of install creating icons in the startup group of CE 4.1

  • Thread starter Thread starter jayderk
  • Start date Start date
J

jayderk

Hello all,

does anyone please have an example of an install that puts a shortcut for an
application in the startup group. this one is killing me..

I can not get the inf file correct for some reason.
 
Take a look at Samples\Win32\AppInst\blkjack.inf in PPC2003 SDK. The part
that needs to be changed to add ashortcut to the Startup folder is line 180
%LinkFilename%,0,"Blackjack.exe",%CE14% ; shortcut to a file,
created in the standard destination path %CE14%
should be
%LinkFilename%,0,"Blackjack.exe",%CE4% ; shortcut to a file, created
in the standard destination path %CE14%

See also:
http://msdn.microsoft.com/library/en-us/wcepb40/html/pbrefceshortcuts.asp
and
http://msdn.microsoft.com/library/en-us/dv_evtuv/html/etgrfWindowsCEDirectoryIdentifiers.asp
 
Create an .lnk file in the same directory as your compiled .exe file
with a single line to the EXE file on your device, for example...

43#"\Program Files\mTimeSync\mTimeSync.exe" -h

(the 43# is just the number of characters in the line)


Then make your INF file (note the additional Files.StartUp &
mTimeSync.lnk entries)...

[Version]
Signature="$Windows NT$"
Provider="SlipstreamSolutions.co.uk"
CESignature="$Windows CE$"

[CEStrings]
AppName="mTimeSync"
InstallDir=%CE1%\%AppName%

[CEDevice]
VersionMin=3.00
VersionMax=4.99

[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common, Files.StartUp

[SourceDisksNames]
1=,"Common1",,"C:\Documents and Settings\My Documents\Visual Studio
Projects\mTimeSync\obj\Release\"

[SourceDisksFiles]
mTimeSync.exe=1
mTimeSync.lnk=1

[DestinationDirs]
Files.Common=0,%InstallDir%
Files.StartUp=0,%CE4%
Shortcuts=0,%CE2%\Start Menu

[Files.Common]
mTimeSync.exe,,,0

[Files.StartUp]
mTimeSync.lnk,,,0

[Shortcuts]
mTimeSync,0,mTimeSync.exe,%CE11%


Regards.

Slipstream Solutions

mTimeSync - Turn your Pocket PC into an atomic clock!

http://www.handango.com/PlatformProductDetail.jsp?productId=124281
 
Back
Top