Solved

Problem with the installation of my pgm.

Posted on 2000-04-04
7
456 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 200 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
Technology Partners: 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

679 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