View Full Version : xml uninstall file
thetford
09-25-2006, 12:11 AM
I think I just need a point in the right direction. I have an installer that writes an uninstall.xml file (to run in silent mode). How can I make autoplay execute that file, so that the files are uninstalled without any interaction from the PC user? Remember, I'm no expert!
First, find out where your installer places the uninstall.exe file. Usually it will be something like 'C:\Windows\My_Program_Name' where 'My_Program_Name' is your application name in the installer.
Next, just run the uninstall executable with the path to your uninstall XML file with the silent switch. Here is the code:
result = File.Run(_WindowsFolder.."\\My_Program_Name\\uninstall.exe", '"/U:C:\\Program Files\\My_Program_Name\\uninstall.xml" /S', _WindowsFolder.."\\My_Program_Name", SW_MINIMIZE, true);
thetford
09-25-2006, 07:29 AM
thanks, I thought it would be simple!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.