Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyrevit 4.8.16.24121 not working via SCCM #2304

Open
JunoJolly opened this issue Jul 5, 2024 · 5 comments
Open

Pyrevit 4.8.16.24121 not working via SCCM #2304

JunoJolly opened this issue Jul 5, 2024 · 5 comments
Labels
Question This is a question and not an issue Wiki Issues related to Wiki or Documentation [subsystem]

Comments

@JunoJolly
Copy link

Installation of Pyrevit 4.8.16.24121 went well, but unable to view the plugin in Revit.
If I manually install the application , I can see the plugin in Revit.
So just want to confirm whether this plugin will support in SCCM or not.

@JunoJolly JunoJolly added the New Feature New feature request [class->Implemented #{number}: {title}] label Jul 5, 2024
@jmcouffin
Copy link
Contributor

Please have a look at #1642 (comment)

@jmcouffin jmcouffin added Question This is a question and not an issue and removed New Feature New feature request [class->Implemented #{number}: {title}] labels Jul 6, 2024
@JunoJolly
Copy link
Author

Do we have any documentation which we can refer for the installation via SCCM

@sanzoghenzo
Copy link
Contributor

Not strictly SCCM related, but this should help

https://pyrevitlabs.notion.site/pyRevit-For-Teams-ddc6c312d6f6488691eed2ec7704fd97

@GHiarsixty
Copy link

GHiarsixty commented Jul 12, 2024

My experience with the SCCM installer is to script this sequence:
Install the CLI, then clone pyRevit, copy a configured pyRevit_config.ini file into c:\programdata\pyrevit, then run the CLI attach command.
When using the same PC over and over for testing, there can be remnants that may cause unexpected behavior. I delete everything pyRevit I can find first before testing. Here's the powershell code for what I'm deleting. Frankly I don't remember if I wrote this part or cribbed it from somewhere.

$ErrorActionPreference = "Continue"
Remove-Item -Path "C:\Users\*\AppData\Roaming\pyRevit\pyRevit_config.ini"
Remove-Item -Path "C:\ProgramData\pyRevit\pyRevit_config.ini"
Remove-Item -Path "C:\Windows\System32\config\systemprofile\AppData\Roaming\pyRevit\pyRevit_config.ini"
Remove-Item -Path "C:\Users\*\AppData\Roaming\pyRevit" -Recurse
Remove-Item -Path "C:\Windows\System32\config\systemprofile\AppData\Roaming\pyRevit" -Recurse
Remove-Item -Path "C:\ProgramData\Autodesk\Revit\Addins\*\pyRevit.addin"
Remove-Item -Path "C:\WINDOWS\TEMP\master\pyRevit-master" -Recurse
Remove-Item -Path "C:\pyRevit" -Recurse

@sanzoghenzo
Copy link
Contributor

Thanks @GHiarsixty for the added info! this would make a good addition in our "knowledge base", do you think you can make it into a tutorial in the forum to explain all the steps in detail?

regarding the code snippet, I believe you can simplify it like this

$ErrorActionPreference = "Continue"
Remove-Item -Path "C:\ProgramData\pyRevit\pyRevit_config.ini"
Remove-Item -Path "C:\Users\*\AppData\Roaming\pyRevit" -Recurse
Remove-Item -Path "C:\Windows\System32\config\systemprofile\AppData\Roaming\pyRevit" -Recurse
Remove-Item -Path "C:\ProgramData\Autodesk\Revit\Addins\*\pyRevit.addin"

since you're recursing the entire directories, you don't need to remove the config file first.
And the last two paths are specific to your case, so they are generally not needed; users/admin should add their custom paths, though.

@sanzoghenzo sanzoghenzo added the Wiki Issues related to Wiki or Documentation [subsystem] label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question This is a question and not an issue Wiki Issues related to Wiki or Documentation [subsystem]
Projects
None yet
Development

No branches or pull requests

4 participants