Solved

Run application in safe mode (run key doesnot work?)

Posted on 2003-10-30
1
758 Views
Last Modified: 2013-11-20
Dear All,

I am developing an application in MFC VC++ Version 6.0 for Windows 2000. I start my application as soon as the system logs on, by giving the path of my exe in Run field i.e.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

I want to run my program in safe mode also. But unfortunately my program doesnot starts in the safe mode automatically because Run entry in registy doesnot work in this case.

Please  suggest any way to run my application in safe mode also.

Feel free to ask  any further queries in this regards,

Thanks
Rohit Dhamija
0
Comment
Question by:rohitdivas
1 Comment
 
LVL 3

Accepted Solution

by:
freewell earned 125 total points
ID: 9655978
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

Solution:
The value name can be prefixed with an asterisk to force the program to run even in Safe mode. The data value for a value is a command line.

Problem:
The value is deleted before the command line is run. As a result, if a RunOnce operation fails to run properly, the component that failed will not be asked to run again the next time you start the computer.

The value name can be prefixed with an exclamation point to defer deletion of the value until after the command has been completed.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 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