GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Jun-2005, 01:16
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road

A Question on Start Menu in Windows System


I have a question about that:
I have developed an application and have made a setup program about the apllication. After I have installed the application, how should I make it that I want to execute the application by the way of typing my application name in the Run dialog box in Start Menu?
Does anyone tell me please?
  #2  
Old 29-Jun-2005, 03:12
aliok.tr aliok.tr is offline
New Member
 
Join Date: Jun 2005
Posts: 22
aliok.tr is on a distinguished road
If I didn't understand wrong; you must put your program or a batch file-that points your program- to c:\windows\system32\
  #3  
Old 29-Jun-2005, 05:05
maprich maprich is offline
Member
 
Join Date: May 2005
Posts: 163
maprich has a spectacular aura aboutmaprich has a spectacular aura about
Quote:
Originally Posted by aliok.tr
If I didn't understand wrong; you must put your program or a batch file-that points your program- to c:\windows\system32\
Yes that could be the "chewing gum patch" ad-hoc solution (if it works) but that is not the recommended way to do it. Almost all install shield (or other official) installed programs can be launched from start->run even there is no mention of them in c:\windows\system32\ . I suspect that the setting has to be done somewhere in registry. Let the real windows professionals/those who have real experience to answer this question.
  #4  
Old 29-Jun-2005, 09:20
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by maprich
Quote:
Originally Posted by aliok.tr
If I didn't understand wrong; you must put your program or a batch file-that points your program- to c:\windows\system32\
Yes that could be the "chewing gum patch" ad-hoc solution (if it works) but that is not the recommended way to do it. Almost all install shield (or other official) installed programs can be launched from start->run even there is no mention of them in c:\windows\system32\ . I suspect that the setting has to be done somewhere in registry. Let the real windows professionals/those who have real experience to answer this question.
Not sure why you think that's a bad solution (actually, yes I do, but I disagree). It's just a directory. I consider purchasing InstallShield or forcing Registry entries to be a bad idea. But that's just me. I despise the registry concept myself. :-?
__________________

Age is unimportant -- except in cheese
  #5  
Old 29-Jun-2005, 21:03
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road

A Regustry Entry Could Be a Good Way


Quote:
Originally Posted by WaltP
Not sure why you think that's a bad solution (actually, yes I do, but I disagree). It's just a directory. I consider purchasing InstallShield or forcing Registry entries to be a bad idea. But that's just me. I despise the registry concept myself. :-?

A shortcut pointing to my application referenced to
C:\%WinDir%\System32 my be a way to resolve my question.
This can be done by or this is the same as the way to write an entry with a key to HKEY_CLASSES_ROOT\Applications, a name to my application name,
and a value to my application shortcut reference in the data type of
"EXPAND_SZ". I have tried it but in vain.

Think about that how should Microsoft Windows Word (Winword.exe) can
be directly typed in Start Menu->Run and be called reference to open Word?
This is probably some thing to do with Registry Entry. How should this trick be done?
  #6  
Old 30-Jun-2005, 11:30
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
In a test I just ran programs I have start without a registry entry. Therefore it may be as simple as adding the directory to the system PATH. Try that. It seems to be all that's needed on Win98.
__________________

Age is unimportant -- except in cheese
  #7  
Old 30-Jun-2005, 20:59
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road
Quote:
Originally Posted by WaltP
In a test I just ran programs I have start without a registry entry. Therefore it may be as simple as adding the directory to the system PATH. Try that. It seems to be all that's needed on Win98.

Thanks! I have disentangled such a upseting question.
I use javascript to control such handler.

I want to make an anchor on web page to call my application.
Before calling my application, I use command to move my application
reference to what I have installed directory.
After that I can use a hyperlink to call reference to my application.
  #8  
Old 01-Jul-2005, 22:33
Jeremiah Jeremiah is offline
New Member
 
Join Date: Jul 2005
Posts: 11
Jeremiah is on a distinguished road
Personally I feel you should avoid the registry as much as possible, unless you badly need to do some shell integration. I don't how care how wonderful or fast people say it is. Any program can write whatever it wants to the registry and theres no garruntee your entry will be safe. Believe me its a mess in there.
Keep your configuration safe.

A few lines of code related to the registry is all it takes to screw Windows over.
  #9  
Old 03-Jul-2005, 23:53
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road
Quote:
Originally Posted by Jeremiah
Personally I feel you should avoid the registry as much as possible, unless you badly need to do some shell integration. I don't how care how wonderful or fast people say it is. Any program can write whatever it wants to the registry and theres no garruntee your entry will be safe. Believe me its a mess in there.
Keep your configuration safe.

A few lines of code related to the registry is all it takes to screw Windows over.

Thanks for your advising!
 
 

Recent GIDBlogHalfway done! by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command & Conquer 95 under XP dexter Computer Software Forum - Games 41 29-Jun-2008 12:45
Urgent ! Pls Help Me ! mycashmoney C Programming Language 4 01-Jul-2006 22:49
I cant start Apache in Windows Services ryulite Apache Web Server Forum 1 26-Jul-2005 09:39
Image on the unused Menu bar area ? hemanth.balaji C++ Forum 6 10-Jun-2005 13:39
Athlon system locking up on start up. Is it MoBo, Processor, PSU or what? ebolaosu Computer Hardware Forum 8 26-Feb-2004 11:19

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:24.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.