Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

HowTo launch installed exe (keyfile)


2 replies to this topic

Holger_G

Holger_G
  • Full Members
  • 155 posts

Posted 23 July 2008 - 10:36

Hi,

I need to launch an installed executable (component keyfile) that uses 'requireAdministrator' for requestedExecutionLevel at the end of my installation.

Therefore I wanted to use a InstallScript CA that makes use of LaunchApplication using ShellExecuteEx (and 'runas' for lpVerb).

Now I don´t know how to get the path to the installed executable. Must I use MsiGetComponentPath?

Or do you know any other solution?

Thanks
Nick



KathyMorey

KathyMorey
  • Full Members
  • 111 posts

Posted 23 July 2008 - 13:08

Is this executable one you have installed? If so, you should just be able to use INSTALLDIR (or whatever directory you installed it to). If not, can you do a system search to get its path? For example, does the package that installed it write an App Path key entry in the registry, or record its path somewhere else?
Kathy Morey
Synergy Software Engineer
ProfitStars, a Jack Henry Company
kmorey@profitstars.com

Holger_G

Holger_G
  • Full Members
  • 155 posts

Posted 23 July 2008 - 13:11

Yes, the executable gets installed by the package.
So I simply get the directory property using MsiGetProperty.
That´s it, right?

It´s working now, thanks.

Edited by nrivers, 23 July 2008 - 14:38.