Solved

VB 2008 Setup application error message.

Posted on 2013-05-13
3
322 Views
Last Modified: 2013-05-18
When I run Setup.exe I receive the following error message.
"The folder path "." contains an invalid character.".

The Program I am trying to install is a COM Class created in Visual Studio 2008 professional. The DLL uses a third party control (Text Control) which consists of two DLLs.

The target machine is a Windows 7 64 bit machine. under Configuration manager I have added support for x64 and x86. I have removed support for ANY CPU.

The solution contains three projects. The COM Class dll project. A windows forms project used in testing the COM Class dll. And the Setup project.

To the application folder of the Setup project, I have added the two DLLs associated with Text Control. I have added Primary Output, Content files, Localized resources and Source files from the COM Class dll.

Once the solution is built and I copy the Setup.msi and the Setup.exe to the local machine (C:\test folder), I get the above error message when I attemp to run the Setup.exe.

What is causing this? How do I fix it? any good resources on Setup projects (this is my first and it is not going well)?

Thanks,
pat
0
Comment
Question by:mpdillon
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Rose Babu
ID: 39164803
What is the DefaultLocation value set for the 'Application Folder' in your setup project?
Right click on Setup Project -> View -> File System

in the 'file System' panel, click on 'Application Folder' then check the Properties -> DefaultLocation
check the folder structure is set correctly in that. Try to change that to C:\test folder and build the setup application then test that once...
0
 

Author Comment

by:mpdillon
ID: 39166416
The default program location is "[ProgramFilesFolder][Manufacturer]\[ProductName]".

I changed this to C:\Test. I built the Setup application. I built the Solution. On the test Win 7 Workstation, I double clicked on the exe which was still on a network drive. It installed the DLL program. And the DLL program worked.

In the past the DLL program had not worked because some of the third party controls either were not present or were not registered correctly when I was doing this manually. However after completing the wizard the DLL works as expected. Thank you!

Now a couple of questions.
1. What is wrong with the original default path. I would like the program to install to the Programs Files directory which is what I thought the original default path would do.

2. My settings in the Setup application must be too broad. After executing the Setup application on the workstation, all my project files were copied, see attachment (Show Notes Folder). It is necessary for all the files that begin with TX to be copied according to the manufacturer. But I can't believe I should place my .vb files on each workstation.
Looking at the second image (Show Notes Program) which shows my Setup application, could you suggest what to include and not include?

Thanks,
pat
ShowNotes-folder.png
ShowNotes-Setup-Program.png
0
 
LVL 16

Accepted Solution

by:
Rose Babu earned 500 total points
ID: 39167181
1. What is wrong with the original default path.
Is there the following path available in your C Drive? or in which drive the windows installation has been done?

C:\Program Files

Try to copy the setup file from network path and place in the local machine (E.g., C:\ ) then run the setup once.

You can set the default location to yourself so try to set as your wish if the "[ProgramFilesFolder][Manufacturer]\[ProductName]" gives problem.

2. My settings in the Setup application must be too broad.
you have added the below components in your setup project.

Localized resources, Content files, source files..

so only the source code and other project files are added. Try to add the Primary output alone. refer the attached image.

Hope this will clear out all your issue. Let me know the outcome...
ShowNotes-Setup-Program.png
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now