Deploying Custom Install 2022 to SCCM... Some more Information is needed

Deploying Custom Install 2022 to SCCM... Some more Information is needed

BroomeIT
Participant Participant
29,177 Views
46 Replies
Message 1 of 47

Deploying Custom Install 2022 to SCCM... Some more Information is needed

BroomeIT
Participant
Participant

Been really stoked about the new ability to bundle most of the 2022 AutoDesk products back into a single package. Though it seems to still be severely lacking or rage inducing to try and find more information about it.

 

Trying to get it into SCCM as an application has proved... difficult.

 

First the only information I could find was two pages one that just says to install silently comment out and uncomment these lines in the .bat file generated when you run the Custom Install bundle you create from your management site.

 

Good start

 

What about a detection method? Applications in SCCM need to have a detection method to tell when they are installed. I'd be fine if it was just layering in ALL the MSI GUID's for the major software installs. The problem is the bundle kind of obfuscates that all you get is a reference to the same installer.exe with uninstall and a xml manifest file for each piece you bundled. A simple list even a rem block under each item with its MSI GUID would go a LONG way to making this easier to package.

 

The second bigger issues is in order for An Application in SCCM to properly work it needs to WAIT to return until it's ALL done installing. Running either the Bat file OR the Installer.exe command line from the batch file promptly spawn entirely new installation processes and then promptly DIES! Which causes the SCCM client to go "guess we're done here... and failed." meanwhile the install is still rolling along.

 

I don't like to rant but it seriously like the people designing these bundling logic have NEVER touched a modern version of SCCM. News flash Packages are an ARCHAIC deployment option in SCCM (for probably a decade at this point and technically it's not SCCM its MEMCM for those of us who actually keep our environment up to date) This should be an Application period.

 

All that frustrated vitriol might be lessened if I could find an actual documented list of Installer.exe's  valid command switches, maybe there's a --wait or a --sccm I'd even take an antiquated --sms! Something ANYTHING to make this not like shooting off a shotgun in a dark room and hoping it doesn't kill someone.

So TL/DR

 

  • Installer.exe where can I can find ALL possible command line switches
  • Packaging for MEMCM - More info please, e.g. Detection Methods

Thank you

 

 
Accepted solutions (1)
29,178 Views
46 Replies
Replies (46)
Message 21 of 47

Lurifax
Enthusiast
Enthusiast

It might help to debug installation manually from Command prompt. This is a Tip how to do it:

 

Run installation with System Account

http://richardbalsley.com/a-simple-tip-to-test-software-installation-using-the-local-system-account
psexec.exe -sid cmd.exe

0 Likes
Message 22 of 47

david_lowe2
Participant
Participant
Interesting, I've managed to install Inventor Pro 2022 using the supplied .bat file and installer.exe. all seems to work fine now, took 2 attempts. Just cannot modularise the software deployment anymore. But I don't have time to look into this and shouldn't need to. Autodesk should be supplying more robust solutions.
Message 23 of 47

JeffBuckKC
Participant
Participant

All Autodesk deployments generated by the users up to and including version 2021 generated SCCM/EPCM scripts that were totally server agnostic, so when SCCM downloaded the application to a folder in C:\Windows\ccmcache everything ran from there, we also had the option for a much more granular build than we do under this new regime. In a multi-site, multi-distribution point setup (very common with SCCM) this system allowed the application to be downloaded from the local distribution point, then run on the client, thus reducing network load, particularly in a WAN environment.

 

Under this new system, where they expect us to just call the BAT file that has been downloaded with the deployment image, SCCM/EPCM will download the application to the client, then completely ignore what it has downloaded and start pulling the software in from the storage point. The storage point may be in the main data centre, but the application is required at another centre many miles away, so the WAN is carrying data that it should not have to.

 

The only way of reducing this network load is to have a storage point at each site (this could be a folder on your distribution point), create a separate deployment image for each site, then create a separate SCCM application for each site and only deploy them to the appropriate collections. However, the clients are still having to download the dataset twice, so it is still putting extra load on the local LAN.

 

This is very much a step backwards by Autodesk, which is not a good idea when Solidworks is steadily nibbling away at their market share, but we're probably going to have to put up with it for a number of years until they see sense...

0 Likes
Message 24 of 47

lhall.autodesk
Participant
Participant

Here is what I had to do to get the whole suite working with SCCM.

 

