Jump to content

Recommended Posts

Posted

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

 

mixcraft msi command.png

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.

mixcraft blank.png

 

mixcraft delete.png

 

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?

Posted

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?

Posted
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)
Posted
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

  • 3 months later...
Posted (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 by Domino

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...