Solved

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

Posted on 2000-04-26
5
161 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
ID: 2750753
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
ID: 2750758
Sorry that should be RunOnce in the key, not WunOnce!
0
 
LVL 1

Author Comment

by:tomnich
ID: 2750789
Thanks, I'll give that a try

0
 
LVL 1

Author Comment

by:tomnich
ID: 2806658
Thanks that worked
0
 
LVL 4

Expert Comment

by:gcs001
ID: 2808007
Glad to have been of assistance.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 54
Adding to a VBA? 6 70
Microsoft Access combo box help 2 47
Help me. 3 56
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

803 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