Solved

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

Posted on 2000-04-26
5
164 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

860 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