Solved

URGENT: Install problems

Posted on 1998-09-01
7
167 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
[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
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
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…

688 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