Solved

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

Posted on 2003-10-30
1
752 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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 …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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 demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

17 Experts available now in Live!

Get 1:1 Help Now