Solved

Setup error

Posted on 2001-09-09
5
381 Views
Last Modified: 2008-02-26
I have an app written with VB6 SP4, the setup proggy works great most of the time but some users get the following error;

The specified directory C:\blah\blah is in the Setup source files directory. Please type a different directory.


This occurs no matter what directory is typed or what directory the setup files are in. I cannot reproduce this on my machine and the errors are occuring on a PC several thousands of KM away.
Our OS specs are all the same NT4 SP5 on Novell network.

Any help would be much apreciated.
I will up the points to 300 if this is solved.
0
Comment
Question by:xSinbad
  • 3
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
ameba earned 100 total points
ID: 6492534
You can find Setup1.Vbp project in \VB\Wizards\PDWizard\Setup1\ directory.
It has function IsValidDestDir, it should check if source and destination dirs are the same.

It has this code, which can fail if source path is "c:\" and destination is "c:\anything\"

    If InStr(UCase$(strDestDir), UCase$(gstrSrcPath)) = 1 Then
        ' error   !!!
    Else
        IsValidDestDir = True
    End If

Replace first line with this:
    If InStr(UCase$(gstrSrcPath), UCase$(strDestDir)) = 1 Then
or this:
    If UCase$(gstrSrcPath) = UCase$(strDestDir) Then

Save project, make exe, start PDW and rebuild your package.
0
 
LVL 15

Expert Comment

by:ameba
ID: 6492546
They are probably copying install files to Root directory ( c:\ or d:\ )
0
 
LVL 6

Author Comment

by:xSinbad
ID: 6495159
I think you are spot on with this thankyou, I will get them to try this and get back to you.

Cheers
MArcus
0
 
LVL 6

Author Comment

by:xSinbad
ID: 6504617
0
 
LVL 15

Expert Comment

by:ameba
ID: 6505342
Thanks :-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

706 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