8 Replies Latest reply: Apr 25, 2012 1:19 PM by Adil Rathore RSS

    Not able to clear Application Data under User Profile

    Adil Rathore

      I need to clear %userprofile%\AppData\Local\Microsoft\DRM using either a batch file or a vbscript.

       

      Tried to run a batch file under user context through a BBCA package but it runs under userprofile of the system account.

       

      I also enabled the userenv=true but this did not help either.

        • 1. Re: Not able to clear Application Data under User Profile
          Paul Seager-Smith

          Are you running the batch file while the user is logged onto the machine? Normally, such user specific commands only work if that user is logged in. This is why the userobjs package parameter exists in order to stop packages with user dependent components being installed if the user is not logged in.

           

          Regards,

           

          Paul

          • 2. Not able to clear Application Data under User Profile
            Adil Rathore

            Yes, we are testing the package with the user logged in, as we subscribe the package manually on the workstation.

            • 3. Re: Not able to clear Application Data under User Profile
              Paul Seager-Smith

              So if you run the "set" command in the batch command and send the output to a file, what results do you get for the user environment variables?

              • 5. Re: Not able to clear Application Data under User Profile
                Adil Rathore

                Below is the output:

                 

                ALLUSERSPROFILE=C:\ProgramData
                APPDATA=C:\Windows\system32\config\systemprofile\AppData\Roaming
                APP_PATH=C:\program files\marimba\tuner
                APP_PATH_U=C:/program files/marimba/tuner
                CLASSPATH=C:\program files\marimba\tuner\lib\jre\lib\rt.jar;C:\program files\marimba\tuner\lib\jre\lib\jce.jar;C:\program files\marimba\tuner\lib\jre\lib\sunrsasign.jar;C:\program files\marimba\tuner\lib\tuner.zip;C:\program files\marimba\tuner\lib\marimba.zip;C:\program files\marimba\tuner\lib\marimbaJava.zip;C:\program files\marimba\tuner\lib\jre\lib\resources.jar;C:\program files\marimba\tuner\lib\jre\lib\charsets.jar;C:\program files\marimba\tuner\lib\jre\lib\ext\localedata.jar;C:\program files\marimba\tuner\lib\jndi.jar;C:\program files\marimba\tuner\lib\ldap.jar;C:\program files\marimba\tuner\lib\providerutil.jar;C:\program files\marimba\tuner\etc
                CommonProgramFiles=C:\Program Files\Common Files
                COMPUTERNAME=WCM-TEST18
                ComSpec=C:\Windows\system32\cmd.exe
                FP_NO_HOST_CHECK=NO
                HOME=C:\Windows
                JAVA_HOME=C:\program files\marimba\tuner\lib\jre
                LOCALAPPDATA=C:\Windows\system32\config\systemprofile\AppData\Local
                NOKIA_Tuner_HOME=C:\program files\marimba\tuner
                NUMBER_OF_PROCESSORS=1
                OS=Windows_NT
                Path=C:\program files\marimba\tuner\lib\jre\bin;C:\program files\marimba\tuner\.marimba\NOKIA_Tuner\ext;C:\program files\marimba\tuner\System;C:\program files\marimba\tuner\lib;C:\program files\marimba\tuner\..\lib;C:\program files\marimba\tuner\etc;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
                PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
                PLMVIS_61_LIBPATH=C:\Program Files\SAP\FrontEnd\SapGui
                PROCESSOR_ARCHITECTURE=x86
                PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel
                PROCESSOR_LEVEL=15
                PROCESSOR_REVISION=0403
                ProgramData=C:\ProgramData
                ProgramFiles=C:\Program Files
                PROMPT=$P$G
                PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
                PUBLIC=C:\Users\Public
                SystemDrive=C:
                SystemRoot=C:\Windows
                TEMP=C:\Windows\TEMP
                TMP=C:\Windows\TEMP
                TUNER_HOME=C:\program files\marimba\tuner
                USERDOMAIN=NOE
                USERNAME=WCM-TEST18$
                USERPROFILE=C:\Windows\system32\config\systemprofile
                windir=C:\Windows
                PHASE=2

                • 6. Re: Not able to clear Application Data under User Profile
                  Adil Rathore

                  I have done a quick test and set userenv=true in parameters.txt and then republished the channel.

                   

                  Now seems to work fine.

                  • 7. Re: Not able to clear Application Data under User Profile
                    Paul Seager-Smith

                    Yes, you can't edit the parameters in a channel.txt file in the same way that you can edit the tuner properties.txt/prefs.txt files. These are just externalised copies of the real files that are embedded in the tuner workspace itself. There is a channel called the workspace explorer floating around somewhere that lets you see the content of the current files in the workspace.

                    • 8. Re: Not able to clear Application Data under User Profile
                      Adil Rathore

                      Thanks for the reference. I will be checking this workspace explorer thingy soon.