To install SolidWorks you would need a line similar to the following one. You need to run this line after you run all the prerequisites.
msiexec.exe /i "\\InstallDrive\SW2018\64bit\SOLIDWORKS\SolidWorks.msi" INSTALLDIR=C:\Program Files\SolidWorks2018 UPGRADESWINSTALL=1 ENABLEPERFORMANCE=1 OFFICEOPTION=3 SOLIDWORKSSERIALNUMBER=XXXX XXXX XXXX XXXX XXXX XXXX MBDSERIALNUMBER=XXXX XXXX XXXX XXXX XXXX XXXX MOTIONSERIALNUMBER=XXXX XXXX XXXX XXXX XXXX XXXX SIMULATIONSERIALNUMBER=XXXX XXXX XXXX XXXX XXXX XXXX TOOLBOXFOLDER=C:\SolidWorks Data SERVERLIST=25734@LicenseServerName ADDLOCAL=CoreSOLIDWORKSTaskScheduler,PhotoView,SolidWorksDeignChecker,SolidworksUtilities,SolidWorks,CircuitWorks,ExampleFiles,FeatureWorks,HelpFiles,Manuals,Motion,RealViewGraphicsdisplay,ScanTo3D,Simulation,SolidWorksAnimator,SolidWorksCosting,SolidWorksRoutedsystems,SolidWorksToolbox,TolAnalyst,VSTA /qb
/qb at the end means quiet mode with a basic interface. That means there is a little box that comes up with a cancel button on it.
Other options would be:
- /quiet -- No user interaction
- /passive -- some form of progress bar
- /q -- quiet plus a modifier
- n -- no User interface
- n+ -- nothing except a message box at the end of install
- b -- basic
- b+ -- basic with message box
- b- -- basic with no dialog boxes
- b-! or b!- no cancel button
- r -- reduced interface
- f - full interface
You can add a /norestart, /promptrestart, or /forcerestart to the end of the line to add that function.
You should test them all out to know exactly what they do and if they work in your environment.
You will need separate msiexec lines for SolidWorks, SWPDM, Composer, SolidWorks Explorer/WGPDM, eDrawings, Flow Simulation, Plastics, Inspection, and Visualize.
If you need to install a language pack you have to run a separate msiexec line as well.
Since I have my users launch the installer I like to have it force things like Word, Excel, Outlook, SolidWorks and even Windows Explorer to close before it starts the installation.
You could try adding the property ALLUSERS=1 or ALLUSERS=2 to the msiexec call. 1 means all users and 2 means the current user. Using 1 would mean that the person installing would need to have admin permissions.
I would suggest adding it at the end before the /qb in my example.
The SolidWorks.msi file has that property in it, so it should work. It is set to zero, so that probably isn't a valid value or something.