2 Replies Latest reply: May 15, 2014 9:53 AM by D Goldman RSS

    Monarch Pro 9 Deployment Strategy

    Randy J

      We have concurrent licensing and would like to deploy Monarch Pro 9 to 200 workstations.  Has anyone performed a silent or automated install of any version of Monarch?  We also need to uninstall versions 7 and 8 and also would like to automate that.  Any ideas are appreciated.

        • Monarch Pro 9 Deployment Strategy
          Gareth Horton

          Randy,

           

          The Monarch installation program is written with Installshield 6.31.

           

          If you have already worked extensively with Installshield, then you probably know all this, but if not, and for the benefit of others, here is some lengthy information to get you started.

           

          Note that in your case, you probably only need to silently deploy the workstation component, since you have concurrent licencing.  So record the workstation installation after you have deployed the Server/Admin piece first.

           

          InstallShield recognizes the /r, /s, /f1, and /f2 switches. The installer itself is named setup.exe.

           

          To perform a silent installation, you need an InstallShield "answer file", called by default, setup.iss.

           

          Run the install (or uninstall) with the /r ("record") switch. Proceed through the dialogs and complete the installation.

           

          This will create a setup.iss file and place it in the WINDOWS folder, although you can use the /f1<filename> switch to specify a fully-qualified alternate name for the setup.iss file, which is generally preferable.

           

          Note that there must be no space between the /f1 switch and the file name. This switch works both with /r to create the file and with /s to read it.

           

          This file will include all of your responses to the InstallShield dialogs, allowing you to perform unattended installations as if you were giving the same answers again. Simply copy setup.iss to the same directory as the installer executable, or use the /f1 switch to specify the path explicitly, which is probably better, as you can give your answer files meaningful names when you record them and use them.

           

          Once you have an "answer file", run the installer with the /s ("silent") option. This will perform an unattended installation/uninstallation.

           

          The /f2<filename> switch specifies a log file. Once again, there must be no space between the switch and the file name.

           

          WARNING: Be careful what characters you use in these file names, because InstallShield silently strips certain non-alphanumerics (like hyphens.

           

          Also, when using long path and filename expressions with switches, enclose the expressions in double quotation marks. The enclosing double quotes tell the operating system that spaces within the quotation marks are not to be treated as command line delimiters.

           

           

          Note that uninstalls can be scripted in the same way, but when you create the answer file, you should also use the /uninst and /removeonly switches to simplify things.

          Obviously, the application needs to be installed on the machine in order to record an uninstallation script.

           

          For example, to create an uninstall "answer file":

          [font="courier"]setup.exe /r /f1c:adminscriptsMonarch9Uninstall.iss /uninst /removeonly[/font][/quote]If you already have a version of Monarch installed, but you want to uninstall it silently, then it would be very tedious to have to make the source media available to

          uninstall the software.  To avoid this, you need to find the path to the install files that Installshield stores on the machine and execute the setup.exe from there,

          in conjunction with your uninstall "answer file" that you have created.

           

          The main folder is located under PROGRAMFILESInstallshield Installation Information (where PROGRAMFILES is the full path to the Program Files folder on the machine)

           

          This is a hidden folder.

           

          All applications installed using Installshield are listed in this folder using a GUID as the subfolder for each application.

           

          For Monarch 9 Standalone and Network admin, the folder name is:

          [font="courier"]PROGRAMFILESInstallshield Installation Information{3E33367C-4B87-4286-9E98-EDCF2F26CBE8}[/font][/quote]For Monarch 9 Network Workstations, the folder name is:

          [font="courier"]PROGRAMFILESInstallshield Installation Information{DF48ECA4-D01E-4347-B1CE-E388FBEF286A}[/font][/quote]For Monarch 8 Standalone and Network admin, the folder name is:

           

          [font="courier"]PROGRAMFILESInstallshield Installation Information{2480B3DF-5914-4DAA-8510-DCAB3F43C0C2}[/font][/quote]For Monarch 8 Network Workstations, the folder name is:

           

          [font="courier"]PROGRAMFILESInstallshield Installation Information{CADEF173-E1CC-4BF5-8BDD-3CBF5C6D17CE}[/font][/quote]For Monarch 7 Standalone and Network admin, the folder name is:

          [font="courier"]PROGRAMFILESInstallshield Installation Information{F8773992-A5A7-4EB9-B4F8-A60698F23597}[/font][/quote]For Monarch 7 Network Workstations, the folder name is:

          [font="courier"]PROGRAMFILESInstallshield Installation Information{05C941C0-DB50-427D-BDF4-B1494D9D8205}[/font][/quote]So, for example, if you wanted to uninstall a Monarch 7 Network Workstation, and the Program Files folder of the machines is on the C drive, you would first record an answer file, called mon7wsuninstall.iss by uninstalling the product using the /f1 switch to specify an alternate setup.iss.  Then you would make this file available on the target machine.  In this case, there is a mapped z drive, which is mapped to z on all machines.

           

          The commandline to record the answer file would be:

           

          [font="courier"]"C:Program FilesInstallshield Installation Information{05C941C0-DB50-427D-BDF4-B1494D9D8205}setup.exe" /r /f1"z:adminscriptsmon7wsuninstall.iss" /uninst /removeonly[/font][/quote]The commandline to uninstall silently would be:

           

          [font="courier"]"C:Program FilesInstallshield Installation Information{05C941C0-DB50-427D-BDF4-B1494D9D8205}setup.exe" /s /f1"z:adminscriptsmon7wsuninstall.iss"[/font][/quote]Note that on newer operating systems, you can simply use the system variable %PROGRAMFILES% to specify the path to the Program Files folder.

           

          Let me know if you need clarification on any of this.

           

          Gareth

           

          Originally posted by Randy J:

          We have concurrent licensing and would like to deploy Monarch Pro 9 to 200 workstations.  Has anyone performed a silent or automated install of any version of Monarch?  We also need to uninstall versions 7 and 8 and also would like to automate that.  Any ideas are appreciated. /b[/quote]

          • Monarch Pro 9 Deployment Strategy
            D Goldman

            I have followed the instructions above to perform a silent uninstall of Monarch Pro 9.

             

            I still get the following dialog box:[/B]

            This will remove Monarch from your computer. Do you wish to proceed?

             

            Here is the command line I used to record the answer file:[/B]

            "C:\Program Files\InstallShield Installation Information\{3E33367C-4B87-4286-9E98-EDCF2F26CBE8}\Setup.exe" /r /f1c:\windows\UninstallMonarch9.iss /uninst /removeonly

             

            Here is the resulting setup.iss file:[/B]

             

            Count=0

            Count=0

            Count=0

            Count=0

             

            This is the command line I used to uninstall:[/B]

            "C:\Program Files\InstallShield Installation Information\{3E33367C-4B87-4286-9E98-EDCF2F26CBE8}\Setup.exe" /s /f1UninstallMonarch9.iss /uninst /removeonly

             

            I have also tried without the /uninst /removeonly[/B], but nothing happens at all - no dialogs boxes & it is not uninstalled.

             

            Also, created answer file without /uninst /removeonly[/B] - still get dialog box.