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” snapin.png



  • @Jbob, post: 34657, member: 21733 said:

    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:

    >p.StartInfo.FileName = strRunWith;
    >```
     
    instead of
     
    

    p.StartInfo.FileName = Environment.ExpandEnvironmentVariables(strRunWith);

    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.

    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:

    p.StartInfo.FileName = strRunWith;
    

    instead of

    p.StartInfo.FileName = Environment.ExpandEnvironmentVariables(strRunWith);
    

    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:
    http://windowsitpro.com/systems-management/what-environment-variables-are-available-windows

    Regards X23


  • Developer

    please post your log file from the client



  • @Junkhacker, post: 34533, member: 21583 said:

    try ```
    %windir%\system32\msiexec.exe /i

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



  • @Tom Elliott, post: 34510, member: 7271 said:

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

    As wouldn’t systemroot return as the drive letter?

    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 ```
    %windir%\system32\msiexec.exe /i



  • 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
 

350
Online

38746
Users

10569
Topics

100052
Posts

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