locked
how to make shortcut to Windows-CE application on Smart Device CAB Project ? RRS feed

  • Question

  • hi

    how to make shortcut to Windows-CE application on Smart Device CAB Project ?

    i try this on my Smart Device CAB Project:

    i open `Windows -> Desktop ->` and make the shortcut to my exe file

    but no shortcut made

    how to do it ?
    Wednesday, March 2, 2011 6:26 AM

Answers

  • thanks for the help

    but i need that after i install my program on the Windows-CE

    the shortcut will made.

    how to combine this with my installation ? (Smart Device CAB Project )


    I have already addressed a link in my previous discussion for Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files for this thing you have to write your own logic for the same, because see this MSDN References and read end yellow note.

    Note:-

    Windows Embedded CE supports other predefined installation macros, such as %CE3% for \Windows\Desktop. However, these are not supported on devices running Windows Mobile 6 Professional or Windows Mobile 6 Classic, and their usage in an .inf file on these devices might have unexpected results.

     

    What you can do... you can

    1) Copy the .lnk in \Windows\Desktop directory file using setup DLL, with your Smart Device CAB Project.

    2) Write a custom installer class

    3) And manually copy and paste link file in \Windows\Desktop Path

    Hope it helps.


    - Pavan [MCTS - Windows Mobile 5.0] If you find my post is helpful for you then mark as a answer and vote it.
    • Marked as answer by Peter_Yu Friday, March 18, 2011 3:35 AM
    Wednesday, March 2, 2011 9:34 AM
  • On Wed, 2 Mar 2011 07:45:06 +0000, E_gold wrote:

    thanks for the help

    but i need that after i install my program on the Windows-CE

    the shortcut will made.

    how to combine this with my installation ? (Smart Device CAB Project )

    One option is to have your program create the shortcut as it starts up. That would be the
    easiest for you, but add a little extra time to startup.

    Another option is to use a setup dll. The Install_Exit entry in this dll will be called
    when the rest of your installation is done. You will need to use C/C++.
    http://msdn.microsoft.com/en-us/library/aa924308.aspx

    • Marked as answer by Peter_Yu Friday, March 18, 2011 3:35 AM
    Saturday, March 5, 2011 6:10 PM
  • If you only wonder how to add a simple shortcut in a Smart Device CAB Project take a look at:

    http://msdn.microsoft.com/en-us/library/zcebx8f8(v=VS.90).aspx

    Especially the sections:
    - To add the device project application to the CAB project
    - To create a shortcut for the device project application
    - To move the shortcut to the Start menu or Programs folder 

    / Peter

    • Marked as answer by Peter_Yu Tuesday, March 29, 2011 7:33 AM
    Saturday, March 26, 2011 7:28 AM

All replies

  • Hello E_gold,

    For a Windows CE shortcut in  Win CE X.X version including Windows mobile uses a ASCII-text based file. They are in the form:

    (XX)#(PATH)

    Where :

        * XX = the number of the characters in the path, to include the number a # sign
        * PATH = fully qualified path to the file to run

    For example:

    21#\Windows\MyApp.exe

    For more information see below listed articles for the same.

    http://msdn.microsoft.com/en-us/library/ms938387.aspx

    http://www.ehow.com/how_5944119_create-shortcut-windows-ce.html

    Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files

     

    Hope it helps.

     


    - Pavan [MCTS - Windows Mobile 5.0] If you find my post is helpful for you then mark as a answer and vote it.
    Wednesday, March 2, 2011 7:14 AM
  • thanks for the help

    but i need that after i install my program on the Windows-CE

    the shortcut will made.

    how to combine this with my installation ? (Smart Device CAB Project )

    Wednesday, March 2, 2011 7:45 AM
  • thanks for the help

    but i need that after i install my program on the Windows-CE

    the shortcut will made.

    how to combine this with my installation ? (Smart Device CAB Project )


    I have already addressed a link in my previous discussion for Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files for this thing you have to write your own logic for the same, because see this MSDN References and read end yellow note.

    Note:-

    Windows Embedded CE supports other predefined installation macros, such as %CE3% for \Windows\Desktop. However, these are not supported on devices running Windows Mobile 6 Professional or Windows Mobile 6 Classic, and their usage in an .inf file on these devices might have unexpected results.

     

    What you can do... you can

    1) Copy the .lnk in \Windows\Desktop directory file using setup DLL, with your Smart Device CAB Project.

    2) Write a custom installer class

    3) And manually copy and paste link file in \Windows\Desktop Path

    Hope it helps.


    - Pavan [MCTS - Windows Mobile 5.0] If you find my post is helpful for you then mark as a answer and vote it.
    • Marked as answer by Peter_Yu Friday, March 18, 2011 3:35 AM
    Wednesday, March 2, 2011 9:34 AM
  • On Wed, 2 Mar 2011 07:45:06 +0000, E_gold wrote:

    thanks for the help

    but i need that after i install my program on the Windows-CE

    the shortcut will made.

    how to combine this with my installation ? (Smart Device CAB Project )

    One option is to have your program create the shortcut as it starts up. That would be the
    easiest for you, but add a little extra time to startup.

    Another option is to use a setup dll. The Install_Exit entry in this dll will be called
    when the rest of your installation is done. You will need to use C/C++.
    http://msdn.microsoft.com/en-us/library/aa924308.aspx

    • Marked as answer by Peter_Yu Friday, March 18, 2011 3:35 AM
    Saturday, March 5, 2011 6:10 PM
  • If you only wonder how to add a simple shortcut in a Smart Device CAB Project take a look at:

    http://msdn.microsoft.com/en-us/library/zcebx8f8(v=VS.90).aspx

    Especially the sections:
    - To add the device project application to the CAB project
    - To create a shortcut for the device project application
    - To move the shortcut to the Start menu or Programs folder 

    / Peter

    • Marked as answer by Peter_Yu Tuesday, March 29, 2011 7:33 AM
    Saturday, March 26, 2011 7:28 AM