Shortcut on the start menu

S

shawrie

Hi everyone

im trying to add a shortcut to the start menu on my pocketpc device.
Ive set it up in my deployment package but when i install the shortcut
never gets created. Any ideas

This is the INF file that deployment created

[Version]
Signature="$Windows NT$"
Provider="Sanderson Limited"
CESignature="$Windows CE$"

[CEStrings]
AppName="Swords Mobile Sales .NET"
InstallDir=%CE1%\%AppName%

[Strings]
Manufacturer="Sanderson Limited"

[CEDevice]
VersionMin=4.0
VersionMax=5.99
BuildMax=0xE0000000

[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1,Files.Common2,Files.Common3,Files.Common4

[SourceDisksNames]
1=,"Common1",,"C:\Swords Source Code\netdevelopment\SwordsMobileSales
\"
2=,"Common2",,"C:\swords source code\netdevelopment\SwordsMobileSales
\"
3=,"Common3",,"C:\swords source code\netdevelopment\SwordsMobileSales
\"
4=,"Common4",,"C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\obj\Release\"

[SourceDisksFiles]
"SMS.txt"=1
"SMS.txt"=2
"SMS.txt"=3
"SwordsMobileSales.exe"=4

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"%InstallDir%\Database"
Files.Common2=0,"%InstallDir%\Import Data"
Files.Common3=0,"%InstallDir%\Send Email"
Files.Common4=0,"%InstallDir%"

[Files.Common1]
"SMS.txt","SMS.txt",,0

[Files.Common2]
"SMS.txt","SMS.txt",,0

[Files.Common3]
"SMS.txt","SMS.txt",,0

[Files.Common4]
"SwordsMobileSales.exe","SwordsMobileSales.exe",,0


[Shortcuts]
"Swords Mobile NET",0,"SwordsMobileSales.exe","%CE17%"

[RegKeys]
 
G

Guest

The %CE17% folder - in which you are trying to copy the shortcut - seems to
have a maximum number of items it can hold.
Just remove an item (like Windows Media.lnk) and you will see that after
deploying your package, the shortcut will now be in the %CE17% folder.

Michael.
 
S

shawrie

thanks for that it worked great! Is there anyway we can get the
deployment package to delete one out of there automatically for us or
to increase the number of shortcuts allowed?

Also one other quick question how can i view the registry on the IPAQ
does VS2005 come with any tools for that

thanks again

The %CE17% folder - in which you are trying to copy the shortcut - seems to
have a maximum number of items it can hold.
Just remove an item (like Windows Media.lnk) and you will see that after
deploying your package, the shortcut will now be in the %CE17% folder.

Michael.

shawrie said:
Hi everyone
im trying to add a shortcut to the start menu on my pocketpc device.
Ive set it up in my deployment package but when i install the shortcut
never gets created. Any ideas
This is the INF file that deployment created
[Version]
Signature="$Windows NT$"
Provider="Sanderson Limited"
CESignature="$Windows CE$"
[CEStrings]
AppName="Swords Mobile Sales .NET"
InstallDir=%CE1%\%AppName%
[Strings]
Manufacturer="Sanderson Limited"
[CEDevice]
VersionMin=4.0
VersionMax=5.99
BuildMax=0xE0000000
[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1,Files.Common2,Files.Common3,Files.Common4

[SourceDisksNames]
1=,"Common1",,"C:\Swords Source Code\netdevelopment\SwordsMobileSales
\"
2=,"Common2",,"C:\swords source code\netdevelopment\SwordsMobileSales
\"
3=,"Common3",,"C:\swords source code\netdevelopment\SwordsMobileSales
\"
4=,"Common4",,"C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\obj\Release\"
[SourceDisksFiles]
"SMS.txt"=1
"SMS.txt"=2
"SMS.txt"=3
"SwordsMobileSales.exe"=4

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"%InstallDir%\Database"
Files.Common2=0,"%InstallDir%\Import Data"
Files.Common3=0,"%InstallDir%\Send Email"
Files.Common4=0,"%InstallDir%"
[Files.Common1]
"SMS.txt","SMS.txt",,0
[Files.Common2]
"SMS.txt","SMS.txt",,0
[Files.Common3]
"SMS.txt","SMS.txt",,0
[Files.Common4]
"SwordsMobileSales.exe","SwordsMobileSales.exe",,0

[Shortcuts]
"Swords Mobile NET",0,"SwordsMobileSales.exe","%CE17%"
[RegKeys]
 
G

Guest

thanks for that it worked great! Is there anyway we can get the
deployment package to delete one out of there automatically for us or
to increase the number of shortcuts allowed?

I'll have to look it up.
Also one other quick question how can i view the registry on the IPAQ
does VS2005 come with any tools for that

VS2005 has a remote registry viewer which you can find in the
'Start->Microsoft Visual Studio 2005->Visual Studio Remote Tools'.
On my pc, these tools are installed in : 'C:\Program Files\CE Remote
Tools\5.01\bin\'
Assuming they are installed by default ...

Michael.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top