I am trying to run a custom action written in VBscript to change the REMOVE property. This can't be done through the normal means (in the Upgrade table) because of a legacy of badly written installers.
Question 1: Where should I place the custom action? I think it should be between RemoveExistingProducts and InstallInitialize in the InstallExecute sequence.
Question 2: What properties should it have? I've currently got synchronous, immediate execution, always execute.
Question 3: My script currently starts with:
myInstaller = Session.Installer
as I need to use a test similar to:
if (myInstaller.FeatureState(productCode, featureName) = 3) then ...
later on, but every time I run it (with logging turned on), I get an error that says:
"Info 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action <MyScriptName> script error -2146827850, Microsoft VBScript runtime error: Object doesn't support this property or method: 'myInstaller' Line 1, Column 1,"
I've searched the online help, Microsoft SDK online help, done a Google search and browsed several forums and can't find any explanations. I'm desperate. Can anyone explain what's wrong?
FOLLOW US
Get the latest news in Application Packaging