Page 1 of 1

Cannot run the program after FInish

Posted: Fri Sep 21, 2007 7:55 pm
by aargus07
Why does my program not run after the Install?
The "Run After Program" checkbox is cheked ant
the appropriate MSI code is modifed in the
Finish snippet. (see attachment)

Thanks,

Dan

File Attached:

ia_code.JPG

Posted: Sat Sep 22, 2007 5:57 am
by Gizm0
Is it a .net application? Is the path set correctly? What does the -t parameter? Is it a protected/packaged application?

Run Program

Posted: Sat Sep 22, 2007 6:10 pm
by aargus07
Giz,

Thank you for your reply. It is a Visual FoxPro
application and it runs fine from the Icon that IA
places on the desktop. It just will not launch
automatically as indicated by the checkbox
on the IA install procedure. The -t simply
surpresses the VFP splash screen and at this
point is probably a legacy thing... I've always
done it since early versions of VFP in whatever
contect it's launched. Never been a problem.

Thanks,

Dan

Posted: Sun Sep 23, 2007 6:52 am
by Gizm0
Most of the times applications won't get launched because they need certain variables set first, like Working Directory and stuff like that.

Use Run Program As and set Working Directory and Environment variables. Make some tests with that and you'll get it run for sure. Specially the Working Directory.

Run Program after Install...

Posted: Sun Sep 23, 2007 4:02 pm
by aargus07
Gizm0,

Thanks for your advice. I've looked into your suggestion and suspect that the Working Directory is not set correctly. Again, being new to IA, there are some things I am still trying to figure out.

In the IA project, my files used to make the install are stored in;

c:\\ABC (also $TARGETDIR$) in IA

They install to \\programFiles\\XYZ whn the IA file is run on the
end user's machine.

Although I have found a couple of locations where Working Directory
is located in the IA menus, it remains unclear to me where to change
what so the the program file EXE is run from the

\\programFiles\\XYZ

on the user's end.


Dan

Posted: Mon Sep 24, 2007 3:42 am
by Gizm0
If you use Run Program As instead of Run Program to execute your file after installation finishes, you'll see the Working Directory textbox along with some others.