469,282 Members | 2,123 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Installing to GAC using WIX

So, I have a bunch of dll's. I want to create an MSI file in wix that
installs them into C:/Windows/Assembly, I have tried doing the
following but it doesnt work for installation of the files (ie.
replicating the drag and drop action)

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

<Component Id="InstallComponent" Guid="guild goes here">
<File Id='xxxx.dll' KeyPath="yes" Name='xxxx.dll'
LongName="xxxxxxxxx.dll" DiskId='1' src='C:/Xxxxxxxxxxxxxxxxxx.dll' /
>
</Component>

</Directory>
</Directory>
</Directory>

May 24 '07 #1
3 11556
On May 24, 10:54 am, kanepa...@hotmail.com wrote:
So, I have a bunch of dll's. I want to create an MSI file in wix that
installs them into C:/Windows/Assembly, I have tried doing the
following but it doesnt work for installation of the files (ie.
replicating the drag and drop action)

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

<Component Id="InstallComponent" Guid="guild goes here">
<File Id='xxxx.dll' KeyPath="yes" Name='xxxx.dll'
LongName="xxxxxxxxx.dll" DiskId='1' src='C:/Xxxxxxxxxxxxxxxxxx.dll' /

</Component>

</Directory>
</Directory>
</Directory>
and i forgot to put the error i'm getting on compilation using vs

Error 1 Unresolved reference to symbol 'Component:ProductComponent' in
section 'Product:B72F8590-09FD-11DC-9C70-B48C55D89593'. C:\Documents
and Settings\GE20\My Documents\development work\GAC installation\GAC
installation\Product.wxs

May 24 '07 #2
On May 24, 10:54 am, kanepa...@hotmail.com wrote:
So, I have a bunch of dll's. I want to create an MSI file in wix that
installs them into C:/Windows/Assembly, I have tried doing the
following but it doesnt work for installation of the files (ie.
replicating the drag and drop action)

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

<Component Id="InstallComponent" Guid="guild goes here">
<File Id='xxxx.dll' KeyPath="yes" Name='xxxx.dll'
LongName="xxxxxxxxx.dll" DiskId='1' src='C:/Xxxxxxxxxxxxxxxxxx.dll' /

</Component>

</Directory>
</Directory>
</Directory>
and i forgot to put the error

Error 1 Unresolved reference to symbol 'Component:ProductComponent' in
section 'Product:B72F8590-09FD-11DC-9C70-B48C55D89593'.

May 24 '07 #3
<ka*******@hotmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
So, I have a bunch of dll's. I want to create an MSI file in wix that
installs them into C:/Windows/Assembly, I have tried doing the
following but it doesnt work for installation of the files (ie.
replicating the drag and drop action)

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

<Component Id="InstallComponent" Guid="guild goes here">
<File Id='xxxx.dll' KeyPath="yes" Name='xxxx.dll'
LongName="xxxxxxxxx.dll" DiskId='1' src='C:/Xxxxxxxxxxxxxxxxxx.dll' /
>>
In the <Fileelement, you need to add

AssemblyManifest='xxxx.dll' (or whatever your file ID really is)
Assembly='.net'

That may not be the only problem, the error isn't something I've seen
before.

You might get better help with the WiX mailing list:

http://sourceforge.net/mailarchive/f...name=wix-users
May 24 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jean-Christian Imbeault | last post: by
4 posts views Thread by GujuBoy | last post: by
reply views Thread by Jerry He | last post: by
3 posts views Thread by jaggi | last post: by
2 posts views Thread by celerno | last post: by
3 posts views Thread by =?Utf-8?B?VmFuZXNzYQ==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.