xml uninstall file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • thetford
    Forum Member
    • Feb 2005
    • 175

    xml uninstall file

    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!
  • Tek
    Forum Member
    • Mar 2004
    • 695

    #2
    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

    • thetford
      Forum Member
      • Feb 2005
      • 175

      #3
      thanks, I thought it would be simple!

      Comment

      Working...
      X