Hi,
I have the trial version of AdvancedInstaller9.8. I created a new project "sample.aip". In that I have created 2 "custom actions "CreateExeProcess_dir" and "script.vbs" under Install Execution Stage --> Preparing. (In left side frame).
The "CreateExeProcess_dir" General Properties (in right frame) is as follows
Type: File attached to installation
Source Path: <AI_CUSTACTS>aicustact.dll
Source Type: Dynamic linked library (*.dll)
Function: CreateExeProcess
Action Data: [LIBDIR]>cmd /c del "[TempFolder]libs.txt"
And the source code for "script.vbs" file is
'Holds the path of the directory
Dim directoryListing
directoryListing = Session.Property("CustomActionData")
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(directoryListing, ForReading)
Dim classpath
'initialize classpath
classpath = objFile.ReadLine
Do Until objFile.AtEndOfStream
classpath = classpath & ";" & objFile.ReadLine
Loop
Session.Property("LIBPATHS") = classpath
objFile.Close
I have saved this project. When I tried to run this project, it created the .msi file. I tried to install by clicking on it. It is giving me the error. The below is the error log.
Action 13:26:38: script.vbs.
MSI (s) (94:AC) [13:26:38:292]: Executing op: CustomActionSchedule(Action=script.vbs,ActionType=1030,Source='Holds the path of the directory
Dim directoryListing
directoryListing = Session.Property("CustomActionData")
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(directoryListing, ForReading)
MSGBOX(objFile)
Dim classpath
'initialize classpath
classpath = objFile.ReadLine
Do Until objFile.AtEndOfStream
classpath = classpath & ";" & objFile.ReadLine
Loop
Session.Property("LIBPATHS") = classpath
objFile.Close,Target=YourFunction,)
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.vbs script error -2146828283, Microsoft VBScript runtime error: Invalid procedure call or argument Line 11, Column 1,
MSI (s) (94:C8) [13:26:40:445]: Product: Your Application -- 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.vbs script error -2146828283, Microsoft VBScript runtime error: Invalid procedure call or argument Line 11, Column 1,
The above content I have added is per the steps in the URL:
http://www.advancedinstaller.com/forums ... f=2&t=9945
I am in a critical requirement, where the above error is the blocker for me. Please suggest me on this.
FOLLOW US
Get the latest news in Application Packaging