[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

help with setup solution

msnews.microsoft.com

5/9/2006 3:02:00 PM

Hello,

I have a setup solution that throws the system.io.filenotfoundexception
during the installation. I have added a custom form during the installation
that has a textbox. When the user puts in any value that has a space the
exception is thrown. For example the textbox is asking for the users name.
If the user during installation puts in John the installation works fine. If
the user puts in John Smith the exception is thrown stating: File or
assembly Smith, or one of its dependencies, was not found. Is there a way to
allow users to put in their full name during the installation process?
Thanks in advance.

Jake


3 Answers

Phil Wilson

5/9/2006 8:30:00 PM

0

That's a managed code exception, so what exactly are you doing? You've got a
managed form being shown and you're collecting data from it and parsing it?
I'm thinking you have a dependent assembly that isn't installed yet (in the
GAC).

The "normal" way to get this data is to collect it in the actual UI sequence
with an Add Dialog, adding the Customer Information dialog to the dialogs
and collecting the name there from the USERNAME property, passing it to a
custom action if you need it there. Perhaps this is what you're doing, but
that managed code exception means that you have a managed code custom action
somewhere - MSI doesn't do managed code without custom actions of some kind.
--
Phil Wilson [MVP Windows Installer]
----
"Jake Smythe" <someone@microsoft.com> wrote in message
news:e4XDCm3cGHA.1260@TK2MSFTNGP05.phx.gbl...
> Hello,
>
> I have a setup solution that throws the system.io.filenotfoundexception
> during the installation. I have added a custom form during the
> installation that has a textbox. When the user puts in any value that has
> a space the exception is thrown. For example the textbox is asking for the
> users name. If the user during installation puts in John the installation
> works fine. If the user puts in John Smith the exception is thrown
> stating: File or assembly Smith, or one of its dependencies, was not
> found. Is there a way to allow users to put in their full name during the
> installation process? Thanks in advance.
>
> Jake
>


msnews.microsoft.com

5/10/2006 2:38:00 PM

0

Phil,

I did create a UI sequence and am trying to pass the information from
the setup UI to the managed code dll but the setup bombs prior to getting to
the dll from the custom actions area. Is there a sample (preferably in
vb.net) that is doing this correctly? I can capture information during setup
from the UI provided the user doesn't put spaces in the textbox.

Jake

"Phil Wilson" <Phil.Wilson@unisys.spamcom> wrote in message
news:uOcAdd6cGHA.3364@TK2MSFTNGP05.phx.gbl...
> That's a managed code exception, so what exactly are you doing? You've got
> a managed form being shown and you're collecting data from it and parsing
> it? I'm thinking you have a dependent assembly that isn't installed yet
> (in the GAC).
>
> The "normal" way to get this data is to collect it in the actual UI
> sequence with an Add Dialog, adding the Customer Information dialog to the
> dialogs and collecting the name there from the USERNAME property, passing
> it to a custom action if you need it there. Perhaps this is what you're
> doing, but that managed code exception means that you have a managed code
> custom action somewhere - MSI doesn't do managed code without custom
> actions of some kind.
> --
> Phil Wilson [MVP Windows Installer]
> ----
> "Jake Smythe" <someone@microsoft.com> wrote in message
> news:e4XDCm3cGHA.1260@TK2MSFTNGP05.phx.gbl...
>> Hello,
>>
>> I have a setup solution that throws the
>> system.io.filenotfoundexception during the installation. I have added a
>> custom form during the installation that has a textbox. When the user
>> puts in any value that has a space the exception is thrown. For example
>> the textbox is asking for the users name. If the user during installation
>> puts in John the installation works fine. If the user puts in John Smith
>> the exception is thrown stating: File or assembly Smith, or one of its
>> dependencies, was not found. Is there a way to allow users to put in
>> their full name during the installation process? Thanks in advance.
>>
>> Jake
>>
>
>


Phil Wilson

5/10/2006 3:34:00 PM

0

There isn't a sample that will work if you have a dependency on an asssembly
that you're installing in the GAC, there are some difficulties in that area.
My assumption is that your custom action is marked as an Installer class CA
in its properties, and you're passing CustomActionData something like
/something=[USERNAME], but you'll need to give more information than just
that you're getting an FileNotFoundException. Is this a ServiceInstaller
class? What's your exact string that you're passing to CustomActionData.
Typically these FileNotFoundException issues occur when installing something
like a service with managed code custom actions because there's already
unseen data being passed, and your CustomActionData gets in the middle of it
and the internal parsing fails when trying to find your assembly. I wonder
if it's even getting as far as your Install method - do you know?

I'll add that managed code custom actions can have some difficulties.
http://www.installsite.org/pages/en/msifaq/...

--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.ht...

"Jake Smythe" <someone@microsoft.com> wrote in message
news:exDbj9DdGHA.1456@TK2MSFTNGP04.phx.gbl...
> Phil,
>
> I did create a UI sequence and am trying to pass the information from
> the setup UI to the managed code dll but the setup bombs prior to getting
> to the dll from the custom actions area. Is there a sample (preferably in
> vb.net) that is doing this correctly? I can capture information during
> setup from the UI provided the user doesn't put spaces in the textbox.
>
> Jake
>
> "Phil Wilson" <Phil.Wilson@unisys.spamcom> wrote in message
> news:uOcAdd6cGHA.3364@TK2MSFTNGP05.phx.gbl...
>> That's a managed code exception, so what exactly are you doing? You've
>> got a managed form being shown and you're collecting data from it and
>> parsing it? I'm thinking you have a dependent assembly that isn't
>> installed yet (in the GAC).
>>
>> The "normal" way to get this data is to collect it in the actual UI
>> sequence with an Add Dialog, adding the Customer Information dialog to
>> the dialogs and collecting the name there from the USERNAME property,
>> passing it to a custom action if you need it there. Perhaps this is what
>> you're doing, but that managed code exception means that you have a
>> managed code custom action somewhere - MSI doesn't do managed code
>> without custom actions of some kind.
>> --
>> Phil Wilson [MVP Windows Installer]
>> ----
>> "Jake Smythe" <someone@microsoft.com> wrote in message
>> news:e4XDCm3cGHA.1260@TK2MSFTNGP05.phx.gbl...
>>> Hello,
>>>
>>> I have a setup solution that throws the
>>> system.io.filenotfoundexception during the installation. I have added a
>>> custom form during the installation that has a textbox. When the user
>>> puts in any value that has a space the exception is thrown. For example
>>> the textbox is asking for the users name. If the user during
>>> installation puts in John the installation works fine. If the user puts
>>> in John Smith the exception is thrown stating: File or assembly Smith,
>>> or one of its dependencies, was not found. Is there a way to allow users
>>> to put in their full name during the installation process? Thanks in
>>> advance.
>>>
>>> Jake
>>>
>>
>>
>
>