If you look at the guide at:
http://www.advancedinstaller.com/user-g ... rties.html
you see the following comment:
Code: Select all
Deferred custom actions can receive information about the installation process, mostly only embedded in the CustomActionData property. However, this type of custom actions do not have access to installer properties.
which means: that in "install" sequence, you can't access Installer properties! So if I have all my files deployed/copied and now I'm in the "install" sequence, I can't have my custom action modify/access any Property!
So for example, I created (at first) a VBScript custom action that checks the version of my already installed file, but since the properties are not accessible: I can't do this:
Code: Select all
Session.Property("FILE_VERSION_RESULT") = fileVersion
because "FILE_VERSION_RESULT" properity is NOT accessible at this stage of the sequence.
so my code should have been:
Code: Select all
Function GetFileVersion()
' Get Installer properties
fileToCheck=Session.Property("FILE_NAME_TO_CHECK_VERSION")
' Create object to check file version
Set fso = CreateObject("scripting.filesystemobject")
fileVersion = fso.GetFileVersion(fileToCheck)
' Store the version
Session.Property("FILE_VERSION_RESULT") = fileVersion
End Function
but it fails, since properties: "FILE_NAME_TO_CHECK_VERSION" and "FILE_VERSION_RESULT" are not accessible/exist at this stage/sequence (for the VBScript session).
If I run the SAME custom action at an earlier sequence stage: then it will work, but it doesn't work for the "install" sequence.
Dashut