![Msi install logon script](https://kumkoniak.com/118.png)
Net use u: "\\\NSCap\Bin\Win32\X86\Software Management\Plugin" If exist "C:\Program Files\Altiris\Altiris Agent\installSMPlugin.txt" goto :end REM otherwise you should define absolute path to the MSI package REM Modify the UNC Path based on your SMP or Package Server location
![msi install logon script msi install logon script](https://www.fasttrackscript.com/Images/HomeScreen/SoftwareDeploy.png)
REM package_圆4 and package_x86.msi is the name of MSI package REM msiexec.exe /q /i where /q is quite and /i is installation REM if OS architecture x86 found we installing x86 compatible. REM you can use SET command to find all other system variablesĮcho %PROCESSOR_ARCHITECTURE% | findstr /i ".64." > nul REM Here we checking if %PROCESSOR_ARCHITECTURE% contain.
- Delete the installSMPlugin.txt if you want to re-ran the script on same off.
- This script is designed to creates a txt file in the “C:\Program Files\Altiris\Altiris Agent\” directory for reference so that it ends the execution if the script was already used in past to install some MSI plugin or solution.
- This same script can be used to install an exe file as well, the only change would be instead of “misexec.exe /q /I” use “start "" /MIN /wait x:\Installer.exe -s -a”.
- _圆4 and _x86.msi is the name of MSI package.
- Change or Modify the UNC to your respective Notification server or Package server.
- (Refer to HOWTO45142 for more details on creating task )
If want to run it as a run script task, Go to SMP Console>Manage>Jobs and Tasks, Right Click>New>Task> Create New Task>Run Script, Select type as Command Script.If you want to run it as a logon script refer to instruction in.Copy the script in the notepad and save the file with an extension.