Solved

Problem with the installation of my pgm.

Posted on 2000-04-04
7
426 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now