PDA

View Full Version : find location of agent.exe dynamically



ricklin
05-20-2003, 06:42 PM
Hi,

I am using the UpdateService API in Visual C++. What is the best way to #import the agent.exe? The sample uses this line:

#import "C:\Program Files\Common Files\InstallShield\UpdateService\Agent.exe" named_guids no_namespace raw_interfaces_only


But that is assuming the agent.exe was installed on the C drive. What if agent.exe is on the D drive (ie. in a dual boot environment)? Thanks.


Rick