|
Google for InnoSetup.
~RaGE();
|
|
|
|
|
Microsoft Visual Studio .NET 2003 -> File -> New Project -> Setup And Deployment Projects -> Setup Wizard -> ...
From here you should do everything its not difficult
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
jerry1211a wrote: Can someone tell me how to develop a simple installation CD, that will load the GUI exe, and then load the required DLL(s) onto the users system.
In Continuation with Mr. Rage,
here is the link for InnoSetup:-
http://www.jrsoftware.org/isinfo.php[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks for providing the link.
~RaGE();
|
|
|
|
|
|
I have the need to execute a console application from within my dialog based one, and I need to retrieve the output of the console app in a string form.
The console app doesn't require user input, it accepts an argument, then just runs and generates a string.
I would imagine I have to use ShellExecute, or CreateProcess, but am not sure how to get the output, other than simply it's return code.
Any ideas?
Thx,
Rick
|
|
|
|
|
If you could get away with an intermediate file, you could simply use the "myprg.exe >intermediate.file" syntax to catch the output of "myprog.exe" in "intermediate.file" .
I am positively sure there other and are more elegant ways, but this one is a matter of half an hours work.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Try and search Code Project (using the search functionality at the top of this page) for CWaitProcess. It seems a bit complicated at first sight, but it is exactely what you need.
~RaGE();
|
|
|
|
|
Look at the parameter list for CreateProcess(). Some of them are file handles that you can specify where you want to the output to go to i.e. create a file and then pass its HANDLE into CreateProcess()/
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.
|
|
|
|
|
See here and here.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Have a look at the popen() function.
|
|
|
|
|
Thanx for the replies
I did find something that looks like it's exactly what I want here: http://www.codeproject.com/threads/consolepipe.asp.
Apparently I wasn't searching for the right keywords
-- modified at 7:11 Tuesday 10th January, 2006
|
|
|
|
|
Does anybody know how to detect if there are system global window hooks present? Piece of code, freeware, or a solid pointer to where I may find the information, is highly welcome.
|
|
|
|
|
Jörgen Sigvardsson wrote: Does anybody know how to detect if there are system global window hooks present? Piece of code, freeware, or a solid pointer to where I may find the information, is highly welcome.
I've seen this question asked before, and as far as I know, you cannot do it (at least in user mode) in 32 bit Windows. I believe it was possible in the 16-bit days.
So, you'd probably have to go the kernel route and try some undocumented stuff.
Alternatively, you could hook the hooker - SetWindowsHookEx, when Windows starts.
Regards,
Nish
|
|
|
|
|
I've seen shareware apps claiming they can detect window hooks, but I have yet to find a free one. Nor do they provide any technical detail on how it is done (trade secrets ).
Nishant Sivakumar wrote: Alternatively, you could hook the hooker - SetWindowsHookEx, when Windows starts.
That won't help me much, as I'm trying to detect what's messing up my keyboard input. I know (from dabbling with hooks myself), that it is easy to screw up the keyboard handling, if you do not pass all messages to the next hook on the chain. I remember failing to forward "peeks" to the next chain, which caused the accelerator translation to fail in some instances, depending on key up/down sequences in n-key combinations. The symptoms I'm witnessing right now matches such bad hook behaviour. The only problem is that I have no hooks installed on this machine...
|
|
|
|
|
Jörgen Sigvardsson wrote: I've seen shareware apps claiming they can detect window hooks, but I have yet to find a free one. Nor do they provide any technical detail on how it is done (trade secrets ).
Do any of them work?
Jörgen Sigvardsson wrote: That won't help me much, as I'm trying to detect what's messing up my keyboard input.
Well, if you hook it, you'll at least know what program it is that's putting a silent hook without your knowledge.
Regards,
Nish
|
|
|
|
|
Nishant Sivakumar wrote: Do any of them work?
One of them appeared to work, as far as I could tell.
Nishant Sivakumar wrote: Well, if you hook it, you'll at least know what program it is that's putting a silent hook without your knowledge.
How, exactly...?
--
Pictures[^] from my Japan trip.
|
|
|
|
|
Jörgen Sigvardsson wrote: How, exactly...?
I think I wasn't clear in my original post. I meant an API hook on SetWindowsHookEx . The 3rd parameter to SetWindowsHookEx is an HINSTANCE to the DLL where the hook procedure is located. So if you have an API hook on SetWindowsHookEx, you can locate those DLLs (and possibly the parent exes too) that attempt to set a hook.
Regards,
Nish
|
|
|
|
|
this will only work if you somehow manage to patch SetWindowsHook for every running process...
the information you require is only available in kernel-mode. You will need a driver to access it. Under the current PEB structure for a process is a pointer to the PDESKTOP kernel object. Under this there is a linked-list of further difficult-to-understand kernel structures, some of which contain info about hooks and the DLLs that they belong to.
You need WinDbg+Symbols+lots of patience
James
Microsoft MVP: Windows SDK http://www.catch22.net
|
|
|
|
|
Hellow,
the type of Key is "int". can someone help?
|
|
|
|
|
i don't know about CMap ; i tried to use it when i designed the 1st version of VisualCalc but came back to the old standars C++ std::map<>.
if it is like the standard map, the map is already sorted by the "key".
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
thanks,i will have a test on CMap.
|
|
|
|
|
|
I got the result. it seems it is sorted by the time when item was put in.
|
|
|
|
|
xyhan wrote: I got the result.
Great!
But toxccts advice still stands: Stop using CMap and use std::map
CMap is Microsoft proprietary and is the legacy of a time when Microsofts C++ compiler was too braindead to cope with a STL. And when the STL itself was still in the process of definition.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|