6 Replies Latest reply on Mar 8, 2016 8:24 AM by MTheis

    Netinstall ignoring User Parts under Windows 10

    RZimmer Rookie

      I am currently experiencing a strange behaviour of the NetInstaller under Windows 10.

       

      Whenever there are script parts which have been flag as "user context only", the Netinstaller is ignoring them while executing rest of the

      script. Event when running through software shop it is the same.

      Only by executing niinst32 /ai to run the AutoInstaller the skipped user parts are being installed.

       

      Under Windows 8.1 I have never experienced this issue.

       

      Here my example script:

      and a log sample:

      11:23:43.602 2    -> KillProcess('ciscojabber.exe',kpKillChildrenToo+kpByFileName+kpKillAll)/TS
      11:23:43.609 2     xniTools: The Process with PID 4120 was successfull terminated.
      11:23:43.610 2     xniTools: The Process with PID 6604 was successfull terminated.

       

      11:23:43.611 1    Evaluating condition "Exist('_APPDATA_\Cisco\Unified Communications\Jabber\CSF\Config\jabber-config-user.xml')"
      11:23:43.612 2    Condition FALSE  -> skipping IF part
      11:23:43.612 2    Skipping command : ModifyOemEx
      11:23:43.613 2    Skipping command : ModifyOemEx
      11:23:43.614 2    Skipping command : Execute
      11:23:43.614 2    Skipping command : ExitProcEx

       

      11:23:43.615 2    -> Copy('C:\Program Files (x86)\Common Files\enteo\RepositoryCache\110554\rev\6\extern$\jabber-config-user.xml','C:\Users\enteo.runtime\AppData\Roaming\Cisco\Unified Communications\Jabber\CSF\Config\jabber-config-user.xml')/U/TU
      11:23:43.616 1     Skipping user-cmd.
      11:23:43.617 1     RegValue 'ProgramFilesDir' resolved as 'C:\Program Files (x86)'

       

      11:23:43.617 2    -> Execute('C:\Program Files (x86)\Cisco Systems\Cisco Jabber\CiscoJabber.exe')/TU
      11:23:43.618 1     Skipping user-cmd.
      11:23:43.622 2    -> ExitProcEx(Done,'Pickup Funktion deaktiviert')
      11:23:43.628 2    xniFPS: '{8D6E661D-68F5-4851-A089-D15BAEB6257A}' is installed

       

      Anyone else experienced that issue?

       

      Many thanks.

      Ray

        • 1. Re: Netinstall ignoring User Parts under Windows 10
          markuszierer Apprentice

          Hi Raimund,

           

          from which Log is the exctract? From a NiSRV32 log?

           

          For me it looks like a Service Installer run, because the IF Condition is evaluated always and when the service installer runs, the Variable %Appdata% is not available (Not running in a user context). That's why the condition falls to FALSE then. This would explain also the behaviour with skipping the user parts.

           

          IF it is a Service Run, then the behaviour is correct. Because you already seen the script working when executing niinst32 /ai (Which forces an AutoInstaller run), i would say the Netinstall Agent is not running when a user is logged in. Please check if the niagnt32.exe is running when a user is signed in.

          • 2. Re: Netinstall ignoring User Parts under Windows 10
            RZimmer Rookie

            Hi Markus,

             

            the script is being executed while a user is signed in. I even tried execution from software shop.

             

            But it seems your hint with the niagent32.exe was right. It is indeed not running on either of my machines which have been set up with Windows 10.

             

            In my Windows 10 deployments I have forgotten a small package which sets a regkey in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] for the niagent32.exe.

             

            Thanks for your help. That did the trick.

            • 3. Re: Netinstall ignoring User Parts under Windows 10
              MTheis Specialist

              Looks like I got a similar problem with Windows 10 x64

               

              So here is the script:

               

               

              script.PNG

               

              And this is what I found in the logs (formatted the "skipping part" in bold, italic and red):

               

              07:12:38.182 2---->Starting installation of "App TVOED Kommentar"
              07:12:38.182 0NIInst32.exe: Update installer state
              07:12:38.182 0NIInst32.exe: Successfully updated installer state...
              NIInst32.exe: Update installer state
              07:12:38.182 0NIInst32.exe: Successfully updated installer state...
              07:12:38.208 0NIInst32.exe: Successfully updated installer state...
              07:12:38.209 0NIInst32.exe: Update installer state
              07:12:38.209 0NIInst32.exe: Successfully updated installer state...

               

              07:12:38.210 2-> Set('exitcode','0')
              07:12:38.210 0NIInst32.exe: Update installer state
              07:12:38.211 0NIInst32.exe: Successfully updated installer state...
              07:12:38.211 0NIInst32.exe: Update installer state
              07:12:38.211 0NIInst32.exe: Successfully updated installer state...
              07:12:38.212 0NIInst32.exe: Update installer state
              07:12:38.212 0NIInst32.exe: Successfully updated installer state...
              07:12:38.212 0NIInst32.exe: Update installer state
              07:12:38.212 0NIInst32.exe: Successfully updated installer state...

               

              07:12:38.213 2-> Set('SetupFile','0')
              07:12:38.214 0NIInst32.exe: Update installer state
              07:12:38.214 0NIInst32.exe: Successfully updated installer state...
              07:12:38.214 0NIInst32.exe: Update installer state
              07:12:38.215 0NIInst32.exe: Successfully updated installer state...

               

              07:12:38.215 2-> Set('SetupParameter','0')
              07:12:38.216 0NIInst32.exe: Update installer state
              07:12:38.216 0NIInst32.exe: Successfully updated installer state...
              07:12:38.221 0NIInst32.exe: Update installer state
              07:12:38.222 0NIInst32.exe: Successfully updated installer state...

               

              07:12:38.222 2-> Set('DisplayVersionValue','0')
              07:12:38.223 0NIInst32.exe: Update installer state
              07:12:38.223 0NIInst32.exe: Successfully updated installer state...
              07:12:38.224 0NIInst32.exe: Update installer state
              07:12:38.224 0NIInst32.exe: Successfully updated installer state...

               

              07:12:38.225 2-> Set('RegKey','0')
              07:12:38.225 0NIInst32.exe: Update installer state
              07:12:38.226 0NIInst32.exe: Successfully updated installer state...
              07:12:38.258 0NIInst32.exe: Update installer state
              07:12:38.259 0NIInst32.exe: Successfully updated installer state...
              07:12:38.259 2 Skipping command : CreateLink
              07:12:38.259 0NIInst32.exe: Update installer state
              07:12:38.260 0NIInst32.exe: Successfully updated installer state...
              07:12:38.260 0NIInst32.exe: Update installer state
              07:12:38.260 0NIInst32.exe: Successfully updated installer state...
              07:12:38.261 2 Skipping command : CreateLink
              07:12:38.261 0NIInst32.exe: Update installer state
              07:12:38.261 0NIInst32.exe: Successfully updated installer state...
              07:12:38.263 0NIInst32.exe: Update installer state
              07:12:38.263 0NIInst32.exe: Successfully updated installer state...

               

              07:12:38.264 2-> : $BeginReinstallScript
              07:12:38.264 0NIInst32.exe: Update installer state
              07:12:38.264 0NIInst32.exe: Successfully updated installer state...
              07:12:38.265 0NIInst32.exe: Update installer state
              07:12:38.265 0NIInst32.exe: Successfully updated installer state...
              07:12:38.265 0NIInst32.exe: Update installer state
              07:12:38.266 0NIInst32.exe: Successfully updated installer state...
              07:12:38.266 0NIInst32.exe: Update installer state
              07:12:38.267 0NIInst32.exe: Successfully updated installer state...

               

              07:12:38.267 2-> : $BeginUninstallScript
              07:12:38.268 1xniSetup: Install part of script done -> exiting
              07:12:38.268 0ExR status report is disabled for App TVOED Kommentar
              07:12:38.269 0nilsPipe: Both current project and new project are NULL
              07:12:38.269 2xniFPS: '{80E6D999-DF9B-4073-BFC5-5CBEA7CFACDF}' is installed

               

              07:12:38.269 2---->Installation of App TVOED Kommentar complete.
              07:12:38.270 0NIInst32.exe: Update installer state
              07:12:38.270 0NIInst32.exe: Successfully updated installer state...

               

              The script is set to user only (to force running with ai) and is called by niinst32.exe /ai /login

              I can´t see the niiagnt32.exe running in the processes. But calling it via niagnt32.exe starts it only for a few seconds.

               

              Thx, Michael

              • 4. Re: Netinstall ignoring User Parts under Windows 10
                roman.orth Rookie

                Hey Michael,

                 

                it works as designed ;-)

                You configured the CreateLink command to run in service installer context which is ok because you want to modify the desktop for all users.

                But forcing the script to run in auto installer context without the agent will never create the links.

                So just make shure the agent is running and everything is fine. Check the agent log to determine its problem.

                If you do have a problem with the agent please let us discuss it in a new thread.

                 

                Kind Regards

                Roman

                1 of 1 people found this helpful
                • 5. Re: Netinstall ignoring User Parts under Windows 10
                  torsten.rywelski@nwc-services.de Rookie

                  Hello Michael,

                   

                  i think you must indent the createlink comands, you have

                  uncommented the "IF" and now the installer skips everytime the

                  commands.

                   

                  Regards

                  Torsten

                  1 of 1 people found this helpful
                  • 6. Re: Netinstall ignoring User Parts under Windows 10
                    MTheis Specialist

                    Torsten, you were right. I already found this out, too and forgot to mention it here. Thanks!