Skip to content

[Bug]: installing pyRevit admin exe through SCCM does not attach to Revit properly #2923

@nytmare20

Description

@nytmare20

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

pyRevit 5 does not attach master when installed from SCCM, which uses the Windows System account to install software. pyRevit tab does not appear in Revit (Revit 2024 in my case) after installation.

⌨ Error/Debug Message

"pyrevit attached" command returns blank result, meaning nothing is attached.

♻️ To Reproduce

Install pyRevit 5 using SCCM.
Silent install command is "pyRevit_5.3.1.25308_admin_signed.exe" /VERYSILENT
SCCM only has one method of installing software for all users on a PC, and that is via the Windows System account.

  1. After installation,

Execute command "pyrevit attached" from the windows system account, result appears fine from windows system account:
==> Attachments
master | Product: "2024.3.1" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyrevit-Master" | AllUsers

But, when you execute command "pyrevit attached" from any other account, whether it's an admin account or a user account, the result is blank.
==> Attachments

⏲️ Expected behavior

I expect pyRevit installed via the Windows System account to behave the same as if it had been installed from a local admin account.

🖥️ Hardware and Software Setup (please complete the following information)

Microsoft Windows [Version 10.0.19045.6456]

pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Branch: "master" | Version: "5.3.1.25308+1659" | Path: "C:\Program Files\pyrevit-Master"
==> Attachments
==> Installed Extensions
==> Default Extension Search Path
C:\Users\admin-account\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
2024.3.1 | Version: 24.3.10.22 | Build: 20241105_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
==> Running Revit Instances
==> User Environment
Microsoft Windows 10 [Version 10.0.19045]
Executing User: domain\admin-account
Active User: domain\user-account
Admin Access: Yes
%APPDATA%: "C:\Users\admin-account\AppData\Roaming"
Latest Installed .Net Framework: 9.0.10
No .Net Target Packs are installed.
No .Net-Core Target Packs are installed.
pyRevit CLI v5.3.1.25308+1659.87ab3dfd505f7f8ddfb7375b52a1ea7645640f7a

Additional context

pyRevit will integrate with Revit if I run the command "pyrevit attach master default --installed" from a local admin account. However that action is not possible when distributing software using SCCM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InstallerIssues related to the pyRevit installer [subsystem]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions