Call VBscript from Custom Action fail
Hi people!
I'm packaging an application with Wise Package Studio 7, and after of installation I have to copy a file from the program folder to c:\, so I did a basic Vbsript :
Dim fso, f2
Set fso = CreateObject("Scripting.FileSystemObject")
Set f2 = fso.GetFile("C:\program files\IPC2009\PDOXUSRS.NET")
' Copiar el archivo al directorio c:\
f2.Copy ("C:\PDOXUSRS.NET")
I ran this vbscript from a Custom Action (Execute Inmediate tab) before InstallFinalize. When I'm installing, appears an error message 1720, in the log file, it shows "Error 1720, Line 3, Char 1 file not found". But if I run this script manually, it works well!
Does anyone knows how can I solve it??
I'm packaging an application with Wise Package Studio 7, and after of installation I have to copy a file from the program folder to c:\, so I did a basic Vbsript :
Dim fso, f2
Set fso = CreateObject("Scripting.FileSystemObject")
Set f2 = fso.GetFile("C:\program files\IPC2009\PDOXUSRS.NET")
' Copiar el archivo al directorio c:\
f2.Copy ("C:\PDOXUSRS.NET")
I ran this vbscript from a Custom Action (Execute Inmediate tab) before InstallFinalize. When I'm installing, appears an error message 1720, in the log file, it shows "Error 1720, Line 3, Char 1 file not found". But if I run this script manually, it works well!
Does anyone knows how can I solve it??
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
cmi2000
14 years ago
Posted by:
pjgeutjens
14 years ago
If the file is in your package, it would be a great deal simpler to use the DuplicateFile table.
Also if the above is the case, during the execute immediate phase your files won't be in place yet when you run your CA since they only actually get installed during Deferred execution
(that is, execute immediate before InstallFinalize)
Posted by:
cmi2000
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.