Solved

Setup error

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

808 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