Solved

URGENT: Install problems

Posted on 1998-09-01
7
163 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now