Article ID: 190173 - Last Review: June 29, 2004 - Revision: 3.0 INFO: How Setup Wizard and PDW Compare File Versions and DatesThis article was previously published under Q190173 On This PageSUMMARY
When you run a setup program created using the Setup Wizard in Visual Basic
4.0 and 5.0 or using the Package and Deployment Wizard (PDW) in Visual
Basic 6.0, existing files on the computer are automatically replaced if the
setup files include a newer version of the file. This article describes how
the setup program compares the source and destination files to determine
which one is newer. NOTE: Windows 2000 includes a feature called Windows File Protection (WFP) that prevents the replacement of certain monitored system files. Please see the link in the REFERENCES section to find more information about WFP. MORE INFORMATION
The setup program created by the Setup Wizard and PDW is actually two
programs. The first one is a C program called Setup.exe that installs the
"bootstrap" files and then spawns a Visual Basic program called Setup1.exe
to install the remaining files. Setup.exe and Setup1.exe differ slightly in
the way they compare files.
NOTE: Setup1.exe is based on the Setup Toolkit project (Setup1.vbp). A developer can modify the Setup Toolkit project and rename it, so Setup1.exe may have another name. Setup.exeSetup.exe compares each source and destination bootstrap file in the following manner:
Setup1.exeThere are three cases Setup1.exe must check when determining whether the source file is newer than the destination file:
If Setup1.exe determines that the source file is newer than the destination file, the destination file is overwritten automatically. However, if Setup1.exe determines that the source file is older than the destination file, it takes one of the following actions:
REFERENCES
"Distributing Your Applications" chapter of the "Programmer's Guide"
For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base: 189743
(http://support.microsoft.com/kb/189743/EN-US/
)
INFO: Description of Setup.lst Sections
222193
(http://support.microsoft.com/kb/222193/EN-US/
)
Description of the Windows 2000 Windows File Protection Feature
APPLIES TO
| Article Translations
|
Back to the top
