− Wait will wait for the batch file to execute first and then moves to the next instruction if any and − NoNewWindow will Start-Process C:\Temp\7zipInstaller.bat -Wait -NoNewWindow Now we need to call the batch file as shown below. We will save the above instruction inside the 7ZipInstaller.bat file. We have the installation MSI package located at the C:\temp location. In this example, we have a 7-zip MSI file and batch file we will first write the installation instructions as shown below. Let say we have one MSI file and we need to install the MSI file on the remote computers using PowerShell but that MSI file should be deployed with the Batch file and should be executed using PowerShell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |