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,
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)
Please log in to answer
Posted by:
mayur_mak
13 years ago
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
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
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....
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
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
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
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
Posted by:
rachuri.rajesh
13 years ago
Posted by:
naveen.packager
13 years ago
Posted by:
rachuri.rajesh
13 years ago
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
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
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.
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.