set Application ICON and deploy App short-cut to Program

G

Guest

Hi Guys,

I have used Visual 2005 with NET CF2.0, and created a Project with
SmartDeviceCab Project.

However, I can not find where I should set my application ICON and
how to set to deploy my app short-cut to [Program]!

Please help me?

Thanks
 
N

Nino Benvenuti

Jeff,

For your shortcut, select the FileSystem Editor and add a new special
folder - 'Start Menu Folder'. Under this folder, you need to add a
'Programs' folder. In the right pane (after selecting 'Programs'), then
right-click and select 'Create New Shortcut' and point it to your
executable. Not necessarily intuitive.

In regards to the application icon, you set that in the project properties
(Application tab). You'll add the icon file (.ico) as an Embedded Resource.
Note that application the icon must include both 16x16 256 color and 32x32
256 color versions if you want it to display on both the Programs folder and
Start Menu (and you'll need to add a shortcut in the Start Menu Folder as
well).

Also note that specifying the application icon is not the same as specifying
the form icon. You may also need to do a soft-reset of your device after
you install the the application to clear/reset the icon cache.

Nino
 
G

Guest

Hi Nino,

Thanks so much, it works great.
However, I still have some strange issue that:
When I install application via cab, it builds application
folde(programs\xxx)r under Programs,
which is great, it also creates a folder named XXXCab ,

For example: my project call TestApp, Deploy Project called TestAppCab.

when I build TestAppCab Project, It creates TestAppCab.Cab.
Copy to PocketPC, and double-click,it works great.
But it create two folders under [Programs] folder
one is called: [Programs\TestApp\] which includes my application and
the other one is called [Programs\TestAppCab\] in which there is nothing.

what is the problem? Thanks









Nino Benvenuti said:
Jeff,

For your shortcut, select the FileSystem Editor and add a new special
folder - 'Start Menu Folder'. Under this folder, you need to add a
'Programs' folder. In the right pane (after selecting 'Programs'), then
right-click and select 'Create New Shortcut' and point it to your
executable. Not necessarily intuitive.

In regards to the application icon, you set that in the project properties
(Application tab). You'll add the icon file (.ico) as an Embedded Resource.
Note that application the icon must include both 16x16 256 color and 32x32
256 color versions if you want it to display on both the Programs folder and
Start Menu (and you'll need to add a shortcut in the Start Menu Folder as
well).

Also note that specifying the application icon is not the same as specifying
the form icon. You may also need to do a soft-reset of your device after
you install the the application to clear/reset the icon cache.

Nino

--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog


jeff said:
Hi Guys,

I have used Visual 2005 with NET CF2.0, and created a Project with
SmartDeviceCab Project.

However, I can not find where I should set my application ICON and
how to set to deploy my app short-cut to [Program]!

Please help me?

Thanks
 
N

Nino Benvenuti

Jeff,

It sounds like you have somehow gotten an additional folder specified.

In the FileSystem Editor, you should have something like:
Application Folder
|_
Primary output from TestApp
Start Menu Folder
|_Programs
| |_TestApp shortcut
|_TestApp shortcut

The above will install your app (.exe) to /Program Files/TestApp, and then
create a shortcut on the Start Menu and in the Programs listing.

In the debug folder for your TestAppCab project, locate and open the .inf
file; it should look something like the following. Pay particular attention
to the DestiationDirs and Shortcuts sections.

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

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

[Strings]
Manufacturer="NinoSoft"

[CEDevice]
VersionMin=5.0
VersionMax=6.99
BuildMax=0xE0000000

