10 Replies Latest reply on Aug 12, 2010 3:30 PM by FGamer

    Removing Real VNC via .bat

    Rookie

      Hello all -

       

      Could  you help me figure out how to remove the Real VNC via command line using batch file?

       

      I figured out the command line to do it: %PROGRAMFILES%\RealVNC\VNC4\unins000.exe /VERYSILENT

       

      But I'm not able to deploy it using LD.

       

      Have you done it before? How can I do it?

       

      Thank you

        • 1. Re: Removing Real VNC via .bat
          Apprentice

          Hello,

          With a .bat file, a CMD window appear exept if you use Hidedos.

           

          It's easier to realise an AutoIT Script with the command line below and compile the script to obtain an .exe file.

          Runwait c:\PROGRAMFILES\RealVNC\VNC4\unins000.exe /VERYSILENT

           

           

          Regards.

           

          Pleix


          • 2. Re: Removing Real VNC via .bat
            Bradley_M Apprentice

            I would think that you would be able to type the following in notepad and save it as a batch:

             

            @echo off

            %PROGRAMFILES%\RealVNC\VNC4\unins000.exe /VERYSILENT

             

             

             

             

            It should just be as simple as pushing that batch out.  Unless I am missing something.

            • 3. Re: Removing Real VNC via .bat
              Rookie

              Thank you for your help.

               

              The batch file has been created, but when I push it to the client I'm getting this error:


              Downloading file http://10.184.1.6/packages/VNC_unistall.bat (7MDJBFuCltuWXalVX+g5Lw==, 2)
              Downloading file 1 of 1 from 'http://10.184.1.6/packages/VNC_unistall.bat'
              Batch file Client Thread
              PackagePath:     [http://10.184.1.6/packages/VNC_unistall.bat]
              Installation result 8DB50001
              processing of package is complete, result -1917517823 (0x8db50001 - code 1)File (http://10.184.1.6/packages/VNC_unistall.bat) is not in cache
              Performing TCP connection with a timeout of -1 milliseconds
              processing of package is complete, result -1918091231 (0x8dac4021 - code 16417)

               

              Do you have any idea?

               

              Thank you.

              • 4. Re: Removing Real VNC via .bat
                Apprentice

                Can you see if the batch file is present on the client computer (c:\Program Files\landesk\ldclient\sdmcache)

                Try to change the method for "run from source" to see if the error continue.

                 

                You can also verify the command line in the registry:

                HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall and then check the SubKey to find the Subkey wich concerne the software.

                After, see the value of the key UninstallString to see the command for uninstall the software.

                 

                Regards.

                 

                Pleix

                • 5. Re: Removing Real VNC via .bat
                  Rookie

                  Hi

                  Can you see if the batch file is present on the client computer (c:\Program Files\landesk\ldclient\sdmcache)

                  Try to change the method for "run from source" to see if the error continue.

                   

                  The file is present on c:\Program Files\landesk\ldclient\sdmcache\packages.

                   

                  How do I change the method?

                   

                  Take a look at this helpful message (hehehe)

                   

                  Processing package : New package
                  Wed, 11 Aug 2010 18:31:02 File (http://10.184.1.6/packages/VNC_unistall.bat) is cached locally
                  Wed, 11 Aug 2010 18:31:02 processing of package is complete, result -1918091231 (0x8dac4021 - code 16417)

                   

                  Any Idea?

                  • 6. Re: Removing Real VNC via .bat
                    Apprentice

                    I don't remember exactly how create a new delivery method "run from source". I'll tell you tomorrow.

                     

                    If you execute the batch file manually on the client computer, have you the same error?

                     

                    Try to remplace the command line %PROGRAMFILES%\RealVNC\VNC4\unins000.exe /VERYSILENT by

                    "c:\Program Files\RealVNC\VNC4\unins000.exe" /VERYSILENT

                     

                    Don't forget the quote, else you should have an error.

                     


                    • 7. Re: Removing Real VNC via .bat
                      Apprentice

                      Hi,

                      To create à Method "Run From Source":

                      - Go to Tools Menu\Distribution\Delivery Method

                      - In Public Delivery Method, select Push

                      - In the Right Panel, right clic, and create new delivery method

                      - In the menu Network Utilisation, select "Run from source to deploy the files"

                      - Check the other parameters according to your need

                       

                      Regards.

                       

                      Pleix

                      1 of 1 people found this helpful
                      • 8. Re: Removing Real VNC via .bat
                        Apprentice

                        Hi, you could use the line with %programfiles%

                        this is much bettern than using static paths BUT use always " arround your path+file "%programfiles%\yourapp\app.exe" otherwise it will fail.

                        to test and see you error please add after the uninstall command

                        echo %errorlevel%

                        pause

                         

                         

                        ^^ and start the cmd under admin user by hand. you will see the errorleve and can check in the internet.

                        if you just got a errorlevel you like to ignore you can use

                         

                        if "%errorlevel"=="1" exit /b 0

                         

                        LANDesk chceking the errorlevel. if errorlevel is != 0 the package fails

                         

                        Have fun,

                        Butti

                        • 9. Re: Removing Real VNC via .bat
                          Rookie

                          Pleix - no luck with the option run from source: I got the result: Run from source is only available for UNC paths, this package is not hosted on a UNC path. It is happening because I'm using http. Details below:

                          Processing package : New package
                          Thu, 12 Aug 2010 18:07:49 File (http://10.184.1.6/packages/VNC_unistall.bat) is cached locally
                          Thu, 12 Aug 2010 18:07:49 processing of package is complete, result -1918091231 (0x8dac4021 - code 16417)

                           

                          On the normal process the result that I'm getting is: Hash of file in cache did not match hash received on command line (http://community.landesk.com/support/docs/DOC-11043) I got this document but I'm no sure how to do that. Can you help?

                           

                          Butti - the batch file is working so far so good.

                           

                           

                          Thank you.

                          • 10. Re: Removing Real VNC via .bat
                            Rookie

                            Hello -

                             

                            My problem was solve and thank you for your help and attention.

                             

                            What I did? Basically this doc helpend me http://community.landesk.com/support/docs/DOC-11043, I found where to reset the hash, here is the way:

                             

                            Distribution Packages -> on the created package right click and Reset package hash. Simple isn't?

                             

                            Again, thank you so much!

                             

                            We keep in touch!