Fog snapins and windows system variables



  • 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]



  • [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


  • Senior Developer

    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.



  • Hi,

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

    Regards X23


  • Developer

    please post your log file from the client



  • [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



  • [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


  • Developer

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



  • 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


  • Senior Developer

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

    As wouldn’t systemroot return as the drive letter?


Log in to reply
 

453
Online

39209
Users

10856
Topics

103338
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.