VBallantyne Posted December 7, 2023 Posted December 7, 2023 Morning/Afternoon all, So what should have been a straight forward MSI deployment within Intune Endpoint Manager has turned into a nightmare. The MSI deploys fine with the Msiexec command line from a admin command prompt during testing, but when uploaded to Intune it creates a blank file in the installation direction and fails to install via Company Portal. msiexec /i "mixcraft10.msi" INSTALLDIR="C:\PROGRAM FILES (x86)\MixCraft10" install_loops="1" /quiet You can then not delete the file. Further attempts to install the app fail because the blank file is the same name as the required installation folder so further msi installation attempts fail because a file or folder of the same name exists. Anyone else had this behaviour? How do people troubleshoot issues in Intune, where do they look for logs etc as you can look at the app deployment within Intune and often it just says Failed with error code that has no further details?
snagrat Posted December 7, 2023 Posted December 7, 2023 Do you need the InstallDir bit in the command line? It clear it is referencing that and thinking it is a file and not a path. Does it not by default install to Program Files?
snagrat Posted December 7, 2023 Posted December 7, 2023 I would also look at creating it as an Intunewin installer for better log gathering 1
VBallantyne Posted December 8, 2023 Author Posted December 8, 2023 In the example with INSTALLDIR was because by default it was installing to c:\program files\ but since that now had this blank file called MixCraft 10 I used the INSTALLDIR to try a different location to see if it was a problem with permissions in Program Files rather than Program Files (x86)
VBallantyne Posted December 8, 2023 Author Posted December 8, 2023 What do you mean by IntuneWin Installer. The MSI was already wrapped as a .Intune file via IntuneWinAppUtil.exe. Is that what you were referring too?
snagrat Posted December 8, 2023 Posted December 8, 2023 What do you mean by IntuneWin Installer. The MSI was already wrapped as a .Intune file via IntuneWinAppUtil.exe. Is that what you were referring too? Yes I was. I thought you were just replying the straight msi
cheekycharly Posted March 11, 2024 Posted March 11, 2024 Did you ever manage to get Mixcraft to push out via Intune? I was wondering how it would install with the product key automatically.
VBallantyne Posted March 11, 2024 Author Posted March 11, 2024 (edited) Yes I did, I ended up making the install command more basic and I had previously had included INSTALL_LOOPS. Once I went back to just /qn it deployed. To setup student mode though, I still ended up deploying a separate startmenu batch file that checks for a temp file. If the temp file does exist it run once to enable student mode. Install.ps1 to copy the batch file. # Copy runonce.bat to the target directory Copy-Item -Path ".\runonce.bat" -Destination "C:\Program Files\Mixcraft10_0" # Wait for the installer to finish Start-Sleep -Seconds 30 # Create a new shortcut $shell = New-Object -ComObject WScript.Shell $shortcut = $shell.CreateShortcut("$env:ALLUSERSPROFILE\Microsoft\Windows\Start Menu\Programs\Acoustica Mixcraft 10 Recording Studio\Mixcraft.lnk") $shortcut.TargetPath = "C:\Program Files\Mixcraft10_0\runonce.bat" $shortcut.Save() Batch file: @echo offsetlocalset "flagFile=%TEMP%\MixcraftInstalledv10_0.flag"if not exist "%flagFile%" ( "C:\Program Files\MixCraft10_0\mixcraft10.exe" /school_install /user "{username}" /pass "{password}" /auto_install echo Installed > "%flagFile%") else ( "C:\Program Files\MixCraft10_0\mixcraft10.exe") Edited March 12, 2024 by Domino
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now