Creating and Deploying a Kaseya Agent MSI file

Requires: GPO Creator rights in Active Directory, Access to Kaseya Agent install exe file, Install Shield Professional 2010 (can be done with evaluation version available for free download)

Creating the MSI
1) Create a directory on your local workstation and copy your kcsSetup.exe into the directory
2) In Install Shield Pro create a new Project pointed to the same directory as the kcsSetup.exe, name your project appropriately
3) Your new project should be a Basic MSI install type
4) Using the Project Assistant on the Application Information Step use the option on the left pane to Edit the default installation location, choose [TempFolder]
5) In the Application Files Step use the Add Files button to add the kcsSetup.exe file to the [TempFolder][INSTALLDIR] directory on the Destination Computer
6) In the Application Shortcuts Step delete the Shortcut created at installation
7) In the Installation Overview Step Do set all options to No
8) Click the Installation Designer tab on the top of the project
9) On the left pane under the Behavior and Logic heading select Custom Actions and Sequences
10) Right-click Custom Actions and choose Custom Action Wizard
11) Name your custom action (no spaces) I called mine Execute_KSetup
12) Set Type to Launch an executable, and location to Installed with the product
13) Set the Source to the [TempFolder] on the Destination Computer and choose the kcssetup.exe file, no target
14) Leave default for Return Processing
15) Set In-Script Execution to Immediate Execution, and Execution Scheduling to Always execute
16) In the Insert into Sequence leave it Absent from the Install UI Sequence and set the Install Execute Sequence to After InstallFinalize, no Install Execute Condition
17) Choose Finish
18) Now under Sequences expand the Installation\Execute Sequence you should see your custom action as the 2nd last step in the sequence, just before ISSelfRegisterFinalize. If you don’t delete your custom action and start again, you missed something
19) In the same Sequence list, starting at the top and working your way down right-click and remove the following sequences: RegisterProgIdInfo, RegisterMIMEInfo, WriteRegistryValues, SelfRegModules, RegisterUser, RegisterProduct, PublishFeatures, PublishProduct
20) Save your project, and choose Build. If you get any errors you will have to review your steps.
21) Test your msi file. It should behave in the following way. Unpack the kcsSetup.exe to the computer’s Temp Directory, and execute the kcsSetup.exe. It should not write any registry entries or add any msi information to the Add/Remove Programs. The Kaseya Agent will still add registry info and Add/Remove Programs, but the MSI file will not.

Deploying via GPO

1) Copy your msi (found in your Project directory under “PROJECT_ASSISTANT\SINGLE_MSI_IMAGE\DiskImages\DISK1” to the target domain’s netlogon folder, create a new Subfolder in this folder for your msi file
2) Create a new GPO to install your msi via software package, be sure to set domain computers with read rights to the GPO
3) Run a gpupdate /force on the target workstations and reboot
4) It should install during the startup before user login

Legacy Forum Name: How To Create and Deploy Kaseya via MSI GPO,
Legacy Posted By Username: Ignition_helpdesk