Click here to Skip to main content
12,406,687 members (59,579 online)
See more: C# C#4.0
How to delete my windows application app.exe in program files on uninstalling in c#....On uninstalling my exe its not getting removed from program files...I gave the administrative rts as follows for my app.exe...Also under which event i should write the code to do so...
Collapse | Copy Code
ProcessStartInfo proc = new ProcessStartInfo();
proc.UseShellExecute = true;
proc.FileName = Application.ExecutablePath;
proc.Verb = "runas";






// The user refused the elevation.

// Do nothing and return directly ...



Application.Exit(); // Q

and also added app.manifest with requireadministrator option...Still its not going from program files on uninstalling...
Closed because this exact post has already been posted by another member. Reported by Sandeep Mewara, ThePhantomUpvoter on Sunday, April 21, 2013 3:27am
Posted 20-Apr-13 16:14pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.160730.1 | Last Updated 20 Apr 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100