By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 2,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

Help Custom Action in Setup Problem

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Jamie Bissett" <jb***@online.nospam> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
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
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.