Forum Discussion
Win32 Configuration files
- 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.
- DaithiGFeb 01, 2021Iron 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.
- RuFeb 01, 2021MVP
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.
- Magnus75May 30, 2024Copper Contributor
I'm lucky I found this post 🙂
A question using: C:\Windows\IMECache\<ID>.
To my understanding (or lack of) the <ID> changes if I for example upload identical win32 package. Or can I use <ID> as a placeholder in scrips for current win32 package path? Or will I get the complete path if I use for example "Get-Location" ?
Br.