Launch condition not working
I want ot put launch condition in my msi. At 1st I am searching file, through system search, property sets to APP_TEST. Now I want to put launch condition, by using system search. I put launch conditions like APP_TEST=0, I tried a lot, but not working: Please suggest
0 Comments
[ + ] Show comments
Answers (13)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
zipsantro
14 years ago
Posted by:
abking99
14 years ago
Posted by:
zipsantro
14 years ago
Posted by:
abking99
14 years ago
MSI (c) (58:C4) [23:47:50:790]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (58:C4) [23:47:50:790]: Note: 1: 2262 2: RegLocator 3: -2147287038
MSI (c) (58:C4) [23:47:50:790]: Note: 1: 2262 2: IniLocator 3: -2147287038
MSI (c) (58:C4) [23:47:50:790]: PROPERTY CHANGE: Modifying APP_TEST property. Its current value is '1'. Its new value: 'C:\Program Files\Test\myapp.exe'.
Action ended 23:47:50: AppSearch. Return value 1.
MSI (c) (58:C4) [23:47:50:790]: Skipping action: CCPSearch (condition is false)
MSI (c) (58:C4) [23:47:50:790]: Skipping action: CCPDialog (condition is false)
MSI (c) (58:C4) [23:47:50:790]: Skipping action: RMCCPSearch (condition is false)
MSI (c) (58:C4) [23:47:50:790]: Doing action: LaunchConditions
Action 23:47:50: LaunchConditions. Evaluating launch conditions...
Action start 23:47:50: LaunchConditions.
here it gives error.
Posted by:
abking99
14 years ago
Posted by:
abking99
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
bob_msi
14 years ago
Posted by:
anonymous_9363
14 years ago
No. Think about what the 'equals' sign means.
NOT APP_TEST=1
means 'Accept any scenario where APPTEST is not equal to 1'
APP_TEST=0
means 'Accept any scenario where APPTEST=0'
In your search, APP_TEST gets populated with the filename, if it's present, 'C:\Program Files\Test\myapp.exe'
In the first test, clearly APP_TEST no longer equals 1, passing the test. In the second test, it does not equal 0, thus failing the test.
Lastly, from what I can gather from the log extract, at no point does APP_TEST=0. I imagine you have it set to 1 in the 'Property' table.
NOT APP_TEST=1
means 'Accept any scenario where APPTEST is not equal to 1'
APP_TEST=0
means 'Accept any scenario where APPTEST=0'
In your search, APP_TEST gets populated with the filename, if it's present, 'C:\Program Files\Test\myapp.exe'
In the first test, clearly APP_TEST no longer equals 1, passing the test. In the second test, it does not equal 0, thus failing the test.
Lastly, from what I can gather from the log extract, at no point does APP_TEST=0. I imagine you have it set to 1 in the 'Property' table.
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.