Hi,
The cached MSI file is only 1.5MB. Why are they so different in size? How does the "REPAIR" work if it doesn't contain all the files?
Only the MSI Database is cached (without the files). The repair will not work if the original MSI file is not found (the location of the original MSI is stored by WI in the registry). Windows Installer will prompt the user to select the original MSI file in case it is not found.
As a result of the much smaller file size, is there a way to copy the cached MSI file to APPDIR instead of the original MSI file?
I don't think that this can be done since Windows Installer cache the MSI file under a random name. What you can do is to copy the original MSI file to your APPDIR for backup. Here is how you can do that:
In the "Install Parameters" page create a property and name it SOURCE_FOLDER. Switch to "Custom Actions" page and create a "Property set with Formatted" custom action under "InstallUISequence->Begin". Use following options for the CA:
Property Name: SOURCE_FOLDER
Formatted Text: [SourceDir]
Now drag this custom action (while shift key is pressed) to "InstallExecuteSequence->Begin".
Switch to "Files and Folders" page and create a property based folder using the property created below.
Now select the "Application Folder" and choose "New File Operation->File Copy/Move". Choose SOURCE_FOLDER as source folder. As "Operation" choose "Copy".
Hope this helps,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging