Hello,
This may happen if the following conditions are met:
1. during installation the product is installed to a different location that the default path (e.g. "[ProgramFilesFolder][Manufacturer]\[ProductName]") set in "Install Parameters" page for "Application Folder" directory
2. you are using the "Application Folder" directory (APPDIR property) or one of its sub-folders in the source/destination paths of your
file move operation scheduled on uninstall
In this case, on uninstall, the file move operation will fail to correctly resolve the source file path, and therefore won't find the source file. This is because the "APPDIR" property is always set to its default path (from "Install Parameters") at each setup run (install, maintenance or uninstall).
In order to avoid this behavior, as a workaround, you can create at install time a registry value (i.e. "Path") which will store the installation path (APPDIR property) and, then on uninstall add a search which will get the installation path from registry and set it in the "APPDIR" property. Here are a step by step procedure:
1. go to "Registry" page and create under "Software\[Manufacturer]\[ProductName]" a registry value like this
- Name: Path
Data: [APPDIR]
2. go to "Search" page and add a new search (
MY_SEARCH)
3. select the above search, from its context menu choose "Add Location -> Registry" and configure the registry search like this:
- Key: Software\[Manufacturer]\[ProductName]
Name: Path
Type: Retrieve the raw value
4. go to "Custom Actions" page and add a "Set installer property" custom action with sequence (scheduled only on
uninstall), after "Install Execution Stage -> Searches" action group, like this:
- Property: APPDIR
Value: [MY_SEARCH]
5. rebuild and test again the scenario
Let us know if this helped, otherwise please send us the .aip (project file) to
support at advancedinstaller dot com so we can investigate its settings.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging