Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: controlling characters entered into an edit box Pin
JensB1-Apr-03 23:02
JensB1-Apr-03 23:02 
GeneralRe: controlling characters entered into an edit box Pin
jhwurmbach1-Apr-03 23:11
jhwurmbach1-Apr-03 23:11 
GeneralRe: controlling characters entered into an edit box Pin
jhwurmbach1-Apr-03 23:15
jhwurmbach1-Apr-03 23:15 
GeneralError: Cannot open program database Pin
Ahsan Abbas1-Apr-03 19:10
Ahsan Abbas1-Apr-03 19:10 
GeneralRe: Error: Cannot open program database Pin
peterchen2-Apr-03 6:16
peterchen2-Apr-03 6:16 
GeneralSDI using CApp in other Class.... Pin
Exceter1-Apr-03 18:54
Exceter1-Apr-03 18:54 
GeneralRe: SDI using CApp in other Class.... Pin
Joan M1-Apr-03 19:14
professionalJoan M1-Apr-03 19:14 
GeneralProblem of asterisk's Pin
rohit.dhamija1-Apr-03 18:51
rohit.dhamija1-Apr-03 18:51 
Hello,

I have created an MFC AppWizard(exe) application. It is basically a service and it requires password authentication for installation. I'm able to install it through a GUI installation.

Now I need to install the application through command prompt for e.g.

MyService /install /****

First of all, is there a way I can provide these asterisk in the command line??

What I have done, is created a driver executable (its a win32 console application) named setup.exe
When I issue the install switch to Setup.exe it prompts for a password as follows:

Setup /install

Enter your password => ****
Confirm your password => ****

And creates a bat file (install. bat) at runtime as follows

Contents of install. bat
=======================
Myservice /install/****

And runs the bat file to install the service.

IS THERE A WAY TO DO ALL THE ABOVE OPERATIONS IN A SINGLE STEP BY PROVIDIING THE PASSWORD DIRECTLY TO THE MFC APPLICATION, AVOIDING ALL THESE INTERMEDIATE FILES LIKE MyService /install /****

IN SHORT, IS IT POSSIBLE TO INTERACT WITH THE CONSOLE THROUGH AN MFC APPLICATION?



GeneralExchange of values among different classes of same project Pin
summo1-Apr-03 18:50
summo1-Apr-03 18:50 
GeneralRe: Exchange of values among different classes of same project Pin
Woody Green2-Apr-03 3:22
Woody Green2-Apr-03 3:22 
GeneralChange display font setting (dpi) Pin
mijarral1-Apr-03 18:21
mijarral1-Apr-03 18:21 
GeneralRe: Change display font setting (dpi) Pin
Dudi Avramov2-Apr-03 0:54
Dudi Avramov2-Apr-03 0:54 
GeneralRe: Change display font setting (dpi) Pin
mijarral4-Apr-03 16:25
mijarral4-Apr-03 16:25 
GeneralRegistry vs MS Service Pin
rohit.dhamija1-Apr-03 18:01
rohit.dhamija1-Apr-03 18:01 
GeneralRe: Registry vs MS Service Pin
Anders Molin1-Apr-03 22:02
professionalAnders Molin1-Apr-03 22:02 
General“EDIT” window and string storing Pin
sathyashrayan1-Apr-03 17:56
sathyashrayan1-Apr-03 17:56 
GeneralRe: “EDIT” window and string storing Pin
Rickard Andersson201-Apr-03 22:57
Rickard Andersson201-Apr-03 22:57 
GeneralRe: “EDIT” window and string storing Pin
sathyashrayan2-Apr-03 1:19
sathyashrayan2-Apr-03 1:19 
GeneralRe: “EDIT” window and string storing Pin
John R. Shaw2-Apr-03 10:53
John R. Shaw2-Apr-03 10:53 
QuestionCoCreateInstance fail? Pin
Kevein1-Apr-03 17:49
Kevein1-Apr-03 17:49 
AnswerRe: CoCreateInstance fail? Pin
Dave Bryant1-Apr-03 18:12
Dave Bryant1-Apr-03 18:12 
AnswerRe: CoCreateInstance fail? Pin
Aisha Ikram1-Apr-03 19:48
Aisha Ikram1-Apr-03 19:48 
AnswerRe: CoCreateInstance fail? Pin
Kevein2-Apr-03 6:02
Kevein2-Apr-03 6:02 
GeneralRe: CoCreateInstance fail? Pin
Aisha Ikram3-Apr-03 0:20
Aisha Ikram3-Apr-03 0:20 
GeneralRe: CoCreateInstance fail? Pin
Aisha Ikram3-Apr-03 0:20
Aisha Ikram3-Apr-03 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.