Eragon.

Hey:

When you install an application, it usually installs a folder in the Start Menu. If it is a special app. it can also be included in the Internet Explorer "Edit with..." toolbar (like MSVS, Word, Notepad, Expresion etc.). What I am asking (if you can make sense out of my long question), is if I can get a link to the app. in a list box, tree or list view, for each app. installed on my PC without having to mannually do this. The reason for this is the fact that if I were to put it on a different pc with other apps. than the ones on my PC, it'd show up there too. But the apps. that are on my PC aren't listed on their PC. Is what I'm asking too complicated (I do enjoy a challenge), impossible, or don't I even make sense

If someone could answer that, I'd very much appreciate it, and if it's within my knowledge, I'd assist you.

I hope that if this thread gets a reply, it will help plenty of people.




Re: Visual C# General Identification

OmegaMan

Is this a question concerning using the install application of a .Net application or how the OS works in general





Re: Visual C# General Identification

MicrosoftNetwork

No, no. You mis-understand my question (I did have a hunch that may happen). What I want to do is create a replica of the Start Menu, but in a list box. I want it to show all the applications on my computer (only the ones in my Start Menu | Programs only), but I don't want to do it manually, because I want the contents of the list box to modify if it were to go on a different computer.

Hope this makes it clearer.

Thank you for replying.






Re: Visual C# General Identification

crashed

If you want to do a replica of the startmenu, then why not just read the %userdir%\startmenu\programs folder and parse the contents of this folder into the list box.

This way it automatically updates with each user/computer.


Rgds,

Chris






Re: Visual C# General Identification

OmegaMan

crashed wrote:
If you want to do a replica of the startmenu, then why not just read the %userdir%\startmenu\programs folder and parse the contents of this folder into the list box.


Don't forget to parse the all users startmenu as well.





Re: Visual C# General Identification

MicrosoftNetwork

OK, this time I stated the question wrong. I know, if I cant get what I want across then how can you help me But I don't find out that I stated the wrong thing until your answer. Simply, what I want it to do, is make the listBox act like the Start Menu, but not actually work with the Start Menu. So yes, OmegaMan, to your first reply, I'd like to know how it's done, and all I really want, is the actual executable to appear there, not really all the shortcuts that appear in the SM (like uninstall or "Application on the Web").

I hope this give a better detailed way of my desire.






Re: Visual C# General Identification

OmegaMan

MicrosoftNetwork wrote:
listBox act like the Start Menu, but not actually work with the Start Menu.


There is no regular control that behaves like the start menu. You will need to create a custom control to handle the variances and look and feel. Secondly you will need to dynamically load it. See the next section on that...

MicrosoftNetwork wrote:
I'd like to know how it's done, and all I really want, is the actual executable to appear there, not really all the shortcuts that appear in the SM (like uninstall or "Application on the Web").


I would like to know too! But that is proprietary software from Microsoft. Each of the operations you have laundry listed are multiple individual programs embedded in the operating system which have been a work in progress for over ten years!

Just finding out and divining the location(s) in the registry where the program references are would be a full time job in itself. The best bet is to parse the start menu's of the user and system, process the link and display the information as you want. There is no off the shelf code you can look at that easily does this operation.