Advertisement

05.09.2007 at 02:06AM PDT, ID: 22560990
[x]
Attachment Details

Passing [TARGETDIR].  Custom Action DLL expected under c:\windows\system32\files.

Asked by itproviders in Installation, Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: custom, action, targetdir

I am using Visual Studio 2005 with sp1.  I am working on a setup project.  There are several requirements that I believe make a custom action necessary.  e.g. Setting up our SQL Express database, setting up scheduled tasks, creating users etc.

I have created a custom action using VB.Net 2005.  It is a class that inherits from System.Configuration.Install.Installer.  It expects a parameter to be passed to it called installPath.

So in my class I have:
installPath = Me.Context.Parameters.Item("installPath")

In my setup project I am deploying MyCustomAction.dll to the application directory.  From there I add it to my list of custom actions.  I use the CustomActionData property to pass the value of TARGETDIR through.

So the property is set to:
/installPath="[TARGETDIR]\"

When I test my project it is expecting to find MyCustomAction.dll under c:\windows\system32\Files\MySetupProject\MyCustomAction.dll instead of the application directory.

I have read numerous posts on the web about requiring the backslash at the end of the [TARGETDIR] but it is not solving the problem for me.  Any idea's?  This is driving me nuts!Start Free Trial
[+][-]05.09.2007 at 02:48AM PDT, ID: 19055698

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2007 at 03:05AM PDT, ID: 19055763

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2007 at 03:24AM PDT, ID: 19055839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 05:36AM PDT, ID: 19064527

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.13.2007 at 04:32AM PDT, ID: 19080829

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Installation, Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: custom, action, targetdir
Sign Up Now!
Solution Provided By: Vee_Mod
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32