1. Pull out the SCCM script from the install .bat file that is included and replace the network location with the local location and put this in its own batch script. ie. 

"\\%network%\AutoCad2022\image\Installer.exe" -i deploy --offline_mode -q -o "\\%network%\AutoCad2022\image\Collection.xml" --installer_version "1.19.0.20"

  to

.\image\Installer.exe -i deploy --offline_mode -q -o .\image\SCCMCollection.xml --installer_version "1.19.0.20"

 

All of the Autodesk suite apps will accept the .\image\Installer.exe location in this batch script except for Inventor. You'll have to specify the paths so it looks like this:

%~dp0image\Installer.exe -i deploy --offline_mode -q -o %~dp0image\SCCMCollection.xml --installer_version "1.20.0.44"

 

You'll also want to do the same for the uninstall path, it will look like this(Create a different batch for uninstall):

"%network%\Mudbox2022\image\Installer.exe" -i uninstall -q --manifest "%network%\Mudbox2022\image\MBXPRO_2022_en-US\setup.xml"

to this:

.\image\Installer.exe -i uninstall -q --manifest .\image\MBXPRO_2022_en-US\setup.xml

 

2. In the image folders of each deployment, copy the Collection.xml and rename it to something else, I've renamed them to "SCCMCollection.xml". Now edit this to take out the network portions and replace it with the local paths you've set earlier above. You'll want to change both the <DeploymentImagePath> variable and the <LoggingSettings><Path> variable. Here's an example what they will look like:

 <DeploymentImagePath>.\image</DeploymentImagePath>
<LoggingSettings>
        <Logging>true</Logging>
        <Path>.\log\InventorPro2022.log</Path>
</LoggingSettings>

 

3. Repackage the dependencies that have been causing the stalling deployments. Take the Adodis-Installer.exe, ADSKLicensing, and ADSKApp(Autodesk Desktop App) from the included installers you've packaged. Keep in mind, if you've packaged the software on different days or after an update has gone out, the older software I mentioned above won't work with the newer Autodesk apps, you'll just get the same issues when the newer versions try to run.

 

You'll find these in the following locations(Or at least I did):

ADODIS-Installer.exe:
In your AutoCAD 2022 Folder
.\image\ODIS

ADSKLicensing-installer.exe:
In your AutoCAD 2022 Folder
.\image\ACD_2022_en-US\x86\Licensing

AdApplicationManager-installer.exe:
In your 3DS Max 2022 Folder
.\image\3DSMAX_2022_en-US\x86\ADSKAPP

You'll want to repackage ADODIS-Installer and AdApplicationManager-Installer with something like AdminStudio, as these both cannot run with the System context that SCCM uses to deploy applications.(This is where Autodesk has not done any testing, and it shows).

 

For the ADSKLicensing-Installer.exe, you can create an application in SCCM with the following switches:

"AdskLicensing-installer.exe" --mode unattended --unattendedmodeui none

For detection I've detected the version of the application .EXE located here(Not the best way for detection, but its all we have):

C:\Program Files (x86)\Common Files\Autodesk Shared\AdskLicensing\11.0.0.4854\AdskLicensingService\AdskLicensingService.exe

 

Add these into SCCM.

 

 

4. Because Autodesk refuses to spell out plainly what the MSI codes are for their deployments, we'll have to install the programs we want to use so we can grab the GUID of the applications.

 

Go ahead and install the 50+ GB of Autodesk Suite apps on a test machine(Takes like 3 hours) and run the following command using Powershell to grab all the MSI codes on your machine:

get-wmiobject Win32_Product | Sort-Object -Property Name |Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize

You can then use these codes for detection for their corresponding deployments.

 

5. Go ahead and add your deployments into SCCM now and use the information you've gathered earlier. For the install and uninstall paths, add in your newly created batch scripts. For detection, add in your captured MSI codes from earlier.

 

It will look something like this:

RDCMan_RrrXQGuf1C.png

RDCMan_A0ZOJorh4q.pngRDCMan_jmVljV7w0a.png

 

6. You'll want to deploy the ADODIS-Installer, ADSKAPP and ADSKLicensing first before deploying your Autodesk deployments to your machines. You can either do this using dependencies in SCCM or using the application groups or both.

 

I've used application groups and added the dependencies in the first part of the group so they will install before the rest of the deployments that require them to run.

 

