Description: This script will split PE files into separate components, as per Windows Installer Best Practices. Usage CScript.exe {Script} {MSI} Script ‘set up log file Dim fso : Set fso = CreateObject(“Scripting.FileSystemObject”) Const ForReading = 1 Const ForWriting = 2 … Continue reading →
Description: This script will merge multiple Windows Installer transforms into one single transform. Usage: CScript.exe {Script} {MSI} {Transform 1} {Transform 2} {Transform x..} (or if transform ordering is not important, drag an MSI and multiple MSTs onto the VBS file) … Continue reading →
A script to delete a registry key and its subkeys via a Custom Action. Useful for when we want to delete junk registry which has been left behind post uninstall. Source: technet.microsoft.com Script: Option Explicit Dim intHive Dim strComputer Dim … Continue reading →
A script to delete a folder and its subfolders via a Custom Action. Useful when we want to delete files/folders which have been left behind post uninstall. Source: blogs.technet.com Script: Dim arrFolders() intSize = 0 strComputer = “.” Set objWMIService … Continue reading →
This blog entry provides an example of finding 64-bit components in an MSI database using VBScript. It follows on from the previous blog post which provided a tutorial on editing MSI files in the windows installer cache using VBScript. It … Continue reading →
This blog entry provides an example of editing MSI files in the windows installer cache using VBScript. It follows on from the previous blog post which provided a tutorial on writing to the windows installer log file from a custom … Continue reading →
This blog entry provides an example of writing to the windows installer log file from a custom action using VBScript. It follows on from the previous blog post which provided a tutorial on using SQL inside an MSI database custom … Continue reading →
This blog entry provides an example of using SQL inside an MSI database custom action with VBScript. It follows on from the previous blog post which provided a tutorial on generating transforms for an MSI database using VBScript. It forms … Continue reading →
This blog entry provides an example of generating MST transforms for an MSI database using VBScript. It follows on from the previous blog post which provided a tutorial on applying transforms to an MSI database using VBScript. It forms part … Continue reading →
This blog entry provides an example of applying MST transforms to an MSI database using VBScript. It follows on from the previous blog post which provided a tutorial on using inner joins when reading from an MSI database using VBScript. … Continue reading →