Link to home
Start Free TrialLog in
Avatar of mpdillon
mpdillon

asked on

VB 2008 Setup application error message.

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
Avatar of Rose Babu
Rose Babu
Flag of India image

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...
Avatar of mpdillon
mpdillon

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Rose Babu
Rose Babu
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial