Solved

Setup error

Posted on 2001-09-09
5
391 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 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