[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1

[SourceDisksNames]
1=,"Common1",,"C:\Users\nino\Documents\Visual Studio
2005\Projects\TestAppCab\TestAppCab\obj\Debug\"

[SourceDisksFiles]
"TestApp.exe"=1

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"%InstallDir%"

[Files.Common1]
"TestApp.exe","TestApp.exe",,0

[Shortcuts]
"TestApp",0,"TestApp.exe","%CE17%\Programs"
"TestApp",0,"TestApp.exe","%CE17%"

[RegKeys]


--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog


jeff said:
Hi Nino,

Thanks so much, it works great.
However, I still have some strange issue that:
When I install application via cab, it builds application
folde(programs\xxx)r under Programs,
which is great, it also creates a folder named XXXCab ,

For example: my project call TestApp, Deploy Project called TestAppCab.

when I build TestAppCab Project, It creates TestAppCab.Cab.
Copy to PocketPC, and double-click,it works great.
But it create two folders under [Programs] folder
one is called: [Programs\TestApp\] which includes my application and
the other one is called [Programs\TestAppCab\] in which there is nothing.

what is the problem? Thanks









Nino Benvenuti said:
Jeff,

For your shortcut, select the FileSystem Editor and add a new special
folder - 'Start Menu Folder'. Under this folder, you need to add a
'Programs' folder. In the right pane (after selecting 'Programs'), then
right-click and select 'Create New Shortcut' and point it to your
executable. Not necessarily intuitive.

In regards to the application icon, you set that in the project
properties
(Application tab). You'll add the icon file (.ico) as an Embedded
Resource.
Note that application the icon must include both 16x16 256 color and
32x32
256 color versions if you want it to display on both the Programs folder
and
Start Menu (and you'll need to add a shortcut in the Start Menu Folder as
well).

Also note that specifying the application icon is not the same as
specifying
the form icon. You may also need to do a soft-reset of your device after
you install the the application to clear/reset the icon cache.

Nino

--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog


jeff said:
Hi Guys,

I have used Visual 2005 with NET CF2.0, and created a Project with
SmartDeviceCab Project.

However, I can not find where I should set my application ICON and
how to set to deploy my app short-cut to [Program]!

Please help me?

Thanks
 
G

Guest

Thanks Nino,

Works great

Nino Benvenuti said:
Jeff,

It sounds like you have somehow gotten an additional folder specified.

In the FileSystem Editor, you should have something like:
Application Folder
|_
Primary output from TestApp
Start Menu Folder
|_Programs
| |_TestApp shortcut
|_TestApp shortcut

The above will install your app (.exe) to /Program Files/TestApp, and then
create a shortcut on the Start Menu and in the Programs listing.

In the debug folder for your TestAppCab project, locate and open the .inf
file; it should look something like the following. Pay particular attention
to the DestiationDirs and Shortcuts sections.

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

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

[Strings]
Manufacturer="NinoSoft"

[CEDevice]
VersionMin=5.0
VersionMax=6.99
BuildMax=0xE0000000

[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1

[SourceDisksNames]
1=,"Common1",,"C:\Users\nino\Documents\Visual Studio
2005\Projects\TestAppCab\TestAppCab\obj\Debug\"

[SourceDisksFiles]
"TestApp.exe"=1

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"%InstallDir%"

[Files.Common1]
"TestApp.exe","TestApp.exe",,0

[Shortcuts]
"TestApp",0,"TestApp.exe","%CE17%\Programs"
"TestApp",0,"TestApp.exe","%CE17%"

[RegKeys]


--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog


jeff said:
Hi Nino,

Thanks so much, it works great.
However, I still have some strange issue that:
When I install application via cab, it builds application
folde(programs\xxx)r under Programs,
which is great, it also creates a folder named XXXCab ,

For example: my project call TestApp, Deploy Project called TestAppCab.

when I build TestAppCab Project, It creates TestAppCab.Cab.
Copy to PocketPC, and double-click,it works great.
But it create two folders under [Programs] folder
one is called: [Programs\TestApp\] which includes my application and
the other one is called [Programs\TestAppCab\] in which there is nothing.

what is the problem? Thanks









Nino Benvenuti said:
Jeff,

For your shortcut, select the FileSystem Editor and add a new special
folder - 'Start Menu Folder'. Under this folder, you need to add a
'Programs' folder. In the right pane (after selecting 'Programs'), then
right-click and select 'Create New Shortcut' and point it to your
executable. Not necessarily intuitive.

In regards to the application icon, you set that in the project
properties
(Application tab). You'll add the icon file (.ico) as an Embedded
Resource.
Note that application the icon must include both 16x16 256 color and
32x32
256 color versions if you want it to display on both the Programs folder
and
Start Menu (and you'll need to add a shortcut in the Start Menu Folder as
well).

Also note that specifying the application icon is not the same as
specifying
the form icon. You may also need to do a soft-reset of your device after
you install the the application to clear/reset the icon cache.

Nino

--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog


Hi Guys,

I have used Visual 2005 with NET CF2.0, and created a Project with
SmartDeviceCab Project.

However, I can not find where I should set my application ICON and
how to set to deploy my app short-cut to [Program]!

Please help me?

Thanks
 

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