Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Support for DifxApp/Driver Install

$
0
0
Добрый день Олег.
Скажите, пожалуйста, когда будет поддержка драйверов? Или помогите мне решить проблему.
Сделал установку драйвера как по коду выше:
project.WixExtensions.Add("WixDifxAppExtension.dll");
project.WixNamespaces.Add("difx=\"http://schemas.microsoft.com/wix/DifxAppExtension\"");
project.WixSourceGenerated += InstallSIA3Driver;
project.PreserveTempFiles = true;

return project.BuildMsm();

        private static void InstallSIA3Driver(XDocument document)
        {
                XNamespace difx = "http://schemas.microsoft.com/wix/DifxAppExtension";
                
                document
                    .FindAll("File")
                    .Single(e => e.HasAttribute("Source", a => a.EndsWith("usbser.sys")))
                    .Parent
                    .Add(new XElement(difx + "Driver")
                    .AddAttributes("AddRemovePrograms=no; DeleteFiles=no; Legacy=yes; PlugAndPlayPrompt=no; Sequence=1"));            
        }
Но при компиляции возникает ошибка:
Unresolved reference to symbol 'CustomAction:MsiProcessDrivers' in section 'Module:SIS3MergeModule'.

в wxs все нормально прописывается:
<Component Id="Component.usbser.sys" Guid="a19b5f60-0e64-402c-b898-4e7008035c4f">
  <File Id="usbser.sys" Source="...\usbser.sys" />

  <difx:Driver AddRemovePrograms="no" DeleteFiles="no" Legacy="yes" PlugAndPlayPrompt="no" Sequence="1" />
</Component>
Заранее спасибо.

Viewing all articles
Browse latest Browse all 1354

Trending Articles