Why does this wxs file work (i.e. the single file to install is installed at 
the correct location)


<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

<Product Id="b32bcc70-3020-49fb-a1a5-1565ca08790c" Name="SetupProject1" 
Language="1033" Version="1.0.0.0" Manufacturer="SetupProject1" 
UpgradeCode="3e856891-0320-4a41-b01f-468a1e10a832">

<Package InstallerVersion="200" Compressed="yes" />

<PropertyRef Id="VS90_ROOT_FOLDER"/>

<PropertyRef Id="VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED"/>

<PropertyRef Id="VS90_ITEMTEMPLATES_DIR"/>

<Property Id="PROPCSHARPTEMPLATEDIR">

<RegistrySearch Id="VS90ItemTemplates" Root="HKLM" 
Key="SOFTWARE\Microsoft\VisualStudio\9.0\VSTemplate\Item" Name="UserFolder" 
Type="directory">

<DirectorySearch Id="VS90CSharpFolder" Path="CSharp" Depth="1" 
AssignToProperty="yes">

<FileSearch Id="simpleunittest" Name="SimpleUnitTest.zip"/>

</DirectorySearch>

</RegistrySearch>

</Property>

<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

<Directory Id="TARGETDIR" Name="SourceDir">

<Directory Id="PROPCSHARPTEMPLATEDIR">

<Component Id="CSharp_VSTS.zip_VS_08_Language" 
Guid="AF4D260F-30C0-4668-92D5-D619FA38A53C" DiskId="1" Transitive="yes">

<!--<Condition>(VS90_ROOT_FOLDER AND VS90DEVENV AND 
VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED AND VS_CSHARP_LANG)</Condition>-->

<File Id="CSharpTestTemplateLang" KeyPath="yes" 
src="TestTemplate\WebAiiTest.zip"/>

</Component>

</Directory>

<Directory Id="ProgramFilesFolder">

<Directory Id="INSTALLLOCATION" Name="SetupProject1">

<!-- TODO: Remove the comments around this Component element and the 
ComponentRef below in order to add resources to this installer. -->

<!--<Component Id="ProductComponent" 
Guid="c82484d0-af84-4d1d-87a7-a3a8fde1e0bc">-->

<!-- TODO: Insert files, registry keys, and other resources here. -->

<!--</Component>-->

</Directory>

</Directory>

</Directory>

<Feature Id="ProductFeature" Title="SetupProject1" Level="1">

<ComponentRef Id="CSharp_VSTS.zip_VS_08_Language" />

</Feature>

</Product>

</Wix>


but not this one?


<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

<Product Id="b32bcc70-3020-49fb-a1a5-1565ca08790c" Name="SetupProject1" 
Language="1033" Version="1.0.0.0" Manufacturer="SetupProject1" 
UpgradeCode="3e856891-0320-4a41-b01f-468a1e10a832">

<Package InstallerVersion="200" Compressed="yes" />

<PropertyRef Id="VS90_ROOT_FOLDER"/>

<PropertyRef Id="VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED"/>

<PropertyRef Id="VS90_ITEMTEMPLATES_DIR"/>

<Property Id="PROPCSHARPTEMPLATEDIR">

<!--<RegistrySearch Id="VS90ItemTemplates" Root="HKLM" 
Key="SOFTWARE\Microsoft\VisualStudio\9.0\VSTemplate\Item" Name="UserFolder" 
Type="directory">-->

<DirectorySearch Id="VS90CSharpFolder" Path="[VS90_ITEMTEMPLATES_DIR]CSharp" 
Depth="1" AssignToProperty="yes">

<FileSearch Id="simpleunittest" Name="SimpleUnitTest.zip"/>

</DirectorySearch>

<!--</RegistrySearch>-->

</Property>

<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

<Directory Id="TARGETDIR" Name="SourceDir">

<Directory Id="PROPCSHARPTEMPLATEDIR">

<Component Id="CSharp_VSTS.zip_VS_08_Language" 
Guid="AF4D260F-30C0-4668-92D5-D619FA38A53C" DiskId="1" Transitive="yes">

<!--<Condition>(VS90_ROOT_FOLDER AND VS90DEVENV AND 
VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED AND VS_CSHARP_LANG)</Condition>-->

<File Id="CSharpTestTemplateLang" KeyPath="yes" 
src="TestTemplate\WebAiiTest.zip"/>

</Component>

</Directory>

<Directory Id="ProgramFilesFolder">

<Directory Id="INSTALLLOCATION" Name="SetupProject1">

<!-- TODO: Remove the comments around this Component element and the 
ComponentRef below in order to add resources to this installer. -->

