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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 07/04/2011 by: mayur_mak
Senior Purple Belt

Please log in to comment
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....
Answered 07/04/2011 by: rachuri.rajesh
Senior Yellow Belt

Please log in to comment
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.
Answered 07/04/2011 by: naveen.packager
Green Belt

Please log in to comment
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
Answered 07/04/2011 by: mayur_mak
Senior Purple Belt

Please log in to comment
0
make sure AppSearch action is sequenced before LaunchConditions action in InstallUISequence and InstallExecuteSequence tables
Answered 07/05/2011 by: rakesh.kumar
Senior Yellow Belt

Please log in to comment
0
delete the property from the property table and try again.
Answered 07/06/2011 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
Hii Naveen... Thanks For ur Reply..
i done the same way what u said but not working...

:-(
Answered 07/06/2011 by: rachuri.rajesh
Senior Yellow Belt

Please log in to comment
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.
Answered 07/06/2011 by: naveen.packager
Green Belt

Please log in to comment
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
Answered 07/06/2011 by: rachuri.rajesh
Senior Yellow Belt

Please log in to comment
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.
Answered 07/06/2011 by: VBScab
Red Belt

Please log in to comment
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.
Answered 07/06/2011 by: naveen.packager
Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity