Help Custom Action in Setup Problem

J

Jamie Bissett

I have written an installer class that I invoke as a custom action. I have
asses 2 screens in the installation process that pass data to this Installer
Class. I have succesfully debugged the application and it reaceives all the
variables fine from the custom screens. The Cstom Action Data is
/SERVER=[DB_SERVER] /USER=[DB_USER] /PASSWORD=[DB_PASSWORD] /NAME=[DB_NAME]
/LOCATION=[LOCATION]

I tried to add the Installation directory to the data used by this installer
class
/SERVER=[DB_SERVER] /USER=[DB_USER] /PASSWORD=[DB_PASSWORD] /NAME=[DB_NAME]
/LOCATION=[LOCATION] /DIR=[TARGETDIR]

but now the process craps out before the install method is called in my
class. The error is as follows:

Exception occured while initializing file installation.
System.IO.FileNotFoundException: File or assembly name Eden or one of its
dependencies was not found.

I am totaly baffeld, any help would be appreciated
 
J

Jamie Bissett

Jamie Bissett said:
I have written an installer class that I invoke as a custom action. I have
asses 2 screens in the installation process that pass data to this
Installer Class. I have succesfully debugged the application and it
reaceives all the variables fine from the custom screens. The Cstom Action
Data is
/SERVER=[DB_SERVER] /USER=[DB_USER] /PASSWORD=[DB_PASSWORD]
/NAME=[DB_NAME] /LOCATION=[LOCATION]

I tried to add the Installation directory to the data used by this
installer class
/SERVER=[DB_SERVER] /USER=[DB_USER] /PASSWORD=[DB_PASSWORD]
/NAME=[DB_NAME] /LOCATION=[LOCATION] /DIR=[TARGETDIR]

but now the process craps out before the install method is called in my
class. The error is as follows:

Exception occured while initializing file installation.
System.IO.FileNotFoundException: File or assembly name Eden or one of its
dependencies was not found.

I am totaly baffeld, any help would be appreciated
After much digging I have found the answer to my own problem again.

When you are specifying a Windows Installer parameter that returns a
directory you must enclose the parm in quotes and include a trailing
backslash i.e.
/DIR="[TARGETDIR]\" not /DIr=[TARGERDIR]
The var can then be referenced in the Installer class through
Context.Parameters("DIR").

This works fine now
 

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