<!--<Component Id="ProductComponent" 
Guid="c82484d0-af84-4d1d-87a7-a3a8fde1e0bc">-->

<!-- TODO: Insert files, registry keys, and other resources here. -->

<!--</Component>-->

</Directory>

</Directory>

</Directory>

<Feature Id="ProductFeature" Title="SetupProject1" Level="1">

<ComponentRef Id="CSharp_VSTS.zip_VS_08_Language" />

</Feature>

</Product>

</Wix>


The only difference is how PROPCSHARPTEMPLATEDIR is getting created. The 
non-working one is referencing VS90_ITEMTEMPLATES_DIR from the WixVsExtensiion. 
The single file I'm trying to install is winding up at F:\. The AppSearch 
section of the log for the non-working one looks like this:


Action 19:23:35: AppSearch. Searching for installed applications

Action start 19:23:35: AppSearch.

AppSearch: Property: PROPCSHARPTEMPLATEDIR, Signature: VS90CSharpFolder

MSI (c) (04:80) [19:23:35:651]: Note: 1: 1322 2:

MSI (c) (04:80) [19:23:35:651]: Note: 1: 1322 2:

AppSearch: Property: VS90_ROOT_FOLDER, Signature: SearchForVS90RootPath

MSI (c) (04:80) [19:23:35:652]: PROPERTY CHANGE: Adding VS90_ROOT_FOLDER 
property. Its value is 'D:\Program Files (x86)\Microsoft Visual Studio 9.0\'.

AppSearch: Property: VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED, Signature: 
SearchForVCS90ProjectSystemUnderVSSetup

MSI (c) (04:80) [19:23:35:653]: PROPERTY CHANGE: Adding 
VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED property. Its value is 'csproj'.

AppSearch: Property: VS90_ITEMTEMPLATES_DIR, Signature: 
VS90ItemTemplatesPathSearch

MSI (c) (04:80) [19:23:35:653]: Note: 1: 1325 2: ItemTemplates

MSI (c) (04:80) [19:23:35:653]: PROPERTY CHANGE: Adding VS90_ITEMTEMPLATES_DIR 
property. Its value is 'D:\Program Files (x86)\Microsoft Visual Studio 
9.0\Common7\IDE\ItemTemplates\'.

Action ended 19:23:35: AppSearch. Return value 1.



Compared to the AppSearch section of the working one:



Action start 19:38:17: AppSearch.

AppSearch: Property: PROPCSHARPTEMPLATEDIR, Signature: VS90CSharpFolder

MSI (c) (90:3C) [19:38:17:649]: Note: 1: 1322 2:

MSI (c) (90:3C) [19:38:17:649]: Note: 1: 1322 2:

MSI (c) (90:3C) [19:38:17:649]: Note: 1: 1325 2: SimpleUnitTest.zip

MSI (c) (90:3C) [19:38:17:649]: Note: 1: 1325 2: SimpleUnitTest.zip

MSI (c) (90:3C) [19:38:17:649]: PROPERTY CHANGE: Adding PROPCSHARPTEMPLATEDIR 
property. Its value is 'D:\Program Files (x86)\Microsoft Visual Studio 
9.0\Common7\IDE\ItemTemplates\CSharp\1033\'.

AppSearch: Property: VS90_ROOT_FOLDER, Signature: SearchForVS90RootPath

MSI (c) (90:3C) [19:38:17:649]: PROPERTY CHANGE: Adding VS90_ROOT_FOLDER 
property. Its value is 'D:\Program Files (x86)\Microsoft Visual Studio 9.0\'.

AppSearch: Property: VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED, Signature: 
SearchForVCS90ProjectSystemUnderVSSetup

MSI (c) (90:3C) [19:38:17:649]: PROPERTY CHANGE: Adding 
VS90_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED property. Its value is 'csproj'.

AppSearch: Property: VS90_ITEMTEMPLATES_DIR, Signature: 
VS90ItemTemplatesPathSearch

MSI (c) (90:3C) [19:38:17:650]: Note: 1: 1325 2: ItemTemplates

MSI (c) (90:3C) [19:38:17:650]: PROPERTY CHANGE: Adding VS90_ITEMTEMPLATES_DIR 
property. Its value is 'D:\Program Files (x86)\Microsoft Visual Studio 
9.0\Common7\IDE\ItemTemplates\'.

Action ended 19:38:17: AppSearch. Return value 1.



Is one not allowed to reference WixVsExtension properties when trying to create 
my own? BTW, I'm using WIX 3.5.1309.0. Tried both 64-bit and 32-bit Vista. They 
act the same.



- Cody


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to