I am trying to allow the user the option of selecting another
folder if the user selected folder already contains an installation.
I know a user cannot install multiple instances of the same
package, but if the new package has a different GUID, the user
may want to try an install in "\My Company\My Product" where
an existing install resides.
I need something that will detect if a single file already exists
using the user APPDIR selection from FolderDlg. If that file
exists, warn the user and allow him to go back to the FolderDlg
to select another installation folder.
The specific problem encountered is at install time. The msiexec log
reports:
... File: C:\My Company\My Product\AFileName.txt; Overwrite; Won't patch;
Existing file is unversioned and unmodified. File: ...
This is true. And the install silently fails. I want to prevent the
user from encountering this condition by checkng for a specific
filename I know will always exist in any installation. I want to
recover by allowing a different entry in FolderDlg.
The findFolder() function at
http://www.advancedinstaller.com/forums ... vbs#p18884
is close, but I would rather not error out. I would prefer to backup and
allow the user to select another folder.
Thank you for you GREAT support!
Cecil
FOLLOW US
Get the latest news in Application Packaging