Re: Packaged MSI only copies contained PS1 instead of running it
Posted: Tue Feb 16, 2016 1:30 pm
So I should be able to just use the PS1 script that I wrote in the ZAP file as one method of installation, but when I try to do that it doesn't work(a command prompt flashes very briefly, no error message in it).jvierra wrote:I think you miss the point of the AP file here. It uses a PS1 to do an install of an exe or other file. You must place you file in the install folder and write a vbs or exe to install the file. You cannot wrap the install script in an exe and have it work as a ZAP installer.hamsandwich wrote:To clarify this is how my work installs things on computers:
-Get install files from vendors (exe's, MSI's, licenses, etc)
-That gets thrown in a network folder
-A script is written (usually VBS or PS1) that runs the installers as well as any other additional things we want it to do
-That script is thrown in the same network folder
-There is also a ZAP file that is created for each script that is written. That ZAP contains the FriendlyName and SetupCommand.
-For SetupCommand there are two different arguments we use:
---For VBS scripts it is: "C:\Windows\System32\cscript.exe networklocation\script.vbs"
---For Powershell it is: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe networklocation\script.ps1"
-The ZAP file then gets pushed to the control panel, install program from network area using group policy.
-The users just open up the control panel and install programs through the control panel
The alternative based on your previous post is to use an MSI and avoid ZAP files altogether except I don't know how (especially with the MSI installer tool in PSS2015) to make it run the PS1 file instead of just pushing it to a folder.