Solved

How do you cause a program to continue on restarting of the PC

Posted on 2000-04-26
5
156 Views
Last Modified: 2010-05-02
I’m using package and deployment wizard to install some software.  If it needs a restart I want the wizard to re-run when the user has restarted – because otherwise my DLLs are not installed

It may be that I should only restart when I have completely finished installing everything – is this possible ?   I think the restart is required because I’m upgrading their version of ADO – can I get away with installing MDAC after my DLLs (which depend on MDAC) ?
0
Comment
Question by:tomnich
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:gcs001
Comment Utility
A system will normally require a restart if it need to update system files that our out-of-date.
Should you wish to automatically restart the installation after the restart you will need to add the Setup.exe program to the registry key that specifies which programs to start at startup time.

You should add an entry to the RunOnce key which is situated in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WunOnce under Windows 95, I'm not sure what it is under NT, but it will be similar.

To be able to do this from the Setup program you will need to modify the original Setup program that is shipped with VB to include this change.

Hope this helps.

Regards,
Grant.
0
 
LVL 4

Accepted Solution

by:
gcs001 earned 100 total points
Comment Utility
Sorry that should be RunOnce in the key, not WunOnce!
0
 
LVL 1

Author Comment

by:tomnich
Comment Utility
Thanks, I'll give that a try

0
 
LVL 1

Author Comment

by:tomnich
Comment Utility
Thanks that worked
0
 
LVL 4

Expert Comment

by:gcs001
Comment Utility
Glad to have been of assistance.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
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…

743 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

16 Experts available now in Live!

Get 1:1 Help Now