I want to add a non versioned file to an msi using a transform with Inst Ed. I know about the method using WiFilVer.vbs but searching this forum I found another script I just don't know how you are supposed to use it. I do not know VBS.


Dim FilePath : FilePath = WScript.Arguments(0)

Dim Installer : Set Installer = CreateObject("WindowsInstaller.Installer")
Dim Record : Set Record = Installer.FileHash(FilePath, 0)
Dim FileHash : FileHash = Record.StringData(1) & vbTab & Record.StringData(2) & vbTab & Record.StringData(3) & vbTab & Record.StringData(4)

WScript.Echo "FileHash: " & FileHash

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Hi Joe,
paste it in a text file with the extension .vbs.
Then remove this leftover from HTML cut and paste:
Save it.
Use it on a command line like this: yourname.vbs filetohash.xxx
That returns the hash in 4 parts.
Put the hash in a new line in the MsiFileHash table.
That's all.
Good luck.
Regards, Nick
Answered 06/15/2010 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
Hello joe,

u can try using the msifiler.exe contained in windows SDK
Answered 06/15/2010 by: mayur_mak
Senior Purple Belt

Please log in to comment
0
As you're already using InstEd:
Right-click the File table entry you want to add an MsiFileHash table entry to and select "Retrieve file details from external source path", make sure to have the source as external prior of doing this.
Answered 06/16/2010 by: AngelD
Red Belt

Please log in to comment
0
Thanks Nick, it works great. I had created the .vbs file but didn't know what to do next.

I'll have to try the method in Inst Ed next time. That sounds faster.
Answered 06/16/2010 by: joedown
Second Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity