目录结构: C:\Program Files (x86)\Driver\firmware
- <Fragment>
- <Directory Id="TARGETDIR" Name="SourceDir">
- <Directory Id="ProgramFilesFolder">
- <Directory Id="INSTALLFOLDER" Name="Driver" >
- <Directory Id="INSTALL_SUBFOLDER" Name="firmware" />
- </Directory>
- </Directory>
- </Directory>
- </Fragment>
分别在Driver和firmware下添加安装文件:
- <Fragment>
- <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
- <Component Id="ProductComponent">
- <!-- TODO: Insert files, registry keys, and other resources here. -->
- <File Id="boot_wrapper.bin" Source="$(var.SolutionDir)firmware\boot-wrapper.bin" />
- <File Id="device.dtb" Source="$(var.SolutionDir)firmware\device.dtb" />
- <!-- </Component> -->
- </Component>
- </ComponentGroup>
- </Fragment>
-
- <Fragment>
- <ComponentGroup Id="ProductFirmware" Directory="INSTALL_SUBFOLDER">
- <Component Id="ProductFirmware">
- <File Id="logo.ico" Source="$(var.ProjectDir)pictures\logo.ico" />
- </Component>
- </ComponentGroup>
- </Fragment