Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Launch an Executable from the Target Directory

2 views
Skip to first unread message

TadhgOC

unread,
Feb 26, 2002, 11:14:21 AM2/26/02
to
Hi,
I'm trying to Launch an executable that I have installed to the
Destination Computer
to Program Files\My Company\My App\MyExe.exe

The installation has been set up with a different MyExe.exe for each
launguage so I
cannot choose the Launch an Executable with the option Installed with
the application.

Below is an outline of what I think is close to what I should do. As
the exe is always
called the same name irrespective of language
I just need to point to the install directory and target MyExe.exe

What I've tried to do is launch the application when the Finish Button
is clicked
at the end of a successful installation.

My appologies if this is way off the mark but I've only been looking
at this application(ISWI)
for a few days.

I've found that if I hard code PATHTOMYEXE as C:\Program Files\My
Company\My App\MyExe.exe
it works. This is not sufficient as if the user selects a custom
installation folder it won't
work. Also I assume Program Files is translated in OSs running other
Languages so it won't in
those instances.

Any help,suggestions will be greatly appreciated.


I created a New Property under the Property Manager
Name Value
PATHTOMYEXE [INSTALLDIR]MyExe.exe

I created a custom Action with the following settings
Name: LaunchMyExe
Type: Launch an executable
Location: Stored in the Property table
Source: PATHTOMYEXE
Target:

Wait for action to finish - Unchecked
Ignore custom action return code - Checked
In-Script Execution - Immediate Execution
Execution Scheduling - Always Execute

Under User Interface, SetupCompleteSuccess, Behaviour, Control Name,
OK, Pushbutton I added
a new Do Action with LaunchMyExe as the Argument


Thanks,
Tadhg.

0 new messages