Hi Dan,
thank you much, i was focused on switching between GAC and normal install, but doubling the files into it´s own components makes absolute sense
now i have another problem with GAC installed assemblies. May be you can assist here, it´s a little bit complicated:
Following situation, we have two versions of the installatio:
V1: Assemblies are installed in GAC using "Generate when Computer is idle" option.
V2: Assemblies are installed in GAC using ""Wait for this native image generation to continue". option.
Both versions have same Upgrade-Code and use "Uninstall old version first and then install new version".
Beside the GAC assemblies there are other resources, but we can keep them out, because they work, and just focus on the GAC.
Also during the installation no program is open, which references the GAC assemblies (i guard this with a "Detect Process" custom action).
V1 Version is currently out on clients. When V2 is installed over V1 i would expect that the assemblies are in GAC, but this is not the case. Also some
clients are forced to a hard reboot when a program tries to use the referenced assemblies in the GAC (which are not there at this time).
Even open documents (Word, Excel) are not asked to be saved in the hard reboot.
When V2 is installed without V1 existing on the system, the assemblies are there immediately and no reboot is forced, all fine.
Two questions pop up:
1. Why are the GAC assemblies not in-place when V2 is installed over V1?
2. What is going on in the system when a program tries to use the non-existing assemblies in GAC, that a hard reboot is forced, which disrupts users immediately from there work?
i thing that something here is related to how "ngen" works, but may be you can give a starter, or may be give some advice how AdvancedInstaller would use "ngen" internally to accomplish
it´s task in the V1 -> V2 sequence, that i can do some research in the underpinnings. I was hoping to avoid touching "ngen" in installer environments, but maybe i have no chance
any idea?
FOLLOW US
Get the latest news in Application Packaging