Make sure to test out this using REQUIRED deployments to your test collections as this will force the deployments to be installed via SYSTEM context which is where this all started..

 

I hope this helps some of you, because I've spent the last few weeks battling with this. We shouldn't need third party packaging software to deploy these applications. Autodesk has documentation on how to install the Autodesk suite through, but I don't think they even tested it fully.

 

Message 25 of 47

JesseG93
Explorer
Explorer

@lhall.autodesk Thank you so much! This is exactly what I've been looking for! I manage software installs for a 20K+ student school district and I have always had to fight with the Autodesk installer to work in our SCCM environment. This new iteration takes the cake, though - definitely more convoluted than it needs to be. I've been saying for years that Autodesk has no idea how SCCM deploys applications, from dependency tracking and detections to the fact that everything needs to be able to install under NT_LocalSystem (SYSTEM)....it certainly shows. Autodesk please take note - this is nuts. Nobody uses Packages anymore!

Editing to add - why does just Inventor need to have the explicit current working directory specified? I fought with this myself for about a week before I tried changing the .\ to %~dp0 just for giggles - lo and behold, that was it. It's mental how these little things that Autodesk overlooks makes our job as software admins that much more difficult. Wastes our time and our client's/user's time.

Message 26 of 47

lhall.autodesk
Participant
Participant
@Anonymous I'm in the exact same boat as you, deploy to our CAD labs in the schools each year. Finally got the hang of deployments last year with their old system, but for some reason they decide to change it up on us. They definitely did not test this thoroughly at all!

I've no idea why Inventor needs the %~dp0. When I found that out I kinda chuckled to myself.

Good luck in the new year fellow K12Sysadmin!
0 Likes
Message 27 of 47

Anonymous
Not applicable

Hi,

 

Just wondering if anybody who has gotten the Autodesk apps to install via SCCM during OSD, have managed to get Revit 2022 and Autodesk Electrical 2022 to install? I've managed to get all other 2022 apps to install, but these two refuse to install. I added a pause to the test task sequence, so that I could manually run the installer from cache. I also edited the batch file so that the installer would be visible on-screen as a test also. This throws back the most pathetic, useless error message ever - "A software problem has caused Autodesk Installer to close unexpectedly." Extremely useful information there that will get me to the root cause of the problem... Apologies, that was my sarcasm coming out again.

 

Autodesk - I've been trying to resolve this problem for three weeks now. I manage an estate of over 5000 devices; I do not have the time to waste on trying to botch deployments because you can't do your own testing. SCCM is one of the biggest management tools out there, but Autodesk have clearly ignored that fact and ignored the fact that the majority of their education/enterprise customers probably use SCCM. We aren't all home users, with one computer where we do next, next, finish.

 

Regards,

Richard

0 Likes
Message 28 of 47

npruess
Participant
Participant

I ran into the AdODIS-installer.exe hanging issue as well. I found the program was able to install with no user logged in if I checked the box in the deployment type that says "run installation and uninstallation as 32-bit processes on 64-bit clients"

Message 29 of 47

tduncan2
Explorer
Explorer

I'm trying to get this custom installer working with Intune and i'm having all sorts of problems with the sub programs crashing and the installer wont finish running. I installed a license server in the cloud but none of this is working properly. Has anyone done this with intune sucessfully with a cloud based license server that sits on the edge? The reason we did this is because we bought like 2000 laptops that can run autocad for our secondary students and we want them to be able to use the software both at home and at school. 

0 Likes
Message 30 of 47

cogc-autodesk
Explorer
Explorer

-

0 Likes
Message 31 of 47

Anonymous
Not applicable
I actually managed to resolve the problem's that we were having at our college with Autodesk and SCCM. Autodesk like always, don't want to know about technical faults with their products so I ended up creating my own workaround. Using a scripting toolkit called Autoit, I created a script which runs the Autodesk installers under the context of another user account, a temporary local admin account which is created before and then removed after the install has completed. This has allowed me to resolve the problem in regards to deploying via SCCM, maybe it would be the answer for Intune too. We aren't currently deploying applications through Intune, so I couldn't test this.



I'm now having great fun with Adobe CC - I really just think these software developers just don't really bother testing any more.
Message 32 of 47

