microsoft / Microsoft-Win32-Content-Prep-Tool

A tool to wrap Win32 App and then it can be uploaded to Intune
959 stars 200 forks source link

Linux executable? #26

Open khaffner opened 4 years ago

khaffner commented 4 years ago

Any chance of getting this tool for Linux? I'd like to do the wrapping on a Linux server.

davidhaymond commented 4 years ago

I was able to successfully run the tool on a Debian server using Wine and Mono. I'm seriously thinking of creating a cloud-based web app that offers a clean GUI for easily packaging win32 apps for Intune.

davidhaymond commented 4 years ago

Unfortunately, I'll have to cancel my plans to create an Intune packager web app, as it is not allowed by the license terms (clause 4e).

khaffner commented 4 years ago

Didn't even think of wine, that's a great idea! Will check it out myself :+1:

admin-simeon commented 4 years ago

@davidhaymond @khaffner We’ve decided to open source the Intune application packaging and publishing component of our Microsoft 365 Management Suite which has the same functionality as this tool. You can find the repository here: https://github.com/simeoncloud/IntuneAppBuilder. It is written in dotnet core (3.1) and is cross platform.

g3rhard commented 1 year ago

+1 old topic, but still - it will be good thing, to create packages via this tool from Microsoft In a background I'll try to use offered app UPD: App works good (tested with one app), but still - for Windows I'll prefer tool from this repo, as it didn't require .Net.

OfficialEsco commented 1 year ago

Leaving this for future me and other time travelers :) Managed to make it run via Wine by installing .NET Framework 4.7.2 as per the Prerequisites. I'd say the easiest way is just to do it via winetricks

winetricks dotnet472

edit: I got mscoree.dll not found but after wiping the wine data and installing .NET Framework 4.8 it works

winetricks dotnet48
French-Asgeir commented 6 months ago

but after wiping the wine data and installing .NET Framework 4.8 it works

@OfficialEsco I'm trying to do the same, would you mind sharing your workflow ? I'm trying to use it with an Ubuntu 22.04 action-runner, but I can't even get it to work on WSL Ubuntu-22.04

OfficialEsco commented 6 months ago

I cannot speak for WSL or Ubuntu, but its been working for me on 2 Fedoras and 1 Arch install. I actually got a Arch VM so i can replicate all the steps as of 2024-02-16 Install Wine Install Winetricks Install Wine-mono winetricks dotnet48 (Follow the installation prompts)

git clone https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool ~/Downloads/InTuneWin
cd ~/Downloads/InTuneWin
mkdir Temptest
cp InTuneWinAppUtil.exe ./Temptest/
wine InTuneWinAppUtil.exe -c Temptest/ -s Temptest/IntuneWinAppUtil.exe -o Temptest/

Successfully created IntuneWin of IntuneWinAppUtil.exe shrug

French-Asgeir commented 6 months ago

I cannot speak for WSL or Ubuntu, but its been working for me on 2 Fedoras and 1 Arch install. I actually got a Arch VM so i can replicate all the steps as of 2024-02-16 Install Wine Install Winetricks Install Wine-mono winetricks dotnet48 (Follow the installation prompts)

git clone https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool ~/Downloads/InTuneWin
cd ~/Downloads/InTuneWin
mkdir Temptest
cp InTuneWinAppUtil.exe ./Temptest/
wine InTuneWinAppUtil.exe -c Temptest/ -s Temptest/IntuneWinAppUtil.exe -o Temptest/

Successfully created IntuneWin of IntuneWinAppUtil.exe shrug

I wasn't installing mono, it seems to work now. Thank you !