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

Fog snapins and windows system variables

Scheduled Pinned Locked Moved
FOG Problems
6
10
3.5k
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.
  • R
    robza
    last edited by Jul 31, 2014, 12:34 PM

    Hello,
    I’m trying use windows system variable %systemroot% during creating snapins, adding msi file in field “Snapin Run With” [ATTACH=full]1243[/ATTACH]
    In client log file I receive error “Unable to find the specified file”
    When I set path c:\windows\system32\msiexec.exe it works fine, but sometimes system is located on different drive then c or not in windows folder.
    Any solution?
    Regards

    [url=“/_imported_xf_attachments/1/1243_snapin.png?:”]snapin.png[/url]

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jul 31, 2014, 12:53 PM

      I think you’d want to use:
      %windir%\system32\msiexec.exe

      As wouldn’t systemroot return as the drive letter?

      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

      1 Reply Last reply Reply Quote 0
      • K
        Kleber
        last edited by Jul 31, 2014, 2:16 PM

        I get the same error trying to deploy a VBScript. I wonder is the fog client is unable to determine where MSIexec is located, or in my case Cscript.exe

        1 Reply Last reply Reply Quote 0
        • J
          Junkhacker Developer
          last edited by Jul 31, 2014, 2:36 PM

          try [CODE]%windir%\system32\msiexec.exe /i[/CODE]

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

          1 Reply Last reply Reply Quote 0
          • R
            robza
            last edited by Aug 1, 2014, 5:41 AM

            [quote=“Tom Elliott, post: 34510, member: 7271”]I think you’d want to use:
            %windir%\system32\msiexec.exe

            As wouldn’t systemroot return as the drive letter?[/quote]

            Hello Tom,

            Thank you for your answer.

            I’m running Fog version 1.2.0, os Ubuntu 13.10

            Client os winxp.
            %systemdrive% return drive letter
            Variable %systemroot% and %windir% return the same value in my case c:\windows

            In snapin configuration I’ve changed to %windir% but no luck, error: Unable to find the specified file.

            Regards

            1 Reply Last reply Reply Quote 0
            • R
              robza
              last edited by Aug 1, 2014, 5:45 AM

              [quote=“Junkhacker, post: 34533, member: 21583”]try [CODE]%windir%\system32\msiexec.exe /i[/CODE][/quote]

              Hello Junkhacker,
              it did’nt solve my problem. I still receive error: “Unable to find the specified file”
              Regards

              1 Reply Last reply Reply Quote 0
              • J
                Junkhacker Developer
                last edited by Aug 2, 2014, 2:45 AM

                please post your log file from the client

                signature:
                Junkhacker
                We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                1 Reply Last reply Reply Quote 0
                • X
                  x23piracy
                  last edited by Aug 2, 2014, 1:27 PM

                  Hi,

                  %systemroot% and %windir% both should work:
                  [url]http://windowsitpro.com/systems-management/what-environment-variables-are-available-windows[/url]

                  Regards X23

                  ║▌║█║▌│║▌║▌█

                  1 Reply Last reply Reply Quote 0
                  • J
                    Joe Schmitt Senior Developer
                    last edited by Aug 2, 2014, 9:11 PM

                    Can confirm that the snapin client does [B]not[/B] expand system variables. Adding this feature to my todo list with high priority. The reason is that the snapin client uses:

                    [code]p.StartInfo.FileName = strRunWith;[/code]

                    instead of

                    [code]p.StartInfo.FileName = Environment.ExpandEnvironmentVariables(strRunWith);[/code]

                    In the mean time you may just set the “Snapin Run With” to msiexec.exe, this will automatically find the file if it has been added to the system path, which windows does by default.

                    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.

                    1 Reply Last reply Reply Quote 0
                    • R
                      robza
                      last edited by Aug 4, 2014, 6:49 AM

                      [quote=“Jbob, post: 34657, member: 21733”]Can confirm that the snapin client does [B]not[/B] expand system variables. Adding this feature to my todo list with high priority. The reason is that the snapin client uses:

                      [code]p.StartInfo.FileName = strRunWith;[/code]

                      instead of

                      [code]p.StartInfo.FileName = Environment.ExpandEnvironmentVariables(strRunWith);[/code]

                      In the mean time you may just set the “Snapin Run With” to msiexec.exe, this will automatically find the file if it has been added to the system path, which windows does by default.[/quote]

                      Simple solution - best solution.
                      Thanks for all for your interest.
                      I used just msiexec.exe in “Snapin run with” and package was smoothly installed.

                      Thanks Jbob

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        1/10
                        Last post

                      157

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project