Index: /trunk/src/VBox/Installer/win/VirtualBox.wxs
===================================================================
--- /trunk/src/VBox/Installer/win/VirtualBox.wxs	(revision 66058)
+++ /trunk/src/VBox/Installer/win/VirtualBox.wxs	(revision 66059)
@@ -455,6 +455,8 @@
 <?endif ?>
 
+<?if $(env.VBOX_WITH_UNATTENDED) = "yes" ?>
         <!-- unattended template component -->
         <ComponentRef Id="cp_UnattendedTemplates" />
+<?endif ?>
 
         <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1"
