VbScript that copy files in MSI
Hi,
I require a vbscript which can copy files from a particular location inside the msi/ism in a proper directory.
I require a vbscript which can copy files from a particular location inside the msi/ism in a proper directory.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
rad33k
7 years ago
Can you describe your request/problem in more details? Do you installing this MSI or do you need to extract files without MSI installation?
I'm wondering why you can't install mentioned files to the right place in a standard MSI file installation way? If you need to create a copy of them, there is a DuplicateFile table.
Simple VBS code to copy files is as follows:
I'm wondering why you can't install mentioned files to the right place in a standard MSI file installation way? If you need to create a copy of them, there is a DuplicateFile table.
Simple VBS code to copy files is as follows:
Dim oFSO
Dim strSource, strDest
Set oFSO = CreateObject("Scripting.FileSystemObject")
strSource = "c:\SourceFolder\tmp.txt"
strDest = "C:\DestFolder\" 'If you do not want to change the file name you can specify the directory name only with backslash (\) at the end
If oFSO.FileExists(strSource) Then
oFSO.CopyFile strSource, strDest
End If
Comments:
-
No I want to insert files inside the MSI through scripting...Instead of copying file manually inside MSI/ISM one by one can there be a script which copy bulk of files in ISM/MSI - Viveks 7 years ago