Solved

VB 2008 Setup application error message.

Posted on 2013-05-13
3
317 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 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

19 Experts available now in Live!

Get 1:1 Help Now