We've made the .MSI files and .MST files, but no matter what we do, if we include ADDLOCAL=SolidWorksToolbox, the installation doesn't get done and result in icons on the desktop and a runnable program. It tries, and takes a very long time, but fails. If the same setup is used without that ADDLOCAL=SolidWorksToolbox line, it works fine.We've tried this on new machines as well as older machines that have had older Toolbox on them, with the same result.
In the Event Viewer, the failed installs have a bunch of failed .DLLs that say things ".NET runtime optimization error. Failed to compile: AnnotationOperation.DLL Error Code = 0x80131047" This repeats for what looks like 30 DLLs or so.
Anyone had any better luck with Active Directory rollouts that included toolbox?
I spent all day yesterday finding out how to fix this problem, it was driving me mad. Like you it installs fine from the command line without the ADDLOCAL=SolidWorksToolbox switch added but when added the install rolls back just before finishing. After looking in the event log I noticed the reg .dll issues, so I went on a mission to find a fix.
I've been trying to generate an .MST file for the .MSI to deploy SW through Group Policy. However I tested the command line through the CMD before building the .MST.
After lots of testing I've found you need to change the default location of the toolboxfolder from the C:\, I used TOOLBOXFOLDER="C:\Program Files\SolidWorks\SolidWorks Data" if you dont do this the .dll registration fails for some reason. Possibly permissions (however I was installing under admin and still got the same problem).
This fixed the error with the .dll registration however I noticed that the SolidWorks Toolbox didn't install without specifying all the individual components needed for install.
For Your REF:
Prem
SolidWorksDesignChecker,Manuals,ExampleFiles,SolidWorksToolbox,FeatureWorks,SolidWorksAnimator,
SolidWorksUtilities,ScanTo3D,SolidWorksRoutedsystems,Motion,CircuitWorks,PhotoView,Simulation,
TolAnalyst
Pro
SolidWorksDesignChecker,Manuals,ExampleFiles,SolidWorksToolbox,FeatureWorks,
SolidWorksAnimator,SolidWorksUtilities,PhotoView
Command
Untick the /qb to check the components are selected. Then quit the setup (Dont continue install). Add the /qb back in and run the command for slient install.
msiexec /i \\{deployment-location}\SolidWorks.Msi INSTALLDIR="C:\Program Files\SolidWorks" TOOLBOXFOLDER="C:\Program Files\SolidWorks\SolidWorks Data" SOLIDWORKSSERIALNUMBER="***********" ADDLOCAL=SolidWorksDesignChecker,Manuals,ExampleFiles,SolidWorksToolbox,FeatureWorks,SolidWorksAnimator,SolidWorksUtilities,PhotoView ENABLEPERFORMANCE=0 OFFICEOPTION=2 SERVERLIST="25734@{servername}" /qb
Command to generate .MST
\\{deployment-location}\SwCreateMST.exe "\\{deployment-location}\SolidWorks.Msi" INSTALLDIR="C:\Program Files\SolidWorks" TOOLBOXFOLDER="C:\Program Files\SolidWorks\SolidWorks Data" SOLIDWORKSSERIALNUMBER="***********" ADDLOCAL=SolidWorksDesignChecker,Manuals,ExampleFiles,SolidWorksToolbox,FeatureWorks,SolidWorksAnimator,SolidWorksUtilities,PhotoView ENABLEPERFORMANCE=0 OFFICEOPTION=2 SERVERLIST="25734@{servername}"
GOOD LUCK - I hope this helps