When running "dpinst /C /PATH .", the driver is loaded and confirmed with
issuing "fltmc".

I built the MSI using WiX Editor with no errors. Running the MSI, the
driver is not loaded, not placed into system32\drivers. The installation
finishes with no errors.

The WXS file is as below. Any help is greatly appreciated!

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
    <Product Id="C7D88685-E2CE-41C1-B15D-E4EC64FA3564" Name="Hipara"
Language="1033" Version="0.0.0.1" Manufacturer="Allsum, LLC"
UpgradeCode="502D54B1-F5F7-4256-9C38-E111A423EA06">
        <Package Description="Test file in a Product" Comments="Simple
test" InstallerVersion="200" Compressed="yes" />
        <Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="InstallDir" Name="Hipara">
                    <Component Id="DPInst"
Guid="DCAC9BB2-2422-40C7-94A7-8957D6FD2E61">
                        <File Id="DPInstaller" Name="DPInst.exe"
Source=".\Files\DPInst.exe" />
                    </Component>
                    <Component Id="HIPARA.EXE" DiskId="1"
Guid="AB389937-378A-4D4F-90F2-5E26312E944C">
                        <File Id="HIPARA.EXE" Name="hipara.exe"
Source=".\Files\hipara.exe" />
                        <!--  <Shortcut Id="desktopShortcut"
Directory="DesktopFolder" Name="Hipara" WorkingDirectory="INSTALLDIR"
Advertise="no" Icon="DesktopIcon.exe" IconIndex="0" />
                        <Shortcut Id="ExeShortcut"
Directory="ProgramMenuDir" Name="Hipara" WorkingDirectory="INSTALLDIR"
Advertise="no" Icon="StartMenuIcon.exe" IconIndex="0" />
                        -->
                    </Component>
                    <Component Id="JANSSON32.DLL" DiskId="1"
Guid="1FFCCF56-6C6F-4A09-8A13-99638BD5CC04">
                        <File Id="JANSSON32.DLL" Name="jansson32.dll"
Source=".\Files\jansson32.dll" />
                    </Component>
                    <Component Id="LIBCURL.DLL" DiskId="1"
Guid="A5923935-0226-4B74-A66C-200E4CC5E8E8">
                        <File Id="LIBCURL.DLL" Name="libcurl.dll"
Source=".\Files\libcurl.dll" />
                    </Component>
                    <Component Id="Signed_driver" DiskId="1"
Guid="C20F1081-5B58-488B-A7C0-8395F752BA9F">
                        <File Id="SCANNER.INF" Name="scanner.inf"
DiskId="1" Source=".\Files\scanner.inf" />
                        <File Id="SCANNER.CAT" Name="scanner.cat"
DiskId="1" Source=".\Files\scanner.cat" />
                        <File Id="SCANNER.SYS" Name="scanner.sys"
DiskId="1" Source=".\Files\scanner.sys" />
                        <File Id="SCANNER_TEST.CER" Name="scanner_test.cer"
DiskId="1" Source=".\Files\scanner_test.cer" />
                    </Component>
                </Directory>
            </Directory>
            <Directory Id="DesktopFolder" />
            <Directory Id="ProgramMenuFolder">
                <Directory Id="ProgramMenuDir">
                    <Component Id="StartMenuShortcuts"
Guid="ECBB0886-9BE4-4C5B-8380-300352C12047">
                        <RemoveFolder Id="ProgramMenuDir" On="uninstall" />
                        <RegistryValue Root="HKCU"
Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" />
                    </Component>
                </Directory>
            </Directory>
        </Directory>
        <Feature Id="MainApplication" Title="Main Feature" Level="1">
            <ComponentRef Id="DPInst" />
            <ComponentRef Id="HIPARA.EXE" />
            <ComponentRef Id="JANSSON32.DLL" />
            <ComponentRef Id="LIBCURL.DLL" />
            <ComponentRef Id="Signed_driver" />
            <ComponentRef Id="StartMenuShortcuts" />
        </Feature>
        <CustomAction Id="Install_Driver" Execute="deferred"
Directory="InstallDir" ExeCommand="&quot;[InstallDir]DPInst.exe&quot; /PATH
&quot;[InstallDir]" Return="ignore" />
        <CustomAction Id="Uninstall_Driver" Directory="InstallDir"
ExeCommand="&quot;[InstallDir]DPInst.exe&quot; /U
&quot;[InstallDir]scanner.inf&quot; /D" Return="ignore" />
        <InstallExecuteSequence>
            <Custom Action="Install_Driver" After="InstallFiles">NOT
Installed</Custom>
            <Custom Action="Uninstall_Driver"
After="RemoveRegistryValues">Installed</Custom>
        </InstallExecuteSequence>
        <UIRef Id="WixUI_Minimal" />
        <!--
        <UI />
        <UIRef Id="WixUI_Minimal" />
        <Icon Id="DesktopIcon.exe"
SourceFile="..\Desktop\hipara\scanner\hipara.exe" />
        <Icon Id="StartMenuIcon.exe"
SourceFile="..\Desktop\hipara\scanner\hipara.exe" />
        -->
        <UI />
    </Product>
</Wix>
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to