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.Insta
ll.Install
er. It expects a parameter to be passed to it called installPath.
So in my class I have:
installPath = Me.Context.Parameters.Item
("installP
ath")
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\
MySetupPro
ject\MyCus
tomAction.
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