PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework set Application ICON and deploy App short-cut to Program

Reply

set Application ICON and deploy App short-cut to Program

 
Thread Tools Rate Thread
Old 05-03-2007, 03:19 PM   #1
=?Utf-8?B?amVmZg==?=
Guest
 
Posts: n/a
Default set Application ICON and deploy App short-cut to Program


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
  Reply With Quote
Old 05-03-2007, 06:44 PM   #2
Nino Benvenuti
Guest
 
Posts: n/a
Default Re: set Application ICON and deploy App short-cut to Program

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" <jeff@discussions.microsoft.com> wrote in message
news:52DF0729-AAF2-40A4-B2CD-78D5C6E00CC9@microsoft.com...
> 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


  Reply With Quote
Old 05-03-2007, 08:39 PM   #3
=?Utf-8?B?amVmZg==?=
Guest
 
Posts: n/a
Default Re: set Application ICON and deploy App short-cut to Program

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" wrote:

> 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" <jeff@discussions.microsoft.com> wrote in message
> news:52DF0729-AAF2-40A4-B2CD-78D5C6E00CC9@microsoft.com...
> > 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

>
>

  Reply With Quote
Old 05-03-2007, 11:33 PM   #4
Nino Benvenuti
Guest
 
Posts: n/a
Default Re: set Application ICON and deploy App short-cut to Program

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" <jeff@discussions.microsoft.com> wrote in message
news:4EE2B243-0C4D-4CD7-9F43-867B91442115@microsoft.com...
> 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" wrote:
>
>> 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" <jeff@discussions.microsoft.com> wrote in message
>> news:52DF0729-AAF2-40A4-B2CD-78D5C6E00CC9@microsoft.com...
>> > 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

>>
>>


  Reply With Quote
Old 06-03-2007, 04:03 PM   #5
=?Utf-8?B?amVmZg==?=
Guest
 
Posts: n/a
Default Re: set Application ICON and deploy App short-cut to Program

Thanks Nino,

Works great

"Nino Benvenuti" wrote:

> 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" <jeff@discussions.microsoft.com> wrote in message
> news:4EE2B243-0C4D-4CD7-9F43-867B91442115@microsoft.com...
> > 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" wrote:
> >
> >> 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" <jeff@discussions.microsoft.com> wrote in message
> >> news:52DF0729-AAF2-40A4-B2CD-78D5C6E00CC9@microsoft.com...
> >> > 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
> >>
> >>

>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off