Is this possible? I have a .bundle plugin which is held centrally and copied to users local drive and loads on start up. I use the xcopy shell command in the acaddoc.lsp to copy contents of folder including updates to local drives. Obviously there will be a sharing violation if plugin is trying to be updated on autocad start up. Therefore, can a plugin be disabled, updated and restarted when autocad is started somehow? Any guidance much appreciated. Cheers, Robbo.
I do that I have a Plugin.Bundle that is used just for nothing but coping files and loading them.
http://forums.autodesk.com/t5/net/updating-plugin/m-p/4839657#M39361
PowerShell may also offer the ability to do a lot, with little actual code... And can offer the user the illusion of a 'single click' update.
For example, and regardless of how you choose to prompt user to update... Now, or allow delayed update in the event they're under strict deadline... When user selects a bubble link, dialog button, etc. the result calls a PowerShell script that closes the main application gracefully using Get-Process (http://technet.microsoft.com/en-us/library/hh849832.aspx) and Stop-Process (http://technet.microsoft.com/en-us/library/hh849781.aspx) cmdlets:Code - PowerShell: [Select]
... Performs any/all updates needed using Get-ChildItem (http://technet.microsoft.com/en-us/library/hh849800.aspx) and/or Copy-Item (http://technet.microsoft.com/en-us/library/hh849793.aspx) cmdlets (after a small Wait-Event (http://technet.microsoft.com/en-us/library/hh849940.aspx)?):Code - PowerShell: [Select]
Copy-Item \\ServerName\ShareName\YourAdminAppFolder -Destination $env:APPDATA\Autodesk\ApplicationPlugins\YourUserAppFolder -Recurse
... And then restart the application using Invoke-Item (http://technet.microsoft.com/en-us/library/ee176882.aspx) to launch your desktop shortcut:Code - PowerShell: [Select]
Invoke-Item $env:USERPROFILE\Desktop\YourUpdatedAppShortcut.lnk
Cheers
WOW - that's gone straight over my head at the moment.
FWIW -
I've linked this thread to another thread (http://forums.autodesk.com/t5/community-feedback/application-manager/td-p/5287329) where I previously requested the ability to 'push' updates from an Admin perspective, as I thought it too (if they ever grant such a wish?) would be useful.
Cheers