[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

installshield X - need to run .exe at end of setup!

Posted on 2005-04-18
3
Medium Priority
?
703 Views
Last Modified: 2013-11-14
My installscript code.  Is there a way to debug and see what in the hell targetdir contains? (step through?)..

I have a feeling the targetdir var declared at the top of all code is not coming into this function.


How do I run an executable at the end of the installshield install???


//---------------------------------------------------------------------------
// OnEnd
//
// The OnEnd event is called at the end of the setup. This event is not
// called if the setup is aborted.
//---------------------------------------------------------------------------


function OnEnd()
    begin
    LaunchApp (TARGETDIR ^ "consoleservice.exe","");
end;
0
Comment
Question by:bluedragon99
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
mirtheil earned 2000 total points
ID: 13809292
I usually use MessageBox functions.  Something like:
function OnEnd()
begin
 MessageBox(TARGETDIR,   INFORMATION);
 LaunchApp (TARGETDIR ^ "consoleservice.exe","");    
end;

That being said, I changed the name of the EXE to one in one of my projects and it worked correctly.  Are you sure it's not launching?  
0
 
LVL 1

Author Comment

by:bluedragon99
ID: 13809324
trying now...I always use msgbox in vb testing, didn't know what it was in IS...testing now..
0
 
LVL 1

Author Comment

by:bluedragon99
ID: 13810284
For future users here is the final app run code for installshield X


TheAppPath = TARGETDIR ^ "\pathtoexe\\TheApp.exe";
LongPathToQuote(TheAppPath,TRUE);

MessageBox(TheAppPath,INFORMATION);
LaunchApp (TheAppPath,"");


Thanks for the help!  It was the var not containing the right path to the exe
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Simple Linear Regression

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question