मुझे इसी तरह की समस्या है और इसे क्रिस्टोफ द्वारा वर्णित वैसे ही हल किया गया है, मैं यह भी जानना चाहूंगा कि ऐसा करने के कोई वैकल्पिक तरीके हैं, लेकिन यदि आपको कुछ भी नहीं मिला है तो उदाहरण है
1) निम्नलिखित InstallerClass
using System;
using System.Collections;
using System.ComponentModel;
using System.Configuration.Install;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Microsoft.VisualStudio.Tools.Applications;
using Microsoft.Win32;
namespace Setup.CustomActions
{
[RunInstaller(true)]
public partial class AddCustomization : Installer
{
static readonly Guid solutionID = new Guid("d6680661-c31e-4c24-9492-5919dc0uagt5");
public override void Install(IDictionary stateSaver)
{
string installPath = Context.Parameters["installPath"];
if(!String.IsNullOrEmpty(installPath))
{
AddTemplateToAvailableTemplates(installPath);
}
base.Install(stateSaver);
}
public override void Rollback(IDictionary savedState)
{
}
public override void Uninstall(IDictionary savedState)
{
}
private void AddTemplateToAvailableTemplates(string installPath)
{
//The example below is very basic, put in checks to see whether the registry key already exists and so on
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Office\14.0\Common", true);
RegistryKey acturisKey = key.CreateSubKey(@"Spotlight\MyAppInstallPath");
acturisKey.SetValue("InstallPath", installPath);h);
}
}
}
2) सेटअप परियोजना में कस्टम स्थापित कार्रवाई जो स्थापित निर्देशिका के लिए अंक पर एक कुंजी बनाने के साथ एक कस्टम कार्यों पुस्तकालय बनाएँ: 
आप अधिक जानकारी की जरूरत है या स्रोत डाउनलोड करने के लिए चाहते हैं खुला Xml एमवीपी Wouter वैन Wugt द्वारा this MSDN पोस्ट शीर्षक पर एक नजर है, तो
स्रोत
2012-03-28 06:59:12
यह अंतिम उपाय हो सकता है ... देखें कि कोई भी बेहतर विचार के साथ आता है या नहीं। – Jake
ठीक है, मैंने सभी प्रकार की प्रतिबिंब सामग्री की कोशिश की। तथ्य यह है कि असेंबली को यादृच्छिक स्थान पर कॉपी किया गया है और इसलिए इसे साथ लाई गई कोई भी फाइल नहीं मिल सकती है। यदि आप रजिस्ट्री को लिखना नहीं चाहते हैं तो आप ... खोज सकते हैं? लेकिन यह आपको सभी ड्राइव खोजने के लिए छोड़ सकता है। –