473,394 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Custom Install/User Interface problem

I created an install for my program. During installation,
3 User Interface dialogs display asking for values that
will be stored in the registry. I'm not registering
anything, just storing values for database connections and
where the program can locate necessary files.

I've found that if there's a blank space in any of these
input values (ie. a path name of c:\Program Files\Data\)
that an error displays and the installation aborts. The
error is "Exception occurred while initializing the
installation: System.IO.FileNotFoundException: File or
assembly name , or one of its dependencies, was not found."

The custom install doesn't check that this is a valid file
and the same error will appear if a blank space is
included in any of the input values (including connection
info). Also, I haven't been able to debug this since the
error occurs/appears before my install sub executes (I set
the debugger to start on the first line and it never did.)

Has anyone else encountered this problem? Is there a fix
or workaround?

Thanks.
Nov 20 '05 #1
1 3986
I don't know how helpfull this will be to you, but when you have a directory
(or file) that has spaces in it, you can refer to them in an 8 character
format (or 8.3 format for files) like so:

c:\Program Files\Data\
is the same as
c:\Progra~1\Data\

c:\My Documents\Summer Vacation.doc
is the same as
c:\MyDocu~1\Summer~1.doc

The format is the first six characters of the directory or file then a tilde
(~) character and a 1. You might run into a problem if the computer you are
installing on has two dirctories (or files in the same directory) that would
reduce down to the same 8 character name:

If you have a directory called "c:\Programming Library\" it will reduce to
"c:\Progra~2\" because the program files directory reduces to progra~1 (and
it was created first).

Additionally in vb, when you are assigning the value to the string variable
that will hold a path, try doing it like this:

installPath = """C:\Program Files\Data\"""

Notice the three quotes at the beginning and end. The first quote is
because it is a string, the next two tell vb to actually store a quotation
character in the string. I believe that the errors you are getting are
because the operating system is getting your path (c:\Program Files\Data\)
and interpreting it as a file called "C:\Program" with a command line
parameter of "Files\Data\". If you put the path in quotes, it should
understand that you mean that to be a path. Sorry if that sounds confusing.
Give it a try anyways. Hope that helps.

fp
"Lori" <LR********@aol.com> wrote in message
news:1b****************************@phx.gbl...
I created an install for my program. During installation,
3 User Interface dialogs display asking for values that
will be stored in the registry. I'm not registering
anything, just storing values for database connections and
where the program can locate necessary files.

I've found that if there's a blank space in any of these
input values (ie. a path name of c:\Program Files\Data\)
that an error displays and the installation aborts. The
error is "Exception occurred while initializing the
installation: System.IO.FileNotFoundException: File or
assembly name , or one of its dependencies, was not found."

The custom install doesn't check that this is a valid file
and the same error will appear if a blank space is
included in any of the input values (including connection
info). Also, I haven't been able to debug this since the
error occurs/appears before my install sub executes (I set
the debugger to start on the first line and it never did.)

Has anyone else encountered this problem? Is there a fix
or workaround?

Thanks.

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Craig | last post by:
I have added a 'Textboxes (A)' to my UI installer project along with a custom action to pass the value back to a class I've written to override the void Install function. As long as the text is...
4
by: logicalfeline | last post by:
Hi there, I'm creating an installation project where at a particular point in the installation I want the user to be able to specify a filepath for use in the program. My idea was to create a...
0
by: Ron Andersen | last post by:
I have C# custom actions and merge modules created in Visual Studio to install some components of the application I am working on. The merge modules are used with an Install Shield 9 project. ...
2
by: ValK | last post by:
Hello All. I have a windows service, that monitors file directory. Now I'm trying to create custom install wizard for this service. I added projectinstaller class to my application, where I...
27
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same...
0
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an...
0
odyth
by: odyth | last post by:
not sure if anyone is having trouble with this, but the same thing happened to me. i have one text box in a custom dialog in my installer that would take the path to a database, if there was a space...
1
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example...
3
by: KennethLundin | last post by:
Hi, i'm developing a solution in VS9/CSharp. Now I'm constructing a deployment project for my appliation (thick, database driven, winforms, standard, good old type of application). During...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.