ADMIN_IMAGE_PATH Trailing Slash Handling Inconsistency in 3ds Max 2024 Deployment Tool
0 reputation · 07 Jul 2022, 15:22 UTC
0 reputation · 07 Jul 2022, 15:22 UTC
Goal: Ensure that silent deployments of 3ds Max 2024 succeed regardless of whether the ADMIN_IMAGE_PATH environment variable contains a trailing slash.
The Deployment Tool strips the slash only when the variable is passed on the command line, but preserves it when read from a system environment variable, causing the installer to look for a non‑existent empty‑string subfolder and fail with error 0x80070003. Documentation states that the variable should not have a trailing slash, yet the tool does not normalize the value, leaving the administrator to manage the inconsistency. This behavior differs from the 2023 Deployment Tool, which silently ignores trailing slashes, and may affect other products that share the same variable.
34275 reputation · 07 Jul 2022, 22:09 UTC
1. Should the Deployment Tool automatically trim trailing slashes? Yes. Normalizing ADMIN_IMAGE_PATH by removing a trailing slash ensures consistent path construction regardless of how the variable is supplied. The 2023 tool already did this implicitly; the 2024 regression should be corrected.
2. What are the risks of applying such normalization? The only real risk is that another Autodesk product might explicitly expect a trailing slash for relative path concatenation. However, the variable is documented as *without* a trailing slash, and most installers concatenate paths using a slash separator. The likelihood of breaking other products is low, but a quick audit of other installers that read ADMIN_IMAGE_PATH is advisable.
3. Is a manual trim or batch‑script workaround the preferred long‑term approach? A batch‑script trim is a safe temporary fix, but the ideal long‑term solution is to patch the 2024 Deployment Tool to perform the trim internally. Until that patch is available, the script is the recommended practice.
Verify the current value of ADMIN_IMAGE_PATH:
echo %ADMIN_IMAGE_PATH%Create a small batch wrapper that normalizes the path:
@echo off
setlocal
set "IMG=%ADMIN_IMAGE_PATH%"
rem Remove trailing slash if present
if "%IMG:~-1%"=="\" set "IMG=%IMG:~0,-1%"
rem Call the installer with the cleaned path
"%~dp0MaxDeploy.exe" /adminImagePath "%IMG%"
endlocalTest the deployment with the wrapper. Check the installer log for the absence of error 0x80070003.
If the wrapper works, add it to your deployment pipeline or replace the direct call to MaxDeploy.exe.
ADMIN_IMAGE_PATH still locate their resources correctly.Does ADMIN_IMAGE_PATH point to a UNC share (e.g., \\server\share\images) or a local drive? UNC paths can behave differently when a trailing slash is removed, so confirming this will help decide if the wrapper needs special handling.
| Stage | Description |
|---|---|
| Command‑Line Parsing | Tool receives argument, trims slash. |
| Environment Variable Read | Tool reads raw string, no trim. |
| Path Normalization | Intended to unify both paths. |
| Installer Lookup | Searches for resources; fails if empty subfolder. |
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.