hello,
I am running into further problems deleting files. I have a custom search action searching for a file and if the file exists I want to delete.
the installer runs and I get the error message "script cannot be executed" however the file "Sap3.4DR" is deleted so therefore the search is working okay.
the execution condition is "SAPDR_VIRTUAL ~>< "Sap3.4DR"" so if the file exists in the search path it is deleted.
any ideas?
regards
Paul
from the log file
MSI (s) (88:FC) [09:47:52:138]: Executing op: ActionStart(Name=DELSAPDR,,)
Action 9:47:52: DELSAPDR.
MSI (s) (88:FC) [09:47:52:138]: Executing op: CustomActionSchedule(Action=DELSAPDR,ActionType=3078,Source=' VBScript source code revised for file missing this works but not vista
'---------------------------------------
Dim filePath
filePath = Session.Property("CustomActionData")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(filePath) Then
objFSO.DeleteFile(filePath)
End If
'---------------------------------------,Target=YourFunction,CustomActionData=C:\Users\paul dennis\AppData\Local\Virtualstore\ProgramData\Complete Picture\Sap3_2\Sap3.4DR)
Error 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 script error , : Line , Column ,
MSI (s) (88:A0) [09:47:53:942]: Product: Sap3_2 -- Error 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 script error , : Line , Column ,
Action ended 09:47:53: InstallFinalize. Return value 3.