Install and Configure Wise Package Studio (Win 7)

1. Pre-requisite: MSDE On Windows 7, Wise Package Studio can be installed in 2 ways.   First method: the client/server mode. In this case, Wise Package Studio is first installed on a computer in server mode, then clients are installed on packaging machines. This method allows to configure Wise Package Studio only once on the … Read more

Working on MSI with InstEd-It

Working on MSI or MST with InstEd It, free MSI editor built for professionals. . 1. Insted It ! InstEd is a free MSI editor built for professionals. It’s a good free alternative to Wise Package Studio or Admin Studio. Official website: http://www.instedit.com . . MSDN of Installer Database Tables Reference: http://msdn.microsoft.com/en-us/library/aa368259.aspx MSI elements (files, … Read more

Snapshot Capture with Wise

1. Pre-requisites Creating a MSI file using the Snapshot Capture feature of Wise Package Studio requires a clean machine to ensure all the components are captured (a component will not be captured if already present on the machine). To avoid pollution as much as possible, deactivate all components running in background (Defender, Windows Updates, SCCM … Read more

Call VBS From Custom Action with Wise

1. Script Creation Create the VBS script. For example : MyScript.vbs Warning: Wise Package Studio does not recognize Wscript. So the following command: Set WshShell = WScript.CreateObject(“WScript.Shell”) Must be written like this: Set WshShell = CreateObject(“WScript.Shell”) . . 2. Custom Action Creation In Windows Installer Editor Go to the MSI Script menu Select the Installation Mode: … Read more

Wait for a Process to Finish with VBScript

Sometimes the .exe process exit directly after launched. In this case, it’s necessary to wait until the process .exe not be there anymore to validate that the command is executed correctly. Here is a possibility to wait for a process to finish before continuing using VBScript. In the following example, we wait the process notepad.exe … Read more

Create Local User with VBScript

This script allows to create a local user using VBScript.   In this example: Creation of a local user (login “dam” / Password “dampwd”) Selection of the option “User cannot change password” Selection of the option “Password never expire” Selection of the option “Account deactivated” To play with local users, we use the property ComputerName … Read more

Update XML with VBScript

This script allows to update data in a XML file. In this example, the following XML file is edited: “C:\Program Files (x86)\Editor\Application\MyFile.xml” The modification will affect the following node in the XML: “//parentnode/targetnode” The new value inside the node is: “Value to add in the node” To play with XML files, the object “Microsoft.XMLDOM” must be used. … Read more

Install Packages with VBScript

This script is a template of package launcher. It gathers many functions allowing to install a package using generic VBScript functions: Check if a package is installed (MSI) using the registry Uninstall a package if installed EXE silent uninstallation Single MSI installation MSI + MST installation EXE silent installation EXE + ISS response file silent … Read more

VBScript Usual Commands

Here is a memento of several useful commands in VBScript (common declarations, check files, folders and registry, create or delete files and folders, copy files and folders).   TechNet: https://technet.microsoft.com/en-us/library/ee198844.aspx W3Schools: http://www.w3schools.com/asp/vbscript_ref_functions.asp   Date/Time, Conversion, Format, Math, Array, String… This article will be updated progressively.   1. Common Declarations Set fso = CreateObject(“scripting.FileSystemObject”) Set WshShell … Read more

Managing Active Directory with VBS

The following scripts (VBS) allows play with Active Directory. It details a way to: Create an Organizational Unit Create a Group in an Organizational Unit Rename a Group List all Groups in an Organizational Unit Create a User in an Organization Unit and assign it to a Group List all members in a Group Delete … Read more