Support Forum: Get Support for Patch My PC Products and Services

Microsoft Configuration Manager and Intune (Enterprises/Paid) => Report Publishing/Download/Hash Issues (Enterprises Using ConfigMgr and Intune) => Topic started by: chrysanthemums on January 31, 2020, 08:42:41 AM

Title: Detection methods for Applications use hardcoded paths instead of environment variables
Post by: chrysanthemums on January 31, 2020, 08:42:41 AM
Hi folks - thanks for everything. Got PmPC up and running in our environment and we are in the process of getting things going for ourselves. One item of concern that came up:

While unlikely, it's possible that Windows installations are not installed to C. Paths for Windows\Temp and CCM\Logs in the Detection methods of applications are hardcoded for an installation directory of C:\Windows\. Would it be possible to move to environment variables such as $env:WinDir, $env:temp, and $env:systemdrive for example, for greater compatibility and flexibility?

Thanks.
Title: Re: Detection methods for Applications use hardcoded paths instead of environment variables
Post by: Justin Chalfant (Patch My PC) on January 31, 2020, 09:04:01 AM
Could you add a UserVoice at ideas.patchmypc.com? I see the value here. Wildcards might work today, but I would need to check with my engineering team.

Quote from: chrysanthemums on January 31, 2020, 08:42:41 AM
Hi folks - thanks for everything. Got PmPC up and running in our environment and we are in the process of getting things going for ourselves. One item of concern that came up:

While unlikely, it's possible that Windows installations are not installed to C. Paths for Windows\Temp and CCM\Logs in the Detection methods of applications are hardcoded for an installation directory of C:\Windows\. Would it be possible to move to environment variables such as $env:WinDir, $env:temp, and $env:systemdrive for example, for greater compatibility and flexibility?

Thanks.
Title: Re: Detection methods for Applications use hardcoded paths instead of environment variables
Post by: chrysanthemums on January 31, 2020, 09:10:56 AM
Sure thing - done.

https://ideas.patchmypc.com/ideas/PATCHMYPC-I-602

Thanks!