shell command inside InstallationCheck script not working while run with installer
shell command inside InstallationCheck script not working while run with installer
- Subject: shell command inside InstallationCheck script not working while run with installer
- From: "Manish Chaturvedi" <email@hidden>
- Date: Thu, 26 Jul 2007 13:12:54 +0530
Hi all,
I am using packageMaker for installing my application. Before starting
installation I need to verify whether application is currently running at
user’s machine or not, if YES then stop installation.
Inside InstallationCheck script which is a Perl script I
have called a shell command to check for running status of my application.
The part of script is like this:
$output = `ps aux | awk '/MyAPP/ && !/awk/ {print
$2}'`;
if($output)
{
$EXIT_VALUE = (113);
last;
}
This particular scripts runs properly when executed from
command line but while it runs with installer no output comes for this part of
script whereas other part of script like os version check run properly with
installer.
What may be the reason that script segment is not working
with installer?
Does it has something to do with super user or current user
privileges?
How to solve it?
Please help me.
Thanks,
Manish
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden