How to install an application while event occurs in PocketPC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JayaseelanVaiyapuri
    New Member
    • Jul 2008
    • 16

    How to install an application while event occurs in PocketPC

    Hi,

    I am developing one C# application. In that, if i press one menu button, the app immediately install the Win32 application and exit the app..Suppose if that Win32 app already installed means it quit this step and exit the app

    Is it possible?

    Its very Urgent....
  • markmcgookin
    Recognized Expert Contributor
    • Dec 2006
    • 648

    #2
    I have never done this with a CAB install. But if I am trying to open a file or something that I am struggling with and want windows to run it itself...

    Code:
    string cabFile = @"Program Files\MyApp\myCAB.cab";
    
    Process opener = new Process();
    opener.StartInfo.FileName = cabFile;
    opener.StartInfo.Verb = "Open";
    opener.StartInfo.UseShellExecute = true;
    opener.Start();
    this should run your CAB file for you. You could write a reg key when this is installed (either in the CAB or in your app) then check to see if it exists before attempting this install... so you only install it once

    i.e.

    Code:
    RegistryKey RK = Registry.CurrentUser.OpenSubKey(@"Software\MyApplication\Client");
    
    if (RK != null)
                {
                    // It's there
                }
                else
                {
                    // It's not there
                }
    Hope that helps

    Mark

    Comment

    • JayaseelanVaiyapuri
      New Member
      • Jul 2008
      • 16

      #3
      Hi,

      thanks for reply..

      I have another doubt..

      Is it possible to create a cab file which includes C# ap and Win32 dll?

      If i install that cab, both should install in the Pocket PC..

      Am sorry If my question is wrong.

      Comment

      • markmcgookin
        Recognized Expert Contributor
        • Dec 2006
        • 648

        #4
        Originally posted by JayaseelanVaiya puri
        Hi,

        thanks for reply..

        I have another doubt..

        Is it possible to create a cab file which includes C# ap and Win32 dll?

        If i install that cab, both should install in the Pocket PC..

        Am sorry If my question is wrong.
        You can include .dll files within an application for it's use, although I don't think you can simply include them and install them without some form of action.

        Comment

        Working...