Click here to Skip to main content
11,573,935 members (55,524 online)
See more: 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

Advertise | Privacy | Mobile
Web03 | 2.8.150624.2 | Last Updated 20 Apr 2013
Copyright © CodeProject, 1999-2015
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