(still) trying to install a PowerShell SnapIn using WiX

5 messages Options
Embed this post
Permalink
Mark Parker-2

(still) trying to install a PowerShell SnapIn using WiX

Reply Threaded More More options
Print post
Permalink
I'm (still) trying to install a SnapIn using WiX and PSExtension. I'm
(still) getting the same error, however, which doesn't make any sense to
me, and I believe it's a bug in PSExtension. Here's the relevant
component in my .wxs file:

<Component Id="nmps_dll" Guid="1c48d3b5-64ab-4f0c-9ce6-c4eb6f3232e9">
        <File Id="pstools.dll" Source="$(var.pstools.TargetDir)" KeyPath="yes"
Assembly=".net" AssemblyApplication="pstools.dll">
                <ps:SnapIn Id="pstools" Description="Management Tools"
Vendor="mycompany" />
        </File>
</Component>

And when I try to build the installer, I get this error:

Unresolved bind-time variable !(bind.assemblyName.pstools.dll),
Version=!(bind.assemblyVersion.pstools.dll),
Culture=!(bind.assemblyCulture.pstools.dll),
PublicKeyToken=!(bind.assemblyPublicKeyToken.pstools.dll).

If I leave the <ps:SnapIn> tag out, it builds fine (but doesn't register
the snapin, of course), and if I leave the AssemblyApplication attribute
out, I get an error about strong names (which is expected, it's not
strong-named, but I don't want it to go in the GAC).

Please, can anyone help me out?

Mark


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Simon Dahlbacka

Re: (still) trying to install a PowerShell SnapIn using WiX

Reply Threaded More More options
Print post
Permalink
On Mon, Sep 28, 2009 at 9:37 PM, Mark <[hidden email]> wrote:

> I'm (still) trying to install a SnapIn using WiX and PSExtension. I'm
> (still) getting the same error, however, which doesn't make any sense to
> me, and I believe it's a bug in PSExtension. Here's the relevant
> component in my .wxs file:
>
> <Component Id="nmps_dll" Guid="1c48d3b5-64ab-4f0c-9ce6-c4eb6f3232e9">
>        <File Id="pstools.dll" Source="$(var.pstools.TargetDir)"
> KeyPath="yes"
> Assembly=".net" AssemblyApplication="pstools.dll">
>                <ps:SnapIn Id="pstools" Description="Management Tools"
> Vendor="mycompany" />
>        </File>
> </Component>
>
> And when I try to build the installer, I get this error:
>
> Unresolved bind-time variable !(bind.assemblyName.pstools.dll),
> Version=!(bind.assemblyVersion.pstools.dll),
> Culture=!(bind.assemblyCulture.pstools.dll),
> PublicKeyToken=!(bind.assemblyPublicKeyToken.pstools.dll).
>
> If I leave the <ps:SnapIn> tag out, it builds fine (but doesn't register
> the snapin, of course), and if I leave the AssemblyApplication attribute
> out, I get an error about strong names (which is expected, it's not
> strong-named, but I don't want it to go in the GAC).
>
> Don't know anything about installing snapins but:
Doesn't @Assembly=".net" say that the file is to be installed in GAC ?

/Simon
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Mark Parker-2

Re: (still) trying to install a PowerShell SnapIn using WiX

Reply Threaded More More options
Print post
Permalink
Simon Dahlbacka wrote:

> On Mon, Sep 28, 2009 at 9:37 PM, Mark <[hidden email]> wrote:
>
>> I'm (still) trying to install a SnapIn using WiX and PSExtension. I'm
>> (still) getting the same error, however, which doesn't make any sense to
>> me, and I believe it's a bug in PSExtension. Here's the relevant
>> component in my .wxs file:
>>
>> <Component Id="nmps_dll" Guid="1c48d3b5-64ab-4f0c-9ce6-c4eb6f3232e9">
>>        <File Id="pstools.dll" Source="$(var.pstools.TargetDir)"
>> KeyPath="yes"
>> Assembly=".net" AssemblyApplication="pstools.dll">
>>                <ps:SnapIn Id="pstools" Description="Management Tools"
>> Vendor="mycompany" />
>>        </File>
>> </Component>
>>
>> And when I try to build the installer, I get this error:
>>
>> Unresolved bind-time variable !(bind.assemblyName.pstools.dll),
>> Version=!(bind.assemblyVersion.pstools.dll),
>> Culture=!(bind.assemblyCulture.pstools.dll),
>> PublicKeyToken=!(bind.assemblyPublicKeyToken.pstools.dll).
>>
>> If I leave the <ps:SnapIn> tag out, it builds fine (but doesn't register
>> the snapin, of course), and if I leave the AssemblyApplication attribute
>> out, I get an error about strong names (which is expected, it's not
>> strong-named, but I don't want it to go in the GAC).
>>
>> Don't know anything about installing snapins but:
> Doesn't @Assembly=".net" say that the file is to be installed in GAC ?
>
> /Simon


Yes, unless @AssemblyApplication is specified. That's the way I read it,
anyway.

Mark


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Michael_A

Re: (still) trying to install a PowerShell SnapIn using WiX

Reply Threaded More More options
Print post
Permalink

Mark Parker-2 wrote:
Simon Dahlbacka wrote:
> On Mon, Sep 28, 2009 at 9:37 PM, Mark <godefroi@gmail.com> wrote:
>
>> I'm (still) trying to install a SnapIn using WiX and PSExtension. I'm
>> (still) getting the same error, however, which doesn't make any sense to
>> me, and I believe it's a bug in PSExtension. Here's the relevant
>> component in my .wxs file:
>>
>> <Component Id="nmps_dll" Guid="1c48d3b5-64ab-4f0c-9ce6-c4eb6f3232e9">
>>        <File Id="pstools.dll" Source="$(var.pstools.TargetDir)"
>> KeyPath="yes"
>> Assembly=".net" AssemblyApplication="pstools.dll">
>>                <ps:SnapIn Id="pstools" Description="Management Tools"
>> Vendor="mycompany" />
>>        </File>
>> </Component>
>>
>> And when I try to build the installer, I get this error:
>>
>> Unresolved bind-time variable !(bind.assemblyName.pstools.dll),
>> Version=!(bind.assemblyVersion.pstools.dll),
>> Culture=!(bind.assemblyCulture.pstools.dll),
>> PublicKeyToken=!(bind.assemblyPublicKeyToken.pstools.dll).
>>
>> If I leave the <ps:SnapIn> tag out, it builds fine (but doesn't register
>> the snapin, of course), and if I leave the AssemblyApplication attribute
>> out, I get an error about strong names (which is expected, it's not
>> strong-named, but I don't want it to go in the GAC).
>>
>> Don't know anything about installing snapins but:
> Doesn't @Assembly=".net" say that the file is to be installed in GAC ?
>
> /Simon


Did you ever find a resoultion to this issue as I'm having the same problem.

--Michael
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
Heath Stewart-2

Re: (still) trying to install a PowerShell SnapIn using WiX

Reply Threaded More More options
Print post
Permalink
What command are you running to link your project (light.exe)? I see no
notable differences between what you have and what I've had for a while that
works for me (
http://psmsi.codeplex.com/SourceControl/changeset/view/28813#40647).

On Tue, Oct 20, 2009 at 11:22 AM, Michael_A <[hidden email]> wrote:

>
>
>
> Mark Parker-2 wrote:
> >
> > Simon Dahlbacka wrote:
> >> On Mon, Sep 28, 2009 at 9:37 PM, Mark <[hidden email]> wrote:
> >>
> >>> I'm (still) trying to install a SnapIn using WiX and PSExtension. I'm
> >>> (still) getting the same error, however, which doesn't make any sense
> to
> >>> me, and I believe it's a bug in PSExtension. Here's the relevant
> >>> component in my .wxs file:
> >>>
> >>> <Component Id="nmps_dll" Guid="1c48d3b5-64ab-4f0c-9ce6-c4eb6f3232e9">
> >>>        <File Id="pstools.dll" Source="$(var.pstools.TargetDir)"
> >>> KeyPath="yes"
> >>> Assembly=".net" AssemblyApplication="pstools.dll">
> >>>                <ps:SnapIn Id="pstools" Description="Management Tools"
> >>> Vendor="mycompany" />
> >>>        </File>
> >>> </Component>
> >>>
> >>> And when I try to build the installer, I get this error:
> >>>
> >>> Unresolved bind-time variable !(bind.assemblyName.pstools.dll),
> >>> Version=!(bind.assemblyVersion.pstools.dll),
> >>> Culture=!(bind.assemblyCulture.pstools.dll),
> >>> PublicKeyToken=!(bind.assemblyPublicKeyToken.pstools.dll).
> >>>
> >>> If I leave the <ps:SnapIn> tag out, it builds fine (but doesn't
> register
> >>> the snapin, of course), and if I leave the AssemblyApplication
> attribute
> >>> out, I get an error about strong names (which is expected, it's not
> >>> strong-named, but I don't want it to go in the GAC).
> >>>
> >>> Don't know anything about installing snapins but:
> >> Doesn't @Assembly=".net" say that the file is to be installed in GAC ?
> >>
> >> /Simon
> >
> >
> > Did you ever find a resoultion to this issue as I'm having the same
> > problem.
> >
> > --Michael
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry® Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9-12, 2009. Register
> > now!
> > http://p.sf.net/sfu/devconf
> > _______________________________________________
> > WiX-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/still-trying-to-install-a-PowerShell-SnapIn-using-WiX-tp3731130p3860392.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
>  _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



--
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users