-
-
August 14, 2023 at 3:43 am
Patrick Guerrisi
SubscriberHi
We use SCCM ( now known as MECM) to deploy software to our staff and computer labs. SCCM uses the SYSTEM account when it installs
However when installing as system it throws up the following error :
Â
The commandline I am using is:
ansys-rockybundle-bin-22.2.X-win64.exe /SILENT
There is another post about this exact issue but the response given is not the solution:
Rocky installation under the SYSTEM account fails (ansys.com)
When I run the install command with my user account with administrator privileges it installs without error
Can anyone provide a solution why this error is showing when installing as system?
-
August 22, 2023 at 2:33 pm
MangeshANSYS
Ansys EmployeeÂ
Hello,
As indicated in the initial response in the post you referenced, please include the target directory with the DIR= flag.
Â
Secondly, the error Failed to expand shell folder userdesktop seems to be a generic error seen by many installers.
Please see if any of the suggestions on this webpage are also helpful to you
https://www.reddit.com/r/SCCM/comments/kvsfvr/failed_to_expand_shell_folder_constant/?rdt=34733Â
-
August 29, 2023 at 10:06 am
Patrick Guerrisi
SubscriberHi
Thanks for the reply
I added the Path switch to the install string and looks like the mapped drive error has stopped popping up but I am still getting the the error Failed to expand shell folder userdesktop
I have added the suggestion from that thread but it hasnt worked
Here is my install string:
ansys-rockybundle-bin-23.1.1-win64.exe" "/DIR=C:\Program Files\ANSYS Inc\v231\Rocky" /VERYSILENT /MERGETASKS="!desktopicon"
Screenshot:
-
August 29, 2023 at 12:42 pm
MangeshANSYS
Ansys Employeeas mentioned earlier, it appears that the shell setup runs under is unable to expand userdesktop
perhaps in your install.cmd you can test by adding a line like below beffore the line for silent setup (assuming c:\temp exists)
set userdesktop=C:\temp\
Â
if this works, you will need to see if anything got written to the c:\temp folderÂ
I suspect it is trying to create desktop icons but unable to locate or unable to access whatever userdesktop is pointing to
this is an experiment, hope it helps find the root cause.
Â
-
August 29, 2023 at 11:47 pm
Patrick Guerrisi
SubscriberÂ
Hi
Thanks for the reply again
I was able to do a regular manual install with the parameter /saveinfo and unchecked all the desktop icons. This resolved the problem with the "failed to expand Shell Folder Constant "userdesktop" error I was getting
I have been testing this on a VM with Windows 10 on it
I still get the original error even with setting the directory install location which is strange
See below what my install string is and that error that keeps showing at the end of the install ( as system account )
The process exe is named Fluent_coupling.exeÂ
I could just kill that process at the end.Â
Install string used is:
"ansys-rockybundle-bin-23.1.1-win64.exe" "/DIR=C:\Program Files\ANSYS Inc\v231\Rocky" /VERYSILENT /LOADINF="%~dp0Rocky_params.inf"
Â
Â
Â
Â
-
August 30, 2023 at 6:11 pm
MangeshANSYS
Ansys EmployeeHello,
I used a test machine with Rocky 2023 R1 not installed. downloaded and unzipped the Rocky 2023 R1 update with full package .zip file and extracted to the path you are using
I also used the command line as shown. Rocky installed in minutes without any errorsÂ
I am not sure where the references to K and W drive are coming from. Please check the system's path and other environment variables if it is runnign python from those locations. perhaps try unsetting those portions of the path / environment ?
What else is being done in the .inf file ?Are you also trying to install the Fluent export plugin ?
Â
hope this helps
-
August 30, 2023 at 10:54 pm
Patrick Guerrisi
SubscriberDid you use psexec to install via the system account?
If not that would be why you get no error
Â
I've tried on multiple machines and even with a brand new Frehley imaged window 10 install and when I use the system account I get that error at the endÂ
-
September 15, 2023 at 3:37 pm
MangeshANSYS
Ansys EmployeeHelloÂ
I did not use psexec. what account is psexec running as ? Are W and K drives mapped for other users, but not for the user that psexec runs as ?
also I did not hear on which options are in the .inf file
-
October 5, 2023 at 7:08 am
JM Derksen
Subscriber@Mangesh Bhide
Using "psexec.exe -s -i cmd" (a Sysinternals/Microsoft tool), you can initiate an elevated Command Prompt session under the SYSTEM account to replicate the issue.Â
If you are unfamiliar with the procedure, kindly assign this task to another Ansys support employee.I can confirm that the Rocky 2023r2 installation has the same problem.
Please address this issue promptly, as large companies (as well as small ones) are unable to deploy Rocky using leading Software deployment tools like SCCM/MECM.
Â
-
October 5, 2023 at 2:25 pm
MangeshANSYS
Ansys EmployeeHello
It worked with psexec as well
I uninstalled the old version
I opened an elevated command prompt and launched cmd under system account and ran the .exe /VERYSILENT with the DIR= flag as seen below
Are there any other issues with your account or administrator rights ? Perhaps have another system administrator run this to verify if this is not an issue with your account ?I hope this helps
-
-
January 9, 2024 at 3:13 pm
Roy Padrick
SubscriberHas there been a verified solution to this yet? I've tried all the suggestions, but still get the "cx_Freeze: Python error in main script error" when running under system context. My install command is: ansys-rockybundle-bin-23.1.1-win64.exe "/DIR=C:\Program Files\ANSYS Inc\v231\Rocky" /VERYSILENT /LOADINF=E:\rockyinstall.inf
I've tried just the /silent switch and no inf file, still same error.
-
January 9, 2024 at 4:31 pm
MangeshANSYS
Ansys Employeeit works as demonstrated in screenshots above. What are the contents of your .inf file ?
-
January 9, 2024 at 5:07 pm
Roy Padrick
Subscriber[Setup]
Lang=default
Dir=C:\Program Files\ANSYS Inc\v231\Rocky
Group=Ansys 2023 R1.1
NoIcons=0
SetupType=custom
Components=rocky,fluent,workbench
Tasks=v231,project,start_menu_icons,start_menu_icons_schedulerÂ
But it doesn't work, as others have said in this thread. I even followed your commands to the letter, and it still throws the error at the end of the install. When I run it under a regular admin command prompt, it installs fine. So what are you doing differently that we are not? What is different about your VM or process that we can't replicate?
-
January 9, 2024 at 5:51 pm
MangeshANSYS
Ansys EmployeeIt is important that the process be launched from an elevated prompt. could it be possible that your workflow is not running the command as elevated user ?
The machine where i ran the test is a Windows 10 laptop (not a VM) . the test above was to duplicate the other's setup. so I installed approproate utilities from sysinternals (I believe psexec) made sure to launch it elevated. (see output of whoami in screenshot above)ÂI hope this information is helpful
-
January 9, 2024 at 5:54 pm
Roy Padrick
SubscriberI've been packaging software for deployment for over a decade. Yes, I'm sure it was running elevated. I used PSExec to run under system context. The problem has to be related to the user environment of system. If you want me to submit a video as proof, I can.
-
January 9, 2024 at 6:27 pm
MangeshANSYS
Ansys EmployeeI absolutely believe you if you are confirming it ran elevated. I will investigate why / how python comes into picture and why you might be seeing that error "cx_Freeze: Python error in main script error"
Â
-
January 18, 2024 at 1:58 pm
Roy Padrick
SubscriberAny update?
-
January 9, 2024 at 6:08 pm
Roy Padrick
Subscriberhttps://myerauedu-my.sharepoint.com/:v:/g/personal/padrickr_erau_edu/EZThpdzcBYZGkmQ2mkieAH4BwThRWo-SjJE-wizAvBuj0g?e=aPvene
Video of the process and error at the end.
-
-
-
- The topic ‘Unable to Install Ansys Rocky Through SCCM/MECM’ is closed to new replies.
-
3407
-
1057
-
1051
-
896
-
882
© 2025 Copyright ANSYS, Inc. All rights reserved.