What is the cause for the following , even though the scripts run fine and execute correctly to give the results. I saw that in the log file.
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 script error , : Line , Column ,
I think you choose to ignore the return code of the custom action, that's why the installation continue even if the script fails.
Also you can try to execute the script from Windows Explorer to see if it's executed ok. However if the problem persist please post here the .vbs file that gives this error so I can take a look.
Ive attached the script as a "new attached custom action" and have the following settings:
Function Name: <blank> (possibly the problem??)
Asych execution, wait for return code at the end of the sequence
Immediate Execution
The code is (where as_crew is an existing user):
set WshShell = WScript.CreateObject("WScript.Shell")
set filesys = Wscript.CreateObject("Scripting.FileSystemObject")
target = "C:\Documents and Settings\as_crew\Custom"
IF NOT filesys.FolderExists(target) THEN
filesys.CreateFolder(target)
filesys.CreateFolder(target & "\Desktop")
filesys.CreateFolder(target & "\Programs")
filesys.CreateFolder(target & "\bin")
END IF
Im certainly no pro at VBS, but this code works when I open it in Windows Explorer. But when i try attaching it to the installer I get the same error message as above
set WshShell = CreateObject("WScript.Shell")
set filesys = CreateObject("Scripting.FileSystemObject")
But what this script does (same folder structure and shortcuts) can be done very easy in the "Files and Folders" page of AI. Shortcuts, "Property Based" or "Regular" folders can be created.
as_crew isnt the user that will be installing the package, so I cant simply put it all in "My Documents" in Files/Folders. Is there a way to be able to put it in as_crew's documents? Had a quick look at property based stuff but didnt really understand it.
FOLLOW US
Get the latest news in Application Packaging