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)
Please log in to answer
Posted by:
AngelD
19 years ago
Posted by:
rivasj
19 years ago
Posted by:
viv_bhatt1
19 years ago
Posted by:
AngelD
19 years ago
Posted by:
viv_bhatt1
19 years ago
Posted by:
rivasj
19 years ago
Posted by:
AngelD
19 years ago
Posted by:
viv_bhatt1
19 years ago
Posted by:
babric
19 years ago
Posted by:
WiseUser
19 years ago
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?
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.
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.