/build/static/layout/Breadcrumb_cap_w.png

Launch Condition

HI...
I am very new to packaging..
I am working an an application AppXX.MSI . This application must install only if other application AppYY.exe exist.
So i used System search to find existence of AppYY.exe.
During system search i created public poperty FILEEXIST.
In file table I created Public Property called FILEEXIST=0 .
So if AppYY.exe exists, FILEEXIST property will contain the path of that file.
else FILEEXIST contain (ZERO).
Till this ok?.. After this how to set launch conditon?
What are the steps i should follw.. please answer me...
Thanks,

0 Comments   [ + ] Show comments

Answers (11)

Posted by: mayur_mak 13 years ago
Senior Purple Belt
0
Hi rachuri,

In order to search for the particular file you need to utlize the sytem search tables i.e AppSearch,Signature,Drlocator.Finally the property in appsearch table can be used in launch condition table as per the requirement.In your case it will be as follow:

Appsearch table
property:FILEEXIST Signature:FileSearchAppYY


signature table
Signature:FileSearchAppYY Filename:AppYY.exe

launchCondition table
condition(property from appsearch table): FILEEXIST Description:File AppYY.exe does not exsists

you can also refer msi.chm for complete details regarding system search tables as well as revert back here.

regards,
Mayur Makwana
Posted by: rachuri.rajesh 13 years ago
Senior Yellow Belt
0
Thanks mayur_mak!!
I tried what u said..
I removed AppYY.exe and Installed AppXX.MSI .
It is working good showing message "File AppYY.exe not exist" and installation stoped. Ok fine.
But when i install AppXX.MSI after installing AppYY.exe actually the installation should proceed but it is showing the same Error message "File AppYY.exe not exist".
Pls answr....
Posted by: naveen.packager 13 years ago
Green Belt
0
In file table I created Public Property called FILEEXIST=0
I dint get why you are doing this?
But when i install AppXX.MSI after installing AppYY.exe actually the installation should proceed but it is showing the same Error message "File AppYY.exe not exist".
This is beacuse you are not searching the file properly.

I am assuming you are using wise. In system search from installation expert tab creat a new file or directory entry, give the property name, select the return full file name option in operation box, and give the file name below.

Now just create a new entry in launch condition and give the property in condition box and give the discription below.

Check it it should work now.
Posted by: mayur_mak 13 years ago
Senior Purple Belt
0
Hi rachuri,


After specifying the property in the conditon column of launchConditon table, when AppYY.exe is present or absent the AppXX.msi should work fine.I have before done the same in many MSI's it works fine.
Anyways as per your requirement add one of the Standard Install Mode properties i.e INSTALLED to the the Condition in the launchConditon table.

i.e FILEEXIST OR Installed
Posted by: rakesh.kumar 13 years ago
Senior Yellow Belt
0
make sure AppSearch action is sequenced before LaunchConditions action in InstallUISequence and InstallExecuteSequence tables
Posted by: jmcfadyen 13 years ago
5th Degree Black Belt
0
delete the property from the property table and try again.
Posted by: rachuri.rajesh 13 years ago
Senior Yellow Belt
0
Hii Naveen... Thanks For ur Reply..
i done the same way what u said but not working...

:-(
Posted by: naveen.packager 13 years ago
Green Belt
0
May be the PROPERTY is not returning the correct value.

Why dont you try using any reg key(Searching FILE should work but try once if you can do it with a reg key).

And remember there should not be any entry of this PROPERTY in the PROPERTY table as John said.
Posted by: rachuri.rajesh 13 years ago
Senior Yellow Belt
0
Thanks for all for replying...I did not got it yet.Sorry...
Let me tell u what i done again...
1) Opened Installation Expert-> System Search
2) Clicked Add File or Directory
3)Then In The Search for File Dialog i entered following
PROPERTY: FILEEXIST
OPERATION: Search for file :Return Full file name
DEPTH: 5
FILENAME: sample.txt
4) Compiled
Now i checked if System search is going good or not.
It is working fine.
FILEEXIST property containing full file name on successful search(sample.txt)
And NULL on unsuccessful search.

5) Now In LaunchCondition i given
Condition: FILEEXIST
Description: "Some Message"
6) Compile

Now Problem:

Even though the file exists, it showing the message given in LaunchCondition Description.

Tell me if this procedure is CORRECT or WRONG?
If so what mistake it might be....

Pls reply.....
Thankz
Posted by: anonymous_9363 13 years ago
Red Belt
0
Have you checked whether the LaunchCondition action is scheduled after AppSearch? If you're a Wise user, the default 'Windows Application' template has LaunchCondition scheduled before AppSearch!

Also, Wise has a rather neatly integrated debugger which you can use to step through each action, monitoring properties and so on.
Posted by: naveen.packager 13 years ago
Green Belt
0
PROPERTY: FILEEXIST
OPERATION: Search for file :Return Full file name
DEPTH: 5
FILENAME: sample.txt

Give the Full path of the directory in which the file exists in the SEARCH DIRECTORY box and in DEPTH box give 0.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