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!
xml uninstall file
Collapse
X
-
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:
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);
-
Comment