Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2000-04-26
5
Medium Priority
?
179 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 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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

916 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