I have a package that I created a launch condition for. The installation looks for an application to be installed prior, if it finds the app it installs it, if it doesn't find it a message box pops up. The problem is during the uninstall. I am trying to uninstall it silently through a command line but it is processeing the launch condition. So eventhough the application is intalled it is poping up my message during the uninstall telling me that the app is not there. Is there a way I can disable the launch condition during uninstall? Thanks in advance
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
If REMOVE <> "ALL"
should only run the condition during an installation
Answered 08/15/2005 by: AngelD
Red Belt

Please log in to comment
0
Thanks for the quick reply, but is there a way that I can get around it through a command line. Here is what I am running: MsiExec.exe /X{2D74232C-AB21-413F-BB64-BB0C22B57A8F} /qb.

Can I keep the launch condition from poping up some how?
Answered 08/15/2005 by: rivasj
Senior Yellow Belt

Please log in to comment
0
Could you specify how your messagebox condition looks like?
Answered 08/15/2005 by: AngelD
Red Belt

Please log in to comment
0
do you want to configure the launch condition through command line for an already installed application ?
Answered 08/15/2005 by: viv_bhatt1
Senior Purple Belt

Please log in to comment
0
ORIGINAL: viv_bhatt1

do you want to configure the launch condition through command line for an already installed application ?

That I don't think is possible
Answered 08/15/2005 by: AngelD
Red Belt

Please log in to comment
0
yeahh correct , even Ihave not seen that .
Answered 08/15/2005 by: viv_bhatt1
Senior Purple Belt

Please log in to comment
0
You can write a custom action which will run only on uninstallation and will supply the correct value to the launch condition .

Can you provide us the launch condition with details like if it takes the value from appsearch table etc ?

Cheers ,
V
Answered 08/15/2005 by: viv_bhatt1
Senior Purple Belt

Please log in to comment
0
That is correct. At the time when the "SystemSearch" was created there was no condition set to not run on "Uninstall" that is why I am getting that message. So I am trying to see if I can get around that .

Thanks again
Answered 08/15/2005 by: rivasj
Senior Yellow Belt

Please log in to comment
0
If you do not like to modify you package make sure to uninstall when the application you are looking for is installed.
Answered 08/15/2005 by: AngelD
Red Belt

Please log in to comment
0
I don't think you can set a launch conditionto run only at uninstall . You should try for the custom action mentioned above .

Hope this helps

Cheers ,
V
Answered 08/15/2005 by: viv_bhatt1
Senior Purple Belt

Please log in to comment
0
I don't think you can set a launch conditionto run only at uninstall . You should try for the custom action mentioned above .

why not ? We can't have a condition for the launchcondition action ? I think I missed something because this seems to me very curious...
Answered 08/16/2005 by: babric
Senior Purple Belt

Please log in to comment
0
If you just want to get it off the machines, you could try this script...

Const sPRODCODE = "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
Const sACTIONNAME = "LaunchConditions"
Const sSEQUENCENAME = "InstallExecuteSequence"
'Const sSEQUENCENAME = "InstallUISequence"

Const msiViewModifyUpdate = 2
Const msiOpenDatabaseModeDirect = 2

Set oInst = CreateObject("WindowsInstaller.Installer")

sDBPath = oInst.ProductInfo(sPRODCODE, "LocalPackage")

Set oDB = oInst.OpenDataBase(sDBPath, msiOpenDatabaseModeDirect)

sQuery = "DELETE FROM " & sSEQUENCENAME & " WHERE Action='" & sACTIONNAME & "'"

Set oView = oDB.OpenView(sQuery)

oView.Execute

oView.Close

oDB.Commit

Set oView = Nothing

Set oDB = Nothing

oInst.UILevel = 35

oInst.InstallProduct sDBPath, "REMOVE=ALL"

Set oInst = Nothing

Just substitute the correct product code and action name at the top of the script, uncomment the relevant sSEQUENCENAME constant (delete the other one), then run the script.

Just ammended the script to delete the "LaunchConditions" action (instead of "AppSearch") - I think this is the action you need to get rid of?
Answered 08/16/2005 by: WiseUser
Fourth Degree Brown Belt

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