Code Monkey home page Code Monkey logo

intune-win32-app-packaging-tool's Introduction

intune-win32-app-packaging-tool's People

Contributors

microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar stevgao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

intune-win32-app-packaging-tool's Issues

4 GB file limit ?

Trying to package around 4gb of data into an intune package.
but im getting this error
System.IO.InvalidDataException: Entries larger than 4GB are not supported in Update mode.
at System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)
at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
at Microsoft.Management.Service.IntuneWinAppUtil.ZipUtil.CreateFromDirectory(String sourceDirectoryName, String destinationArchiveFileName, CompressionOption compressionOption, Boolean includeBaseDirectory, ReportProgress reportProgress)
at Microsoft.Management.Service.IntuneWinAppUtil.ZipUtil.ZipFolder(String folder, String zipFile, AppContext context, Boolean noCompression, Boolean includeBaseDirectory)
at Microsoft.Management.Service.IntuneWinAppUtil.PackageUtil.CreatePackage(String folder, String setupFile, String outputFolder)
at Microsoft.Management.Service.IntuneWinAppUtil.Program.Main(String[] args)

Its true enough my package is 4gb, so its not because i pick up the wrong files.
I just cant get the application to make the package.
plenty of free space on the drives.

[Feature Request] Release on Microsoft Store & GUI

I've been testing out this tool with Intune Win32 preview, so far so good.
I have two feature request, and a question actually.

Feature Requests

  • Release tool on Microsoft Store. MSIX Packaging tool is there, so would make sense to have Intune Win32 App Packaging tool there too
  • A barebone GUI. The functionality and use is pretty basic, but using command line might be out of somes comfort zones.

Question

  • Is it possible to package and install a MSI with patch (MSP)? Adobe Reader DC for instance. Will try some day I got time and report back if I don't hear anything.
    • msiexec.exe /i "AcroRdrDC1500720033_nb_NO.msi" /update "AcroRdrDCUpd1900820080.msp" /quiet /norestart.

Error converting VisualStudio

This is the file that is causing the error, which includes characters like = ,

C:\IntuneAppMigrationTool\CMAppContent\ZIC-ENG-VisualStudioProfessional2017W10-15.7.27703.2042-GCC-R1\Files\Source\Microsoft.Icecap.Collection.Msi.Resources.Targeted,version=15.6.27406.0,chip=x64,language=en-US\Microsoft.Icecap.Collection.Msi.Resources.x64.msi

This is the error output from the tool:

INFO Compressing the source folder 'C:\IntuneAppMigrationTool\CMAppContent\ZIC-ENG-VisualStudioProfessional2017W10-15.7.27703.2042-GCC-R1' to 'C:\Users\xxxxx\AppData\Local\Temp\ac2760b8-bc23-43e5-aa91-5aadede59a86\IntuneWinPackage\Contents\IntunePackage.intunewin'
INFO Calculated size for folder 'C:\IntuneAppMigrationTool\CMAppContent\ZIC-ENG-VisualStudioProfessional2017W10-15.7.27703.2042-GCC-R1' is 7884285121 within 120 milliseconds
INFO Removing temporary files
INFO Removed temporary files within 248 milliseconds
ERROR File 'C:\IntuneAppMigrationTool\CMAppContent\ZIC-ENG-VisualStudioProfessional2017W10-15.7.27703.2042-GCC-R1-INT\ZIC-ENG-VisualStudioProfessional2017W10-15.7.27703.2042-GCC-R1_Install.intunewin' has failed to be generated

[============= ] 25% INFO Done!!!

ERROR System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\IntuneAppMigrationTool\CMAppContent\ZIC-ENG-VisualStudioProfessional2017W10-15.7.27703.2042-GCC-R1\Files\Source\Microsoft.Icecap.Collection.Msi.Resources.Targeted,version=15.6.27406.0,chip=x64,language=en-US\Microsoft.Icecap.Collection.Msi.Resources.x64.msi'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.Management.Service.IntuneWinAppUtil.ZipUtil.CreateEntryFromFile(ZipArchive destination, String sourceFileName, String entryName, Nullable1 compressionLevel, ReportProgress reportProgress) at Microsoft.Management.Service.IntuneWinAppUtil.ZipUtil.CreateFromDirectory(String sourceDirectoryName, String destinationArchiveFileName, Nullable1 compressionLevel, Boolean includeBaseDirectory, ReportProgress reportProgress)
at Microsoft.Management.Service.IntuneWinAppUtil.ZipUtil.ZipFolder(String folder, String zipFile, AppContext context, Boolean noCompression, Boolean includeBaseDirectory, Boolean appendFile)
at Microsoft.Management.Service.IntuneWinAppUtil.PackageUtil.CreatePackage(String folder, String setupFile, String outputFolder, String catalogFolder)
at Microsoft.Management.Service.IntuneWinAppUtil.Program.Main(String[] args)

