Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / September 2005

Tip: Looking for answers? Try searching our database.

Problem changing the installation folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NS - 08 Sep 2005 22:23 GMT
I have created an installer using the setup project. I have specified the
default folder for my application as [PROGRAMFILES].

The problem is that when I run the installer (.msi) program, if I change the
installation folder, it shows me the error "A portion of the folder path " is
invalid. It is either empty or exceeds the length allowed by the system."  

How can I remove this problem???

Thanx
-NS
Phil Wilson - 09 Sep 2005 16:18 GMT
Where did PROGRAMFILES come from? How exactly do you get a folder path into
it?

If you run your setup with a log you should see the value and why it's
wrong.

msiexec /i <path to your msi> /l*v somelogfile.txt
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

>I have created an installer using the setup project. I have specified the
> default folder for my application as [PROGRAMFILES].
[quoted text clipped - 9 lines]
> Thanx
> -NS
NS - 09 Sep 2005 18:28 GMT
Thanx Phil for the reply. I am not able to understand the contents of the log
file.

Here is what I have done and the problem I am facing.

I have created a setup project in Visual Studio .NET 2003. In the "File
System Editor" of the project, I specified the "default location" property of
the Application Folder as [ProgramFilesFolder][Manufacturer]. Now when I run
the .msi file, it shows me a Installation folder screen, where it shows me
the installation folder as the C:\Program Files\Default Company Name\ . If I
try to change this path it shows me error saying "Portion of the folder path
'' is invalid. It is either empty or exceeds the length allowed by the
system". If I ignore this error and continue with the installation, it
installs my files/folders to the default path and ignore the new path that I
specify during installation.

Kindly let me know if I need to change any property of the installer or
anything else.

Thank you,

NS
Phil Wilson - 17 Sep 2005 16:16 GMT
That should work fine. You could post the log here. It may show the folder
string that's causing that error message.
"Default Company Name" comes from the setup project properties. Select the
project in Solution Explorer, hit F4 and put your company name there.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> Thanx Phil for the reply. I am not able to understand the contents of the
> log
[quoted text clipped - 24 lines]
>
> NS

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.