none
How can i delete my application from windows folder using platform.dat RRS feed

  • Question

  • This is my question

    first i want to copy my applications to this path from windows folder like this


    Directory("\Hard Disk\InTouchCompact"):-File("ITCMgr.exe","\Windows\ITCMgr.exe")
    Directory("\Hard Disk\InTouchCompact"):-File("ITCMgr.ini","\Windows\ITCMgr.ini")
    Directory("\Windows\LOC_DESKTOP_DIR"):-File("ITCMgr.lnk","\Windows\ITCMgr.lnk")
    Directory("\Hard Disk\InTouchCompact"):-File("ITCApp.ini","\Windows\ITCApp.ini")

    after that i want to delete the applications from windows  folder

    How can i do that?

     

    Friday, June 25, 2010 5:00 AM

Answers

All replies

  • i also use a bat file like this

     

     

    REM This batch file filters the DAT files
    REM CE merges all DAT files into initobj.tmp
    REM and then transforms initobj.tmp into a
    REM UNICODE version initobj.dat.
    REM Just before the conversion to unicode
    REM the build system calls PostFmergeObj.bat
    REM (this file). We filter out all the
    REM strings defined in PostFmergeObj.txt
    REM from initobj.tmp


    @echo off
    echo PostFmergeObj.bat entry.
    pushd %_FLATRELEASEDIR%
    del initobj.org
    ren initobj.tmp initobj.org
    findstr /i /v /g:PostFmergeObj.txt initobj.org > initobj.tmp
    popd
    echo PostFmergeObj.bat exit.
    @echo on

     

    and this is the txt file that i want to delete

     

    root:-Directory("\Windows")
    Directory("\Windows"):-File("ITCMgr.exe","\Windows\ITCMgr.exe")

    but i want to know it will delete my application before copying the file or after copying my file

     

    Friday, June 25, 2010 5:26 AM
  • after using the above bat file it is deleting everything my shortcuts in my desktop etc...............
    Friday, June 25, 2010 5:51 AM
  • yes the above delete file deletes the line but iam not having a line like this

    Directory("\Windows"):-File("ITCMgr.exe","\Windows\ITCMgr.exe") so

    it is copying internally

    and also i want to copy ma application(ITCMgr.exe)

    to this folder

    Directory("\Hard Disk\InTouchCompact"):-File("ITCMgr.exe","\Windows\ITCMgr.exe")

    after this i want to delete the ITCMgr.exe from windows

    how to do it?

    Friday, June 25, 2010 6:47 AM
  • it is not possible using .dat files. but you can create a link to the application and copy it to the desired folder rather than copying the .exe so you  will save some room

    --
    Luca Calligaris (MVP-Windows Embedded)
    lucaDOTcalligarisATeurotechDOTcom
    www.eurotech.com
     
     
    "selvabha" <=?utf-8?B?c2VsdmFiaGE=?=> ha scritto nel messaggio news:33a8d314-4331-492c-8eea-63287a14cdc3...

    yes the above delete file deletes the line but iam not having a line like this

    Directory("\Windows"):-File("ITCMgr.exe","\Windows\ITCMgr.exe") so

    it is copying internally

    and also i want to copy ma application(ITCMgr.exe)

    to this folder

    Directory("\Hard Disk\InTouchCompact"):-File("ITCMgr.exe","\Windows\ITCMgr.exe")

    after this i want to delete the ITCMgr.exe from windows

    how to do it?


    Luca Calligaris (MVP-Windows Embedded) lucaDOTcalligarisATeurotechDOTcom www.eurotech.com
    Friday, June 25, 2010 7:12 AM
  • Dear Luca Calligaris,

    Can u understand my queston please?

    i know all the files from the BSP are copied to the windows file defaultly

    from that windows location iam copying the file to this intouchcompact location

    Directory("\Hard Disk\InTouchCompact"):-File("ITCMgr.exe","\Windows\ITCMgr.exe")

    now after that i dont want my application anymore in windows folder so i want to delete it.

    How can I do that?

    Friday, June 25, 2010 8:17 AM
  • I understand your question: I'm saying that there's no way you can delete the application from the windows folder using .dat files (in a previous e-mail you told that you modified initobj file and you have no shortcut in the desktop).
    You can't remove the .exe permanently if you include it in the OS image: on a cold boot it will be still there, in the \windows folder
    --
    Luca Calligaris (MVP-Windows Embedded)
    lucaDOTcalligarisATeurotechDOTcom
    www.eurotech.com
     
     
    "selvabha" <=?utf-8?B?c2VsdmFiaGE=?=> ha scritto nel messaggio news:afbef607-21c9-4dc4-a4c9-8857318a99aa...

    Dear Luca Calligaris,

    Can u understand my queston please?

    i know all the files from the BSP are copied to the windows file defaultly

    from that windows location iam copying the file to this intouchcompact location

    Directory("\Hard Disk\InTouchCompact"):-File("ITCMgr.exe","\Windows\ITCMgr.exe")

    now after that i dont want my application anymore in windows folder so i want to delete it.

    How can I do that?


    Luca Calligaris (MVP-Windows Embedded) lucaDOTcalligarisATeurotechDOTcom www.eurotech.com
    Friday, June 25, 2010 10:36 AM
  • can i delete it by using some bat file at startup
    Friday, June 25, 2010 10:51 AM
  • You can't delete it.  Why do you want to delete it?


    -- Bruce Eitman (eMVP) Senior Engineer Bruce.Eitman AT Eurotech DOT com My BLOG http://geekswithblogs.net/bruceeitman Eurotech Inc. www.Eurotech.com
    Friday, June 25, 2010 12:46 PM
    Moderator
  • my customer is asking like that.

    is there any way ?

    Friday, June 25, 2010 12:49 PM
  • Mr.Bruce i also did like this and i checked

    1)i created a new folder and saved the registry but after saving this and i reboot the system by power off(cold boot) and on

    2)then  i cant see that folder

    whats the problem?

    iam using hive registry settings

    and also iam having a issue like this

     after starting my application from harddisk there is a option called (Run applications on startup with a check mark option)

    when i do the following

    1.       Open StorageCard\InTouchCompact\ITCMGR.EXE.

    2.       Tap Settings

    3.       Uncheck “Run application on startup”

    4.       Save the Registry.

    5.       If you reboot the machine, notice that it is checked.

    it is uncheked what causes this problem any solution please?

     

    Friday, June 25, 2010 1:14 PM
  • 1.  Where are you creating the folder?  Sounds like it is created in RAM - which you should know would be removed after a reset.

    2.  Where is your hive registry stored?  If it is RAM - it will be deleted when you reset.

    3.  If your hive registry is not in RAM but saved to some persistent storage, it sounds as if you are not calling RegFlushKey() to save the hive to persistent storage.


    -- Bruce Eitman (eMVP) Senior Engineer Bruce.Eitman AT Eurotech DOT com My BLOG http://geekswithblogs.net/bruceeitman Eurotech Inc. www.Eurotech.com
    Friday, June 25, 2010 2:32 PM
    Moderator
  • No.

    Why did your customer request that?  Understanding the requirement will help you come up with a solution that can be implemented on your device with the features that your device has implemented.


    -- Bruce Eitman (eMVP) Senior Engineer Bruce.Eitman AT Eurotech DOT com My BLOG http://geekswithblogs.net/bruceeitman Eurotech Inc. www.Eurotech.com
    Friday, June 25, 2010 2:34 PM
    Moderator
  • Dear bruce ,

    where can i see where my hive registry is saved.?

     

    Friday, June 25, 2010 3:56 PM
  • where can i see where my hive registry is saved.?


    Start by looking up

    [HKEY_LOCAL_MACHINE\init\BootVars]
        "SystemHive"="<your system hive location>"
        "ProfileDir"="<your user hive location>"

    In the registry.  Then look for these locations on your device.  If ProfileDir is in the root folder, then it is in RAM - well that is if you are using RAM and ROM filesystem.


    -- Bruce Eitman (eMVP)
    Senior Engineer Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    Eurotech Inc.
    www.Eurotech.com
    Friday, June 25, 2010 4:31 PM
    Moderator
  • Thanks for our repl bruce

    Iam using compact flash for loading Nk.bin .

    Yes iam using RAM and rom file system then how to make my settings saved Mr.bruce

    Friday, June 25, 2010 5:15 PM
  • Did you read my response and do the things that I told you to do?  If so, what did you find?
    -- Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    Eurotech Inc.
    www.Eurotech.com
    Friday, June 25, 2010 5:17 PM
    Moderator
  • Dear Mr.Bruce,

    I Saw in the Registry

    it is saving in Documents and settings

    what should i do next to save my contents .

    Thanks for your help.

    Monday, June 28, 2010 4:11 AM
  • Dear Mr.Bruce,

    I Saw in the Registry

    it is saving in Documents and settings

    [HKEY_LOCAL_MACHINE\init\BootVars]
        "SystemHive"="/Documents and Settings/System.hv"
        "ProfileDir"="/Documents and Settings"

    what should i do next to save my contents .

    Thanks for your help.

    Monday, June 28, 2010 4:49 AM
  • Dear Mr.bruce,

    also my documents and settings folder is in my compact flash location .then why it is not persisting

    pls help

     

    Monday, June 28, 2010 5:57 AM
  • Dear Mr.Bruce,

    this is the entry in my platform.reg section(Hive settings)

    ; HIVE BOOT SECTION
    IF SYSGEN_FSREGHIVE
    [HKEY_LOCAL_MACHINE\init\BootVars]
    ;   "SystemHive"="\\Hard Disk\\Documents and Settings\\system.hv"
    ;   "ProfileDir"="\\Hard Disk\\Documents and Settings"
       "SystemHive"="\\Documents and Settings\\system.hv"
       "ProfileDir"="\\Documents and Settings"
       "Flags"=dword:3
       "Start DevMgr"=dword:1
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
        "MountFlags"=dword:2
    ;[HKEY_LOCAL_MACHINE\System\ObjectStore]
    ;    "RegistryType"=dword:1
    ENDIF ;SYSGEN_FSREGHIVE

    [$(PCI_BUS_ROOT)\Template\OHCI]
       "HcdCapability"=dword:0      ;HCD_SUSPEND_ON_REQUEST|HCD_SUSPEND_RESUME

    ; END HIVE BOOT SECTION

    ;HIVE BOOT SECTION
    [HKEY_LOCAL_MACHINE\Software\AMD\Versions]
     "BOM#"="GeodeLX10000"
    ;END HIVE BOOT SECTION
    ;HIVE BOOT SECTION
    [HKEY_LOCAL_MACHINE\Software\AMD\Versions]
     "Build#"="52230041"
    ;END HIVE BOOT SECTION
    ;HIVE BOOT SECTION
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\Timeouts]
    ; @CESYSGEN IF PM_PM_DEFAULT_PDD
    "ACUserIdle"=dword:0
    "ACSystemIdle"=dword:0
    "ACSuspend"=dword:0
    "BattUserIdle"=dword:0
    "BattSystemIdle"=dword:0
    "BattSuspend"=dword:0
    ;END HIVE BOOT SECTION

    IF BSP_NO_DMA
    ; HIVE BOOT SECTION
    ;// disable DMA
    [$(PCI_BUS_ROOT)\Template\GeodeIDE\Device0]
    ;   "Settings"=dword:E
       "DMA"=dword:0
       "TransferMode"=dword:0
       "InterruptDriven"=dword:0
    ; END HIVE BOOT SECTION

    Monday, June 28, 2010 6:07 AM
  • As I pointed out before, you must call RegFlushKey().
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Monday, June 28, 2010 12:20 PM
    Moderator
  • are u having a sample code for it pls sir provide it pls.
    Monday, June 28, 2010 1:41 PM
  • I am beginning to think that you want us to do your job for you.   You don't seem to want to answer our questions or follow our directions.   While asking for sample code isn't necessarily a bad thing, a quick search first is a good thing.   RegFlushKey() is a very simple function that is covered well in PB Help and MSDN.

    See http://geekswithblogs.net/BruceEitman/archive/2008/10/13/windows-ce-programmatically-setting-up-an-application-to-auto-start.aspx


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Monday, June 28, 2010 2:25 PM
    Moderator
  • Dear Bruce,

    iam new to wince now only i started writing stream drivers .u have to understand and iam in fear and pressure dont think i know everything and iam asking like that just help me in a few months i can learn wince .

    ok i need some answers .

    actually wheather i want to know implementing regflushkey function is enough.

    and also i want to know in which header file it is defined

    Monday, June 28, 2010 3:07 PM
  • If your device can suspend/resume then suspend and resume it after making your changes.  That will persist the registry.

    You will find the answer to your header file question in PB Help when you take the time to look up the documentation for RegFlushKey().


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Monday, June 28, 2010 3:19 PM
    Moderator
  • No bruce my system uses cold boot
    Monday, June 28, 2010 3:22 PM
  • Okay, write a quick app to call RegFluskKey() and try it.
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Monday, June 28, 2010 4:23 PM
    Moderator
  • i cant find winreg.h  so i made it extern i

    my program is wright?

     

    #include<Windows.h>
    #define EXTERNC    extern "C"


    EXTERNC LONG RegFlushKey( HKEY hKey );
    HKEY    regKey=NULL;
    EXTERNC LONG RegCloseKey( HKEY hKey );

    int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPWSTR lpCmdLine, int nCmdShow)
    {

           RegFlushKey( regKey );
           RegCloseKey( regKey );



    }

    Monday, June 28, 2010 5:49 PM
  • iam getting these errors

    c:\documents and settings\sdsdds\desktop\lava.c(5) : error C2059: syntax error : 'string'
    c:\documents and settings\sdsdds\desktop\lava.c(7) : error C2059: syntax error : 'string'
    Error executing clarm.exe.

     

    what should i do now

    iam using evc++

    dont get angry if my program is wrong

    pls Mr.bruce

     

    Monday, June 28, 2010 5:51 PM
  • sorryy this is my program is it correct Mr Bruce............

    #include<Windows.h>
    #include <winreg.h>



    UINT32 status;


    int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPWSTR lpCmdLine, int nCmdShow)
    {
          

          status= RegFlushKey(HKEY_LOCAL_MACHINE );
            if( status == ERROR_SUCCESS )
                    {

           RegCloseKey( HKEY_LOCAL_MACHINE );
          MessageBox (NULL, TEXT ("success"), TEXT ("success"), MB_OK);
            }

    else
    {
    RegCloseKey( HKEY_LOCAL_MACHINE );
     MessageBox (NULL, TEXT ("fail"), TEXT ("fail"), MB_OK);
    }
    }

    Monday, June 28, 2010 6:37 PM
  • Get rid of the RegCloseKey calls.
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Monday, June 28, 2010 6:54 PM
    Moderator
  • now is it ok

     

    #include<Windows.h>
    #include <winreg.h>



    UINT32 status;


    int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPWSTR lpCmdLine, int nCmdShow)
    {
          

          status= RegFlushKey(HKEY_LOCAL_MACHINE );
            if( status == ERROR_SUCCESS )
                    {

           
          MessageBox (NULL, TEXT ("success"), TEXT ("success"), MB_OK);
            }

    else
    {

     MessageBox (NULL, TEXT ("fail"), TEXT ("fail"), MB_OK);
    }
    }

    Monday, June 28, 2010 6:57 PM
  • so if i do that Mr.bruce,Settings for my software will get saved.

    after starting my application from harddisk there is a option called (Run applications on startup with a check mark option)

    when i do the following

    1.        Open StorageCard\InTouchCompact\ITCMGR.EXE.

    2.        Tap Settings

    3.        Uncheck “Run application on startup”

    4.        Save the Registry.

    5.        If you reboot the machine, notice that it is checked.

    it is uncheked what causes this problem any solution please?

    pls tell me so that i can sleep

    because of the pressure i cant sleep.thats y iam asking u

    just give me some confidence to sleep pls Mr.bruce

     

    Monday, June 28, 2010 7:01 PM
  • That's an application-specific question.  How do you set the checkmark?  It's your program showing that, right?  I presume that you are not reading the initial state of the option correctly from the registry.  We really can't do your job for you.  Apply some brainpower and try a few things rather than begging for immediate help.  We have other jobs, too.

    Paul T.

    Monday, June 28, 2010 10:32 PM
  • Thanks Mr.paul.but iam not having idea weather it is hive related or my application problem

    thats y iam asking

     

     

    Tuesday, June 29, 2010 2:37 AM
  • Hi Mr.Bruce my settings are saved for other applications like mediaplayer,ie6

    but for my software i cant save it

    anything i can do more sir

    pls help

    Tuesday, June 29, 2010 8:18 AM
  • Dear Bruce

    it is a partial success now

    my settings for mediplayer works after calling regflush() function

    but for my application it is not working

    what to do now mr.bruce?

    Tuesday, June 29, 2010 9:48 AM
  • Contact the application developer/vendor and ask them.  Only they can tell you if and how the data is stored.
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Tuesday, June 29, 2010 12:25 PM
    Moderator
  • ok mr.bruce thank you.i will update the status after asking them.

    thanks a lot mr.bruce

    Tuesday, June 29, 2010 1:01 PM
  • Mr bruce everything you said helped me a lot. I am on the last step now,.I want to save the variable Rampages into the registry through my application.

    How to do that ?

    Can u please help me ?

    i know this functions are used for writing and reading  ie

     

    LONG RegSetValueEx (HKEY hKey, LPCWSTR lpszValueName, DWORD Reserved,

    DWORD dwType, const BYTE *lpData, DWORD cbData);

     

    LONG RegQueryValueEx (HKEY hKey, LPCWSTR lpszValueName,

    LPDWORD lpReserved, LPDWORD lpType,

    LPBYTE lpData, LPDWORD lpcbData);

     

    is there any sample code ? pls help Mr.bruce

    thanks for helping

    Monday, July 5, 2010 5:30 AM
  • Hi,

    Thanks Mr.Bruce atlast i have done it thanks for the support.

     

     

    J.selvabharathi.

    Monday, July 5, 2010 1:09 PM
  • http://geekswithblogs.net/BruceEitman/archive/2009/09/18/platform-builder-setting-the-task-bar-to-auto-hide-by.aspx
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Tuesday, July 6, 2010 12:36 PM
    Moderator
  • MR.Bruce,

    I like to thank you ver much atlast my memory allocation in system properties was solved by calling the funtion setsystemmemorydivision().

    thans a lot.

    THANK YOU

    THANK YOU VERY MUCH

    Tuesday, July 6, 2010 4:08 PM