Embedded prereqs for Intune win32 exe install

%3CLINGO-SUB%20id%3D%22lingo-sub-2249712%22%20slang%3D%22en-US%22%3EEmbedded%20prereqs%20for%20Intune%20win32%20exe%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249712%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20perplexed%20by%20the%20behavior%20of%20win32%20installs%20from%20Intune%20with%20regard%20to%20dependency%20programs%20and%20would%20like%20some%20clarification.%20I%20have%20a%20single%20exe%20install%20and%20used%20the%20prep%20tool%20to%20create%20an%20intunewin%20file%20and%20upload%20it%20to%20Intune.%20During%20a%20%22normal%22%20run%20of%20this%20install%2C%20the%20bootstrapper%20first%20runs%20the%20installs%20for%20various%20versions%20of%20vcredist%2C%20ODBC%20SQL%20Driver%2C%20and%20OLE%20DB%20Driver%20before%20then%20running%20the%20main%20product%20MSI%20install.%20When%20run%20on%20Windows%2C%20this%20works%20as%20expected%20with%20or%20without%20the%20UI%20(i.e.%20silent%20install%20with%20command%20line%20arguments).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20when%20run%20through%20Intune%2C%20vcredist%20shows%20up%20on%20the%20target%20desktop%2C%20but%20not%20ODBC%20or%20OLE%20drivers.%20The%20install%20is%20seen%20as%20%22successful%22%20on%20the%20desktop%20and%20management%20page%2C%20however%20it%20can't%20connect%20to%20the%20database%20for%20obvious%20reasons.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20particularly%20noteworthy%20to%20me%20is%20that%20in%20the%20logs%20on%20the%20desktop%20there%20is%20the%20following%20line%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EPROPERTY%20CHANGE%3A%20Adding%20EXE_CMD_LINE%20property.%20Its%20value%20is%20'%2Fexelang%201033%20%2Fexenoui%20%20%2Fexenoupdates%20%20%2Fnoprereqs%20%20%2Fqn%20APPDIR%3D%22C%3A%5CProgram%20Files%5C...%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EThat%20line%20continues%20on%20with%20the%20rest%20of%20the%20command%20line%20parameters.%20However%2C%20the%20%22Install%20command%22%20string%20in%20the%20admin%20center%20makes%20no%20mention%20of%20%2Fexenoupdate%20nor%20%2Fnoprereqs.%20They%20have%20been%20inserted%20in%20between%20%2Fexenoui%20and%20%2Fqn.%20Why%3F%20And%20is%20there%20a%20way%20to%20override%20this%3F%20It%20appears%20that%20this%20is%20the%20reason%20the%20included%20prereqs%20are%20not%20being%20installed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20adds%20to%20my%20confusion%20is%20that%20the%20vcredist%20files%20ARE%20installed%2C%20but%20the%20other%20two%20are%20not.%20The%20only%20difference%20I%20can%20see%20is%20that%20vcredist%20are%20also%20EXE%20files%2C%20while%20the%20two%20DB%20drivers%20are%20MSI%20installs.%20Does%20only%20one%20type%20of%20install%20honor%20the%20%2Fnoprereqs%20flag%3F%20All%20of%20these%20are%20Microsoft%20installs%20downloaded%20directly%20from%20their%20website.%20In%20the%20main%20install%20package%2C%20they%20are%20all%20defined%20in%20the%20same%20way.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20far%20MS%20support%20has%20indicated%20that%20I%20should%20be%20using%20the%20%22Dependencies%22%20section%20of%20the%20win32%20app%20in%20Intune%20admin%20center.%20But%20this%20requires%20adding%20several%20additional%20apps%20to%20the%20setup%20and%20it%20doesn't%20resolve%20the%20question%20in%20my%20mind%20of%20why%20the%20noprereqs%20flag%20is%20being%20forced%20in%20there%2C%20and%20why%20some%20prereqs%20get%20installed.%20Running%20the%20EXE%20install%20on%20any%20Windows%20system%20includes%20everything%20necessary%20to%20run%2C%20so%20from%20a%20packaging%20and%20deployment%20perspective%20it's%20annoying%20that%20the%20same%20doesn't%20work%20here%20and%20requires%20extra%20steps.%20My%20guess%20is%20that%20if%20I%20could%20override%20the%20%2Fnoprereqs%20flag%2C%20everything%20would%20go%20on%20in%20one%20step%20and%20be%20much%20easier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20or%20insight%20is%20appreciated%2C%20thank%20you.%3C%2FP%3E%3CP%3EAndrew%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2249712%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I'm perplexed by the behavior of win32 installs from Intune with regard to dependency programs and would like some clarification. I have a single exe install and used the prep tool to create an intunewin file and upload it to Intune. During a "normal" run of this install, the bootstrapper first runs the installs for various versions of vcredist, ODBC SQL Driver, and OLE DB Driver before then running the main product MSI install. When run on Windows, this works as expected with or without the UI (i.e. silent install with command line arguments).

 

However, when run through Intune, vcredist shows up on the target desktop, but not ODBC or OLE drivers. The install is seen as "successful" on the desktop and management page, however it can't connect to the database for obvious reasons. 

 

What is particularly noteworthy to me is that in the logs on the desktop there is the following line:

PROPERTY CHANGE: Adding EXE_CMD_LINE property. Its value is '/exelang 1033 /exenoui  /exenoupdates  /noprereqs  /qn APPDIR="C:\Program Files\...

That line continues on with the rest of the command line parameters. However, the "Install command" string in the admin center makes no mention of /exenoupdate nor /noprereqs. They have been inserted in between /exenoui and /qn. Why? And is there a way to override this? It appears that this is the reason the included prereqs are not being installed.

 

What adds to my confusion is that the vcredist files ARE installed, but the other two are not. The only difference I can see is that vcredist are also EXE files, while the two DB drivers are MSI installs. Does only one type of install honor the /noprereqs flag? All of these are Microsoft installs downloaded directly from their website. In the main install package, they are all defined in the same way.

 

So far MS support has indicated that I should be using the "Dependencies" section of the win32 app in Intune admin center. But this requires adding several additional apps to the setup and it doesn't resolve the question in my mind of why the noprereqs flag is being forced in there, and why some prereqs get installed. Running the EXE install on any Windows system includes everything necessary to run, so from a packaging and deployment perspective it's annoying that the same doesn't work here and requires extra steps. My guess is that if I could override the /noprereqs flag, everything would go on in one step and be much easier.

 

Any help or insight is appreciated, thank you.

Andrew

 

1 Reply
Hi,

Just wondering. But what happens when you create an interactive installation with the use of serviceui.exe? we also had the same issue/question some time ago.
We needed to push a lot of pre-requirements first before we could install the app. We ended letting the end user installing it themselves. It weren't that many users...

https://call4cloud.nl/2020/11/company-app-unchained/