MSI for Lifesize desktop app

Using and Customizing the Lifesize Windows (MSI) Installer

Download the configurable MSI file for Windows deployments of the new Lifesize desktop app at http://download.lifesizecloud.com/download?platform=msi.

When run, the MSI copies thelifesize_app.exe and the (embedded) settings.json files to the %PROGRAMFILES%\Lifesize Installer folder. It also inserts a "Run" key into the Windows registry that runs this installer on login.

When the user logs in next (after a reboot or logout), lifesize_app.exe runs and installs the Lifesize application into %LOCALAPPDATA%\lifesize_app. The Lifesize application itself then runs, copying the settings.json file from %PROGRAMFILES%\Lifesize Installer to the %AppData%\Lifesize [channel]\electron-settings folder before starting with those settings. The timestamp on the settings.json file is not the current date/time, which indicates that this process has completed successfully.

In order to change the default settings, an IT organization can disassemble the MSI with "dark.exe" and change the settings file that will be embedded. Alternatively, we can provide the WIX source itself, and/or the .wixobj file so that only linking/light.exe (not compiling/candle.exe) would be required.

Keep in mind that the MSI installer is just a medium to distribute the installer for the app. The app still installs to %LOCALAPPDATA% via the installer in the %PROGRAM FILES% folder, and it updates within %LOCALAPPDATA% as usual.

Example

This is one way of many to "edit" the .MSI file so it can then be distributed with custom settings across an organization. This is provided as an example/guidance for IT departments as is, as this is part of a standard and it is not specific to Lifesize.

Step
Command

Download and install WiX Toolset

https://github.com/wixtoolset/wix3/releases/download/wix311rtm/wix311.exe

Add the WiX Toolset path to the system path
set path=%path%;%WIX%\bin
Download the lifesize MSI to a specific path, for example c:\msi\Lifesize.msi
Go to folder where the MSI was downloaded
cd c:\msi
Extract cabinet content and WiX source file file from msi (use dark.exe)
dark Lifesize.msi -x .

Edit the .\File\settings.json file as intended. Make sure that you do not break the JSON format.

Process and compile WiX source file
candle -ext WixNetFxExtension -out Lifesize.wixobj Lifesize.wxs
Link, bind and create new Windows Installer (MSI) file
light -sval -ext WixNetFxExtension -out "NewLifesize.msi" "Lifesize.wixobj

At this point you will have a new Windows Installer MSI file with your custom settings, that can be distributed to the rest of the organization. You may want to sign your newly created MSI using your own certificate and signtool.exe (https://docs.microsoft.com/en-us/dotnet/framework/tools/signtool-exe).