Hello,
First I will say thank you for the support you've given me in figuring out how to configure setups with AI. It is a lifesaver.
I am looking at a Merge Module that I've designed because a few of my Assemblies are used by pretty much all of my projects. However, a few of them are also used as part of Visual Studio, and thus I like to "Add" them to the .Net References list. Now in order to do this, the Folder containing my GAC dll's must be listed under the HKLM\Software\Microsoft\.NETFramework\AssemblyFolders Registry Key.
So, if I were to install the dll to C:\Program Files\My Company\Common\MyGACDll.Dll
In the Merge Module, I added the Registry Key to Create:
HKLM\Software\Microsoft\.NETFramework\AssemblyFolders\My Company\(Default) = "C:\Program files\My Company\Common"
Now, the next time Visual Studio is opened, and the Add Reference dialog is opened, under the .Net tab, my namespace will be visible.
However, in AI, what I did was added the file to the directory structure I wanted to install it as, and then added it to the Assemblies Section, setting it to install to the GAC. However, my installation projects that use this merge module do not install the actual DLL to anywhere BUT the GAC. So my Added registry setting is pretty much useless.
My Solution so far, and I could use some pointers:
I've got the dll added to two locations in the files and folders section:
[CommonFilesFolder]MyCompany
APPDIR
In the Assemblies Section, I added the APPDIR copy of the DLL into the GAC
I added the CommonFiles copy of the dll to a "Specific Location" which is the DIR added to the registry in my custom registry entries.
However, since this is a shared Assembly, I went to the organization section, which shows 3 components.
My_Assembly_dll - Project Main Component
My.Assembly.dll - Assembly Component to Specific Location
My.Assembly.dll_1 - Assembly Component to GAC
The question is, I want them to remain as they are so if one of my projects is uninstalled, it doesn't remove them until the last application is removed. I wanted to verify, should i set the condition for these three to be (Not Installed) And/Or should i set the "Shared DLL Reference Count" AND/OR
"Shared Amongst Packages" for any one of them or all three?
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
FOLLOW US
Get the latest news in Application Packaging