Solved

URGENT: Install problems

Posted on 1998-09-01
7
162 Views
Last Modified: 2010-04-30
Hi Everybody,
    I am working on writing a self install feature in one of my projects which makes a backup of the system files, then deletes them and replaces them with the ones shipped with my program. The only problem is that when the files are in use, the program crashes. Any ideas on how to prevent this?

Kind Regards,
Robert Green.
0
Comment
Question by:robjgreen
7 Comments
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1432412
Hi one of the best and the most common is:

       http://www.installshield.com/

       get the program and also you can go to my home page and learn some
       good stuff drom the Computer section.

       http://www.hili.com/~shay

       Shay.
0
 

Author Comment

by:robjgreen
ID: 1432413
Hi,
   I am writing my own routines, not using another program to do it for me. I am having trouble because when the system files are in use you can not delete them or move them, which then causes the program to crash.

Kind Regards,
Robert Green.
0
 

Author Comment

by:robjgreen
ID: 1432414
Hi,
   I am writing my own routines, not using another program to do it for me. I am having trouble because when the system files are in use you can not delete them or move them, which then causes the program to crash.

Kind Regards,
Robert Green.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 14

Expert Comment

by:waty
ID: 1432415
You have to be logged as administrator.
0
 
LVL 1

Accepted Solution

by:
disha earned 70 total points
ID: 1432416
Hi,
If the system files are already in use u cannot replace them.
Check if the files are in use( U can check this by simply opening them in exclusive mode). If they are then copy u'r files in some other directory and they have to replace the system files at a later stage.
0
 
LVL 1

Expert Comment

by:JayMerritt
ID: 1432417
There is a program in the WINDOWS directory called WININIT.EXE.

It uses a file called WININIT.INI.

WININIT.INI is created by install programs and tells WININIT.EXE what to do the next time WINDOWS starts up.  Take a look for any WININIT.BAK files.  These are old WININIT.INI files and will give you an idea of how it works.
0
 
LVL 1

Expert Comment

by:JayMerritt
ID: 1432418
See Microsoft's Knowledge Base # Q140570
 for more info.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

744 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

11 Experts available now in Live!

Get 1:1 Help Now