Announcement

Collapse
No announcement yet.

xml uninstall file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

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


    • #3
      thanks, I thought it would be simple!

      Comment

      Working...
      X