Solved

Problem with the installation of my pgm.

Posted on 2000-04-04
7
468 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MsgBox 2 66
Add a task in Outlook from access 11 43
Exit a vb6 apps when a calling it apps closes 15 63
Help with retrieving partial value from a column using VB.NET 4 58
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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