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

x
?
Solved

Problem with the installation of my pgm.

Posted on 2000-04-04
7
Medium Priority
?
506 Views
Last Modified: 2010-05-02
I have this problem, when i install my pgm. and if the file that i install is more recent than the system's file.

I have this message for example with a .rpt's file(CrystalReport):

The file that you're copying IS LESS  RECENT than that one on your system. You should to keep the existant'sfile.

File'sName : C:\programfiles......
Description : "
Your version : "
Do you want to keep this file?

I use VB6.0 SP3.
I make .cab for the installtion.

Setup tell the file is LESS RECENT, then in reality it is more RECENT. This message should not appear.

Too, it doesn't write the description and the version.
Someone have an idea.
P.S. I have French's VB.
0
Comment
Question by:dosyl
  • 5
  • 2
7 Comments
 

Accepted Solution

by:
richpall earned 600 total points
ID: 2684309
This is a known bug is sp3 setup program. Follow this link and you will find directions for correcting the problem.

http://www.teeitup.com/vbbugs.htm#p24
0
 
LVL 1

Author Comment

by:dosyl
ID: 2684602
It's write this, in this is there something to fix.

Non-Versioned version conflict message displays useless information (SP2 & SP3)
 Before a file that has no version overwrites an existing file with the same name, the setup displays a useless message that lists the description and version number that by definition are blank. It should, instead list file date and size of new and old file so the user can make an educated decision.
0
 
LVL 1

Author Comment

by:dosyl
ID: 2684992
I fix the problem in the CopySection, but it seems i remove an Endif can you tell me where to put it:
     Dim sFileDate2 As Date

        sFileDate2 = FileDateTime(sFile.strDestDir & sFile.strDestName)
       
        If DateDiff("s", StartDate, sFileDate2) > 0 Then


        If sFileDate = sCurDate Then
            lTime = GetFileTime(sFile.varDate)
            hFile = CreateFile(sFile.strDestDir & sFile.strDestName, GENERIC_WRITE Or GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)
            SetFileTime hFile, lTime, lTime, lTime
            DoEvents
            CloseHandle hFile
        Else
            '
            'Give a chance for the 'Cancel' button command to be processed if it was pressed
            '
            DoEvents
        End If
        'Delete the files after copy...
        SetAttr gsTEMPDIR & sFile.strDestName, vbNormal
        Kill gsTEMPDIR & sFile.strDestName
        intIdx = intIdx + 1
    Loop

    Err.Clear
End Sub

Another question, do you know why SP3 remove my name for my VB's license and the serial's number?
0
Independent Software Vendors: 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!

 
LVL 1

Author Comment

by:dosyl
ID: 2685094
I forgot to remove: If sFileDate = sCurDate Then
Do you know for the name and Serial Number?
And answer to my first comment too.
0
 
LVL 1

Author Comment

by:dosyl
ID: 2685554
Must i remove Setup.exe 140KB and replace it with Setup.exe 248KB in the directory C:\ProgrmaFiles\...\Vb98\...\PDWizard.
Donald
0
 

Expert Comment

by:richpall
ID: 2685791
come on, didn't you save the original file somewhere before messing with it?
You do not need to copy the setup.exe because of the change you made to the bas file.
Sorry I don't know about the name and serial number problem. Try msdn knowledge base. I find most problems get answered there eventually. Good Luck!
0
 
LVL 1

Author Comment

by:dosyl
ID: 2685823
I found Setup1.exe is called by setup.exe
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

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…
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…
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 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…
Suggested Courses

972 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