Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6645699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:19:16+00:00 2026-05-26T00:19:16+00:00

i want to make a uninstaller on windows ce. The Problem is I want

  • 0

i want to make a uninstaller on windows ce.

The Problem is I want to delete the uninstaller itself after executed everything else.

Is this possible somehow? Or is there someway to make a unistaller in another way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:19:16+00:00Added an answer on May 26, 2026 at 12:19 am

    You can just have the app move itself to the recycle bin. It’s a pain because you have to P/Invoke to do this with an unintuative structure. This swatch should help with that.

            private bool Recycle(string path)
        {
            try
            {
                ShowProgress(string.Format("Moving {0} to Recycle bin.", path));
                SHFILEOPSTRUCT sfo = new SHFILEOPSTRUCT();
                sfo.hwnd = IntPtr.Zero;
                sfo.wFunc = FO_DELETE;
                sfo.fFlags = FOF_ALLOWUNDO | FOF_NOCONFIRMATION;
                sfo.pFrom = path +'\0' + '\0';
                sfo.pTo = null;
                sfo.fAnyOperationsAborted = false;
                sfo.hNameMappings = IntPtr.Zero;
                sfo.lpszProgressTitle = string.Empty;
                int ret = SHFileOperation(ref sfo);
    
                return (ret == 0);
            }
            catch (Exception ex)
            {
                ShowProgress(string.Format("Failed to move {0} to Recycle bin.", path));
                ShowProgress(ex.ToString());
            }
            return false;
        }
    
    
        // SHFileOperation wFunc and wFunc values
        public const uint FO_MOVE = 0x0001;
        public const uint FO_COPY = 0x0002;
        public const uint FO_DELETE = 0x0003;
        public const uint FO_RENAME = 0x0004;
    
        public const ushort FOF_MULTIDESTFILES = 0x0001;
        public const ushort FOF_CONFIRMMOUSE = 0x0002;
        public const ushort FOF_SILENT = 0x0004; // don't create progress/report
        public const ushort FOF_RENAMEONCOLLISION = 0x0008;
        public const ushort FOF_NOCONFIRMATION = 0x0010; // Don't prompt the user.
        public const ushort FOF_WANTMAPPINGHANDLE = 0x0020;// Fill in SHFILEOPSTRUCT.hNameMappings
                                                        // Must be freed using SHFreeNameMappings
        public const ushort FOF_ALLOWUNDO = 0x0040;
        public const ushort FOF_FILESONLY = 0x0080;  // on *.*, do only files
        public const ushort FOF_SIMPLEPROGRESS = 0x0100;  // means don't show names of files
        public const ushort FOF_NOCONFIRMMKDIR = 0x0200;  // don't confirm making any needed dirs
        public const ushort FOF_NOERRORUI = 0x0400;  // don't put up error UI
        public const ushort FOF_NOCOPYSECURITYATTRIBS = 0x0800;  // dont copy NT file Security Attributes
        public const ushort FOF_NORECURSION = 0x1000;  // don't recurse ushorto directories.
    
        //[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
        //If you use the above you may encounter an invalid memory access exception (when using ANSI
        //or see nothing (when using unicode) when you use FOF_SIMPLEPROGRESS flag.
        [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
        public struct SHFILEOPSTRUCT
        {
            public IntPtr hwnd;
            public uint wFunc;
            [MarshalAs(UnmanagedType.LPWStr)]
            public string pFrom;
            [MarshalAs(UnmanagedType.LPWStr)]
            public string pTo;
            public ushort fFlags;
            [MarshalAs(UnmanagedType.Bool)]
            public bool fAnyOperationsAborted;
            public IntPtr hNameMappings;
            [MarshalAs(UnmanagedType.LPWStr)]
            public string lpszProgressTitle;
        }
    
        [DllImport("ceshell.dll")]
        public static extern int SHFileOperation([In] ref SHFILEOPSTRUCT lpFileOp);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to make an application uninstall itself? For example: I want
I want make datetimepicker in my project. Using jquery how it is possible? I
I want make a wall post on friend wall using facebook graph api. Everything
I want make a simple referral system. Basically referral URL structure something like this.
i want make function like that function(data){ } i want this data as this
I want make some quizes about movie. There is quiz mutable array with 10
I want make the ER diagram or database schema . Is there any software
I want make a bash script which returns the position of an element from
I want make interactive application where user launches it and can do various task
Let's say I want make some of my sources publicly available via my blog

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.