Installing to GAC using WIX

K

kanepart2

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>
 
K

kanepart2

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
 
K

kanepart2

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'.
 
J

John Vottero

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 <File> element, 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/forum.php?forum_name=wix-users
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top