tduncan2
Explorer
Explorer
Sadly AutoIt is seen as a threat by our defender ATP system so i'm looking
for something maybe via powershell?
0 Likes
Message 33 of 47

Anonymous
Not applicable

Autodesk needs to pick this up for their documentation, or create a pinned post in the Installation... forum for others.

 

Thanks for helping us out. I'm using PSADT to get this into Intune as well.

0 Likes
Message 34 of 47

jgoldsmithZXXUY
Participant
Participant
What do you have as the detection setting for sccm it seems like the instant it sees autocad 2022 it succeeds the SCCM and kills PS Script causing deployment to fail.
0 Likes
Message 35 of 47

sdoughtySKQW2
Explorer
Explorer

We have seperate applications in SCCM for each autodesk product.  The actual detection is ACAD.exe GreaterEquals 30.1.74.0.

0 Likes
Message 36 of 47

npruess
Participant
Participant

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{28B89EEF-5101-0000-0102-CF3F3A09B77D}

AND

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{28B89EEF-5101-0409-2102-CF3F3A09B77D}

 

The first key checking the version and the second key just checking that it's there. I think I added the second key to deal with the exact issue you're having.

0 Likes
Message 37 of 47

jgoldsmithZXXUY
Participant
Participant

2021-09-09T10:25:42.072 [Deployment: 5892, single] [LCC3513 INFO] Deployment started...
2021-09-09T10:25:49.351 [Deployment: 5892, single] [LCC3513 INFO] Installing: Autodesk Licensing Installer 1.0
2021-09-09T10:25:49.352 [Deployment: 5892, single] [LCC3513 INFO] Installing: ODIS Installer
2021-09-09T10:25:49.353 [Deployment: 5892, single] [LCC3513 INFO] Installing: ACA & MEP 2022 Object Enabler
2021-09-09T10:25:49.356 [Deployment: 5892, single] [LCC3513 INFO] Installing: Microsoft ASP.NET Core 3.1.10 Shared Framework
2021-09-09T10:25:49.358 [Deployment: 5892, single] [LCC3513 INFO] Installing: Microsoft .NET Core Runtime 3.1.10
2021-09-09T10:25:49.360 [Deployment: 5892, single] [LCC3513 INFO] Installing: Microsoft DirectX for Windows
2021-09-09T10:25:49.361 [Deployment: 5892, single] [LCC3513 INFO] Installing: Autodesk Save to Web and Mobile
2021-09-09T10:26:37.673 [Deployment: 5892, single] [LCC3513 ERROR] 2: The system cannot find the file specified.
2021-09-09T10:26:39.313 [Deployment: 5892, single] [LCC3513 ERROR] {88BB4C6B-3028-3BE8-904D-9197123C6791} : 2
2021-09-09T10:26:39.314 [Deployment: 5892, single] [LCC3513 ERROR] Deployment failed!
2021-09-09T10:26:46.560 [Deployment: 5892, single] [LCC3513 INFO] Deployment exits

Here is what I am getting now any thoughts on this?

If i run the command on the system vs using SCCM it succeeds 

 

0 Likes
Message 38 of 47

atle.hendriks
Explorer
Explorer

What did to you change in the MSI file to make it not ask for setup.exe?

I've dropped the row in MSI file that says "ADSK_ODIS_SETUP="1" OR ACAD_SECONDARY_INSTALL="1" OR PATCH", but it still asks for the setup.exe.

0 Likes
Message 39 of 47

GTVic
Advisor
Advisor

Some questions:

 

In our organization I am supposed to break down a product into MSI/MST components and script MSIEXEC each MSI individually and not run any SETUP.EXE

 

0 - Has anyone done this?

1 - What is AdODIS, why is it needed?

2 - The MST in %TEMP% appear to be all blank so where are all the MSI getting their customized values from?

 

For example acad.mst (AutoCAD core) there are no customized entries if you use ORCA to view the MSI/MST. I can view each log file and find command line parameters to MSIEXEC so that is something at least.

0 Likes
Message 40 of 47

m_latz
Advisor
Advisor

0- Yes.

1- AdODIS controls the execution of the different MSI packages, creates the transformations from the xml configuration files and also contains the logic to install a msi package or not. It also contains the logic for the uninstall.

2- You can apply more than one transformation to a msi package. Check the msi log files there you can see which transformation files and properties (passed via command line) are used during the install.

 

regards

 

Markus

0 Likes