I'm working on creating an automated testing pipeline, for a software that integrates with SolidWorks. I have a clean installation of SolidWorks on the virtual machine image that I use to create a virtual machine during the pipeline run. The first time SolidWorks starts, a dialog appears to allow the user to agree to the EULA. Unfortunately my pipeline is run unattended, so there's no way to "click" on the agree button. I've tried setting the registry key 'HKCU:\Software\SolidWorks\SOLIDWORKS 2023\Security\ELUA Accepted 2023 SP5.0
Is there another way to automate the process of accepting the EULA that's not based on a single user? Maybe a way to accept the EULA for any user on the machine?
I apologize if this is not the correct place to ask this type of question.
----
Update:
----
It turns out that this isn't caused by the EULA at all. I wrote a test app that used SolidWorks Interop API to try and start SolidWorks and just print the version number. I'm getting this error when trying to create an instance of SolidWorks:
System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {B2F1524F-6CFE-4386-B472-AB1148DEA4F1} failed due to the following error: 80080005 Server execution failed (0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
at System.RuntimeTypeHandle.AllocateComObject(Void* pClassFactory)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at SolidWorksAPITest.Program.Main(String[] args) in