Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

Setup error

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
xSinbad
Asked:
xSinbad
  • 3
  • 2
1 Solution
 
amebaCommented:
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
 
amebaCommented:
They are probably copying install files to Root directory ( c:\ or d:\ )
0
 
xSinbadAuthor Commented:
I think you are spot on with this thankyou, I will get them to try this and get back to you.

Cheers
MArcus
0
 
xSinbadAuthor Commented:
0
 
amebaCommented:
Thanks :-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now