• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Remove Legacy client and replace with latest new client?

Scheduled Pinned Locked Moved Solved
FOG Problems
7
40
22.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jmeyer @Wayne Workman
    last edited by jmeyer Dec 16, 2015, 2:08 AM Dec 16, 2015, 7:38 AM

    @Wayne-Workman

    Here is the new version using robza command for removing the old client that makes.
    We reduce a bit the size of the script this way and I just realized that one IF was useless.
    I hope I didn’t miss something because I am putting it in GPO ! lol

    ::v3.1 - Thanks to Wayne Workman, Robza
    set programpath=%programfiles(x86)%
    IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles%
    IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END
    set FogServerIP=fog-server
    start /wait wmic product where "Version like '3.0.29' and name like 'FOG Service'" call uninstall /nointeractive
    start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi
    start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%"
    :END
    

    Just found a bug on my side.
    Client 0.9.9 doesn’t remove or upgrade version 0.9.7 and I end with 2 “FOG Service” in add/remove software panel.
    Removing the 0.9.7 doesn’t impact the install of the 0.9.9.
    Maybe it’s something to add to script.

    W 1 Reply Last reply Dec 16, 2015, 1:20 PM Reply Quote 1
    • W
      Wayne Workman @jmeyer
      last edited by Dec 16, 2015, 1:20 PM

      @jmeyer said:

      Client 0.9.9 doesn’t remove or upgrade version 0.9.7

      @Jbob Is that a good thing?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      J 2 Replies Last reply Dec 16, 2015, 4:43 PM Reply Quote 0
      • J
        jmeyer @Wayne Workman
        last edited by Dec 16, 2015, 4:43 PM

        @Wayne-Workman https://forums.fogproject.org/topic/6353/upgrade-client-from-0-9-7-to-0-9-9/3
        I don’t know yet how it happened I don’t have this on every host.
        Maybe I am just unlucky. lol

        1 Reply Last reply Reply Quote 0
        • J
          jmeyer @Wayne Workman
          last edited by jmeyer Dec 18, 2015, 4:17 AM Dec 18, 2015, 8:17 AM

          @Wayne-Workman Upgrading to 0.9.7 was a very bad idea ! lol
          https://forums.fogproject.org/topic/6368/client-updater-loop

          Now i need to review the script to remove 0.9.7 and 0.9.9 is both are installed…
          Any idea how to do this ?

          I temporary did this since i have no other choice :

          ::v3.2 - Thanks to Wayne Workman, Robza
          start /wait wmic product where "Version like '0.9.7' and name like 'FOG Service'" call uninstall /nointeractive
          start /wait wmic product where "Version like '0.9.9' and name like 'FOG Service'" call uninstall /nointeractive
          set programpath=%programfiles(x86)%
          IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles%
          IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END
          set FogServerIP=fog-server
          start /wait wmic product where "Version like '3.0.29' and name like 'FOG Service'" call uninstall /nointeractive
          start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi
          start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%"
          :END
          
          T 1 Reply Last reply Dec 18, 2015, 10:27 AM Reply Quote 1
          • T
            Tom Elliott @jmeyer
            last edited by Dec 18, 2015, 10:27 AM

            @jmeyer I think the best bet would be to see if you can add a few checks. First you need to see if the legacy client is installed and remove it if it does exist. Second, if there is not other client installed, install A NEW client. I emphasize on the A in hopes it means installing one. Don’t scan for a version and only install the new client if there isn’t one installed. The new client will update itself so there should be no need to specify one version over another.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            J 1 Reply Last reply Dec 18, 2015, 10:48 AM Reply Quote 2
            • J
              jmeyer @Tom Elliott
              last edited by Dec 18, 2015, 10:48 AM

              @Tom-Elliott Client 0.9.7 doesn’t update itself. That’s the big problem.

              T 1 Reply Last reply Dec 18, 2015, 12:04 PM Reply Quote 0
              • T
                Tom Elliott @jmeyer
                last edited by Dec 18, 2015, 12:04 PM

                @jmeyer That is 100% untrue.

                I say this because while what you’re saying may be true in your environment, it’s not the actual case of the “big problem”.

                How do I know this?

                I have tested this and so has @jbob.

                We’ve installed 0.9.7 on a system, and then watched as it miraculously updated to 0.9.9. (Miraculously being that we didn’t do anything other than watch and Client 0.9.7 did update itself).

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                J 1 Reply Last reply Dec 18, 2015, 1:06 PM Reply Quote 0
                • J
                  jmeyer @Tom Elliott
                  last edited by Dec 18, 2015, 1:06 PM

                  @Tom-Elliott How detect that 0.9.9 is seen as 0.9.7 ?
                  I need help for the code… I am stuck.

                  W 1 Reply Last reply Dec 18, 2015, 2:22 PM Reply Quote 0
                  • W
                    Wayne Workman @jmeyer
                    last edited by Wayne Workman Dec 18, 2015, 8:22 AM Dec 18, 2015, 2:22 PM

                    @jmeyer said:

                    How detect that 0.9.9 is seen as 0.9.7 ?

                    @jmeyer What?

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    J K 2 Replies Last reply Dec 18, 2015, 2:33 PM Reply Quote 0
                    • J
                      jmeyer @Wayne Workman
                      last edited by jmeyer Dec 18, 2015, 8:40 AM Dec 18, 2015, 2:33 PM

                      @Wayne-Workman Nevermind.

                      1 Reply Last reply Reply Quote 0
                      • K
                        Kiweegie @Wayne Workman
                        last edited by Dec 21, 2015, 10:19 PM

                        @Wayne-Workman Hi Wayne, keeping an eye on all the scripting tweaks for removing old client and installing new one however I’m still facing issue with installing new client and getting error:

                        “Failed to download CA certificate”

                        This has happened to others and in this post it stated that the new client can only be downloaded and installed in conjunction with the new development versions of FOG. Another user had issue on the development version and Tom Elliot had to remote in and edit some files to get it to work - wondering if mine needs something similar?

                        Happy to edit the files needed if I can be given some guidance on what to look for.

                        regards Kiweegie.

                        1 Reply Last reply Reply Quote 0
                        • K
                          Kiweegie @Wayne Workman
                          last edited by Dec 21, 2015, 11:19 PM

                          @Wayne-Workman Sorry Wayne ignore last re fog certificate. Issue was only on my laptop and has since been resolved.

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 2 / 2
                          2 / 2
                          • First post
                            38/40
                            Last post

                          255

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project