Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Setup error

Posted on 2001-09-09
5
Medium Priority
?
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
ameba earned 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

670 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