I am repackaging an otherwise stand-alone program (Oracle client v9.2) in order to distribute it via Group Policy on a 2003 domain.
Anyway, I've got everything working fine (install and uninstall) except that when I uninstall two directories remain that I would like to remove.
First is the directory tree left over from running Oracle's own uninstaller. And the second is a folder created by my MSI at install.
I tried the script and methods suggested in this post:
http://www.advancedinstaller.com/forums ... .php?t=799
but all I get is "There is a problem with this Windows installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor." no matter what I do. Or if I add the line "On Error Resume Next", then it simply doesn't delete anything.
All I want to do is this:
SET fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFolder "c:\oracle", true
fso.DeleteFolder "c:\oracle_install_source", true
And I want it to run as the last thing the MSI engine does (or as close as possible because "c:\oracle_install_source" contains the Oracle uninstaller that I need to run).
Thanks in advance!
FOLLOW US
Get the latest news in Application Packaging