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.
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.
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. - DaithiGFeb 01, 2021Iron Contributor
Thanks Ru
I tried something like that but it didn't seem to work. Might be the actual program. I'll play around with it.
- RuFeb 01, 2021MVPNo worries. Always here if you want to bounce some ideas. I had to use the C:\Windows path I mentioned once (think it was Rapid7) because it just refused to take the relative one in its parameters.
Like you said, you could just also package in a script to the IntuneWin file and use that as the install command.