Huge Files

Hi,

I have an issue using the tool. I have converted a 7ZIP installation package. The source file has a size of 1.4 MB, but the resulting .intunewin has a size of about 3.4GB. What happens here? What can I do?

Thanks and regards

Ralph

Error The setup file you specified can not be accessed.

Please help. I've tried every command I could think of from an Administrator command prompt. I've tried quotes but nothing seems to work. I've even tried running the app by right clicking and running as Administrator... NOTHING WORKS!

IntuneWinAppUtil.exe -c M:\Apps\Google LLC\Google Chrome\68.12.49241 -s googlechromestandaloneenterprise64.msi -o \atl1ntap04prd01.ad.here.com\sccm_sourcefiles\Apps\IntunePackages\Google68_12_49241
ERROR The setup file you specified cannot be accessed.

I've tried:
IntuneWinAppUtil.exe -c E:\IntunePackages\Source\68.12.49241 -s googlechromestandaloneenterprise64.msi -o E:\IntunePackages\Google68_12_49241

Each time I get the same error:
Error The setup file you specified can not be accessed.

The instructions seem straight forward but this annoying error keeps popping up. Any assistance on how to use this tool would be helpful.

Tool leverages Windows zip functionality that is limiting

Packaging tool fails when unzipping software that has special characters in it. You can simulate what I'm talking about by creating a folder with a language other than English, say Czech, and Send To -> Compressed folder. It will fail to compress.
Zip with special chrs

Typo in output folder prompt

If a user inputs a folder location that does not exist during the "Please specify the output folder:" step, the resulting prompt contains a typo. Folder is misspelled as "foder." Here is a screenshot:

intunewinapputil_2018-12-20_20-08-42

The example above also indicates input validation could be implemented, but this issue is only directed at the typo.

Source Code

Is there any source code for this? I've been stuck decompiling whenI have questions about the implementation.

Ideally, I'd like to get this to support netcore...but again, the only thing I've been able to do so far is to decompile, make changes and then recompile which is very tedious...

Crash If Output is Being Redirected

The tool crashes if the output is being redirected. Output of IntuneWinAppUtil -c SomeSample -s Setup.exe -o . -q > test.log:

Unhandled Exception: System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.set_CursorVisible(Boolean value)
   at Microsoft.Management.Service.IntuneWinAppUtil.Program.Main(String[] args)

This is problematic if the tool is being included in automatic (CI) systems when there is no way for the output to be captured (especially in conjunction with #7)

Installation file in subfolder

Some application files requires certain folder structure and installation file is some times located in subfolder.
This tool requires that installation file is in root of folder structure.
You can workaround this using dummy file in root folder but it would be nice to define the real installation file.

System.ArgumentOutOfRangeException when executed in Microsoft Terminal Preview or Visual Studio Code Terminal windows

PS C:_MijnData_\LocalDownloads\Adobe Distro> yc:_MijnData_\LocalDownloads\Adobe Distro\Maak-Intunewin.ps1

KEN_SelfServicePakket_Persoonlijk

System.ArgumentOutOfRangeException: De waarde moet groter zijn dan of gelijk zijn aan nul en minder zijn dan de buffergrootte van de console in die dimensie.
Parameternaam: top
Werkelijke waarde was 63.
bij System.Console.SetCursorPosition(Int32 left, Int32 top)
bij Microsoft.Management.Service.IntuneWinAppUtil.LogUtil.PrintProgress(AppContext context)
bij Microsoft.Management.Service.IntuneWinAppUtil.LogUtil.WriteLine(AppContext context, String text)
bij Microsoft.Management.Service.IntuneWinAppUtil.PackageUtil.CreatePackage(String folder, String setupFile, String outputFolder, String catalogFolder)
bij Microsoft.Management.Service.IntuneWinAppUtil.Program.Main(String[] args)

See Also microsoft/terminal#4361 and microsoft/terminal#4498

No Usable Exit Code or ErrorLevel

The tool does not emit any usable exit code:

>IntuneWinAppUtil -c asdf -s asdf -o . -q
The setup file you specified can not be accessed.
>echo %errorlevel%
0

This makes it pretty unreliable when included in automatic (CI) systems if there is no way to detect if it was sucessfull or not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.