
cmolstad1.5524923968009846E12 asked a question.
MSI cache
I'm kind of new to InstallShield and I mostly just use it for repackaging some apps for deployment through SCCM. Anyway, I noticed that the first time a user runs certain MSI based applications, the application tries to configure itself, and looks for the source MSI. If it's no longer in the ccmcache folder, it fails to run and asks to browse for the MSI source. I know many applications cache the MSI into folders such as C:\Windows\Installer or C:\ProgramData\Package Cache. How do I tell InstallShield to cache the MSI somewhere? The only setting I found is in the release section, but that only is for programs using setup.exe, and I try to make my installs as only MSI's. If there is a setting, is there a default or standard folder that the MSI should be cached to?
That's how it works for me, at least.
There's a bit more too it than that, like how it stores the entry in the registry to map your MSI to the one in the cache, but it gets a bit more involved with GUID scrambling going on. I have an unscrambler myself that I wrote which allows me to verify a few things, but it's all Microsoft stuff there.
I hope that helps some.
Chad
The C:\Windows\Installer folder is a hidden folder that we are not supposed to know about (Shhh, don't tell anyone it is there). Lol.
Chad
Consider the MSI where none of the files are compressed (embedded) into the MSI - where all the payload files are sitting in a folder with the MSI - uncompressed
If it went to cache this MSI then all of the uncompressed files would have to likewise be copied to the C:\Windows\Installer folder. This would absolutely fill up the cache folder with files that are not the MSI itself, but are the deliverable files.
If your Payload is very large then this can be a problem because not only do you have to have space for your install, but you would have to have double that space in order to cache everything also.
Microsoft decided a long time ago, when hard drive space was at more of a premium, that they would only cache the MSI itself. Probably not a bad decision in hind sight.
I hope that helps some.
Chad
https://www.symantec.com/connect/articles/reducing-windows-installer-disk-wastage-windows-7
Thanks,
Chad