I have created a AutoCAD Map 3D deployment and am now trying to create a .bat file that launches the shortcut.lnk file in order to kickoff the install. From my understanding, the .lnk should run all the parameters to include the .ini files. The examples below partially work in that they acknowledge the path and launch the .lnk. However, halfway through the install the launch just stops (no error messages or anything). I have to manually go to the .lnk location and double-click the .lnk order for the install to run all the way through without stopping. The script runs with admin privleges so I don't know what the issue could be.
I have tried:
call "C:\Windows\tmp\apps\autocadmap3d2015.lnk"
And I have also tried:
start C:\Windows\tmp\apps\autocadmap3d2015.lnk
Have you tried to send a start to the UNC path shortcut? Did you create your deployment correctly?
Yes I have tried the UNC path shortcut. My deployment is created correctly because without the script, it runs all the way through and installs it onto the PC like it should.
Then try calling the shortcut with RunDLL:
rundll32 shell32.dll,ShellExec_RunDLL "C:\Windows\tmp\apps\autocadmap3d2015.lnk"
rundll32 shell32.dll,ShellExec_RunDLL "C:\Windows\tmp\apps\autocadmap3d2015.lnk"
The pathing has to be absolute, as relative pathing no longer works. I tried this and was able to call shortcuts from the command prompt. Should work for you too.
I ran the script you suggested. The install began and then quit same as before. It manages to install three components before quitting: Exchange app manager, AutoCAD reporting tool, AutoCAD BIM 360. Once BIM 360 is installed it then stops.