/build/static/layout/Breadcrumb_cap_w.png

launch conditions

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

Answers (12)

Posted by: AngelD 18 years ago
Red Belt
0
If REMOVE <> "ALL"
should only run the condition during an installation
Posted by: rivasj 18 years ago
Senior Yellow Belt
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?
Posted by: AngelD 18 years ago
Red Belt
0
Could you specify how your messagebox condition looks like?
Posted by: viv_bhatt1 18 years ago
Senior Purple Belt
0
do you want to configure the launch condition through command line for an already installed application ?
Posted by: AngelD 18 years ago
Red Belt
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
Posted by: viv_bhatt1 18 years ago
Senior Purple Belt
0
yeahh correct , even Ihave not seen that .
Posted by: viv_bhatt1 18 years ago
Senior Purple Belt
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
Posted by: rivasj 18 years ago
Senior Yellow Belt
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
Posted by: AngelD 18 years ago
Red Belt
0
If you do not like to modify you package make sure to uninstall when the application you are looking for is installed.
Posted by: viv_bhatt1 18 years ago
Senior Purple Belt
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
Posted by: babric 18 years ago
Senior Purple Belt
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...
Posted by: WiseUser 18 years ago
Fourth Degree Brown Belt
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?
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