473,748 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.FileN otFoundExceptio n: 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 4015
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\Dat a\

c:\My Documents\Summe r Vacation.doc
is the same as
c:\MyDocu~1\Sum mer~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:\Program ming 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:\Progr am 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.FileN otFoundExceptio n: 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
8477
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 very simple everything is working just fine. I've tested it by writing the string out to a text file to test it. However, the trouble comes in when I use the textbox for what I really intended, a ADO.Net Connection String. The textbox is to...
4
8905
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 form that allowed the user to choose the datapath and confirm it then add this to the installation project. I'm having trouble with this however. Does anyone know a simple procedure for doing this? Cat
0
3648
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. When my C# custom actions run, the progress dialog doesn't display any text as to what is happening. I have explored several options as follows. Normally, you can enter the action text in the ActionText table by giving the name of the custom...
2
2836
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 specified properties like ServiceName, DisplayName and so on. What I like to do, is to add one more dialog screen with the test box and "Browse" button to the installation wizard and provide user with the ability to select/change service monitoring...
27
45564
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 height as they were in previous versions or will they be the "ribbon" style that takes up a huge portion of the screen? Also when I use Access 2007 to open an Access 2003 database that has custom menu bars they display as they did in Access...
0
1593
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 installation are: 1.Add an install class to the deployed project and imperment the custom action 2.Add a "Data Entry Dialog Boxes" in the User Interface Editor of the deployment project(my examply has two textbox,thier property are DBUSER and...
0
1113
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 in the path ie c:\program files\ it would error out. i figured out that if i changed the edit1property for the text box from EDITA1 which is the default to something else like MYBOX it would work fine with no errors. Original message: Custom...
1
20386
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 (C#); public class MyServiceInstaller : System.Configuration.Install.Installer { private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller;
3
5856
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 installation I also install the PostgreSQL database and along with that I need to execute some Custom Actions. I've created a Custom Installer component in CSharp and calls it on Install/Rollback/ uninstall and everything works great (Custom Actions...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9326
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.