?
Solved

VB 2008 Setup application error message.

Posted on 2013-05-13
3
Medium Priority
?
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

777 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