Hi,
Your old package is a non msi package. To uninstall it before installing the new version of your package (created with AI) you need to execute this registry value:
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\V1Name
Here is how you can do this:
1. Switch to "Search" page and create a "New Search->Add Location->Registry". Browse for the "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\V1Name" key.
2. Switch to "Custom Actions" page and add a "Exe with Working Dir" custom action under the "InstallUISequence->CostFinalize". Use following options for the custom action:
2.1 Full Path: [RESULT_PROPERTY]
2.2 Execution Condition: (Not Installed) AND RESULT_PROPERTY
Were RESULT_PROPERTY is the property defined in the "Search" page. This property keeps the result of the registry search.
Hope this helps. Please let me know if I don't understand correctly what you want to achieve.
Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging