Forum Discussion

DaithiG's avatar
DaithiG
Iron Contributor
Jan 28, 2021
Solved

Win32 Configuration files

Hi all,

 

I'm able to package and rollout a MSI based application. It's quite neat.

 

However, if I want to add a config file e.g. the installer command in Intune would be something like "

 

"msiexec "program.msi" config = "config.txt" "

 

Intune seems to either ignore the "config" part or perhaps tries to call it but can't reference the file. Is it possible in Intune to use a config file like this?

 

I know I could do this using a CMD or Powershell script.

  • Ru's avatar
    Ru
    Feb 01, 2021

    HeyDaithiG 

     

    Say for example I'm installing the MSI called install.msi and in a folder called 'files' I have config.txt. My install command might look something like this:

     

    msiexec /i install.msi /q CONFIG="files\config.txt"

     

    When the program is installed, it's executed from C:\Windows\IMECache\<ID>, so you could potentially use this path too if a relative one isn't working.

6 Replies

  • Totally possible. When running IntuneWinAppUtil, make sure you package Config.txt along with the MSI, then in your command for installation specify the config file using a relative path.
    • DaithiG's avatar
      DaithiG
      Iron Contributor

      Thanks Ru . I can use "%~dp0" as a relative path for a batch file, but can't figure out how to use a relative path for the MSI command without using a batch file. I was trying to figure out if Intune needs a specific relative path command.

      • Ru's avatar
        Ru
        MVP

        HeyDaithiG 

         

        Say for example I'm installing the MSI called install.msi and in a folder called 'files' I have config.txt. My install command might look something like this:

         

        msiexec /i install.msi /q CONFIG="files\config.txt"

         

        When the program is installed, it's executed from C:\Windows\IMECache\<ID>, so you could potentially use this path too if a relative one isn't working.

Resources