| | | Junior Member
       
Group: Forum Members Last Login: 10/25/2006 3:31:08 AM Posts: 12, Visits: 37 |
| In some other posts I read about errorlevel reporting back to Deploy. It states to use the %COMSPEC% variable. Now when I use this in my script I see a CMD-box open and close while script is running. I want to hide this from users view. Is this script with all the options correct, or do I need to change things. Do I need to use %COMSPEC%?
/run %COMSPEC% /C msiexec /qn /i "Client package.msi" /Installpackage "My Own package for shortcuts.PWC"
I can also create one big PWC, but I want to use supplied MSI's where thy can be silently installed and only append with simple PWC's if possible.
That that doesn't kill me, only makes me stronger! |
| | | | 
Supreme Being
       
Group: Moderators Last Login: 2 days ago @ 2:43:01 PM Posts: 657, Visits: 797 |
| Hello, It isn't necessary to use %comspec% when running msiexec to install an MSI file. The %comspec% variable refers to the system's command processor. It is only needed when you're running one of the built-in commands, such as xcopy, set, rmdir, etc. The switch /C closes the window; without that, the DOS window would have to be manually closed. Your script should look like this: /run msiexec /qn /i "\\server\share\Client package.msi" /Installpackage "\\server\share\My Own package for shortcuts.PWC"
New Boundary Technologies Support support@newboundary.com |
| | | | Junior Member
       
Group: Forum Members Last Login: 7/18/2008 3:28:01 PM Posts: 15, Visits: 75 |
| | I know this is old, but in running msiexec as a Deploy Script is it a bad idea to use /Wait ? /RUN /WAIT msiexec /i software.msi /qn With the many instances of msiexec I am curious how deploy would know the task is really complete. Thanks, as always.
|
| | | | 
Supreme Being
       
Group: Moderators Last Login: 2 days ago @ 2:43:01 PM Posts: 657, Visits: 797 |
| The Prism client can detect the return code from a process that it launched with the /run command. However, many installations spawn other processes, and Prism has no way of tracking those. So there are cases where Prism reports completion, but the other processes that were launched may still be running.
New Boundary Technologies Support support@newboundary.com |
| |
|
|