vdproj MSI throwing exception: Invalid directory on URL during Ins

G

Guest

I'm at a loss. I have a simple C#, .NET 2.0 Console application that I am
attempting to create a deployment project for. I have the primary output and
content files from the console application going into the Application Folder
along with a couple of dependent assemblies. I also have an installer class
in the console application that handles some modification to the app.config
file. Everything builds ok, but when I run my MSI, it gets almost to the end
of the progress screen and then throws an exception:

Exception occurred while initializing the installation:
System.ArgumentException: Invalid directory on URL.

Does anyone know what could be causing this? I've searched to every possible
extent yet cannot find a solution for this issue.
 
G

Guest

Ok, I figured it out, although this was a very ellusive error and the error
message was not very descriptive... The problem was with my CustomActionData
string. I was passing in another file path and assumed it had to be formatted
similar to /TARGETDIR="[TARGETDIR]\", so I created one like this:
/FILEDIRECTORY="[FILEDIRECTORY]\". This was the problem.

Once I removed the quotes around my custom value and changed it to
/FILEDIRECTORY=[FILEDIRECTORY], everything worked ok.
 

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