Forum Discussion
Magger777
Feb 06, 2023Copper Contributor
Robocopy batch to deploy files from a network drive via Win32App
Hello everyone, I was wondering if it is possible to use robocopy in a batch to deploy files from a network drive to the computer. After that I want to install the deployed files and after insta...
- Feb 07, 2023You can copy all the files to a folder including subfolder and use a install.cmd containing the install command for installation, you should also have a uninstall one
Magger777
Feb 07, 2023Copper Contributor
I don't know if I'm getting this right.
The issue is that the MSI needs additional files to complete the installation.
That's why I tried it this way.
Is there a way build the files into the Win32 Package?
I tested to set this app to USER just to see if it would at least copy the files but it gave me a "Not Applicable Status"
Feb 07, 2023
You can copy all the files to a folder including subfolder and use a install.cmd containing the install command for installation, you should also have a uninstall one
- Magger777Feb 07, 2023Copper Contributor
By that you mean:
Create a .cmd with the install command and placing the in the folder.
Create a .intunewin package of that folder.
Create a Win32app and set the installation command to install.cmd?EDIT: Yes it worked! I guess you meant this. I didn't know you could pack files this way. Thanks a lot!
- JMorto950Jun 15, 2023Copper Contributor
Magger777 Can you post exactly what you did and the contents of your install file?
- Magger777Jun 26, 2023Copper Contributor1. Create a folder containing the files you want to deploy.
2. Create install.cmd with the copy command and place it into the same folder
2.1. Example:
copy "Normal.dot" "C:\Users\%username%\APPDATA\Roaming\Microsoft\Templates"
3. Use the IntuneWinAppUtil to create a X.intunewin file
3.1. https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool
4. Deploy through EndpointManager as install command use the install.cmd
I hope this helps
- Feb 07, 2023No problem, makes it a lot easier 😅