We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

steven_hunter
Posts: 7
Joined: Tue May 16, 2006 2:17 pm
Location: West Lafayette, IN

Uninstall issues...

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!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
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).
You can schedule the custom action (New Attached Custom Action) under the "InstallFinalize" standard action (make this standard action visible by right clicking on "InstallExecuteSequance" and choose "Show Standard Action->Before Finalize->InstallFinalize").
Use following options for the custom action:
1. Execution Properties: Synchronous execution, check return code
2. Execution Options: Immediate execution
3. Scheduling Options: Always Execute
4. Execution Condition: REMOVE="ALL"

Note that "Function name" field must be edited with the function name from the script file or let this field empty if you don't have a function in your script.

Please let me know if the problem persists.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
steven_hunter
Posts: 7
Joined: Tue May 16, 2006 2:17 pm
Location: West Lafayette, IN

Yes! That did the trick. Thank you!!

Return to “Common Problems”