Jump to content
  • 0
georgebpnz

vectorworks 2019 silent install using sccm as application deployment

Question

Hi,

 

I am deploying vectorworks 2019 using sccm and the deployment fails . The install starts and install directory stuck as picture 1 attached and failed to timeout . anyone tried to install vectorworks using sccm ?

 

Using commandline as 

$scriptPath = .\resources\installer\Install-Vectorworks2019.exe --mode unattended --unattendedmodeui none --UserName "User" --CompName "Compname" --Serial XXXX-XXX-XXX-XXX--installdir "C:\Program Files\Vectorworks 2019" | Out-Null

 

 

+++ Application not discovered. [AppDT Id: ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, Revision: 12]    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    App enforcement environment: 
    Context: Machine
    Command line: powershell -executionpolicy bypass -file "install_x64.ps1"
    Allow user interaction: No
    UI mode: 0
    User token: null
    Session Id: 4294967295
    Content path: C:\WINDOWS\ccmcache\1x
    Working directory:     AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    Prepared working directory: C:\WINDOWS\ccmcache\1x    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
Found executable file powershell with complete path C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    Prepared command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file "install_x64.ps1"    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    Executing Command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file "install_x64.ps1" with system context    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    Working directory C:\WINDOWS\ccmcache\1x    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    Post install behavior is BasedOnExitCode    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    Waiting for process 5688 to finish.  Timeout = 120 minutes.    AppEnforce    11/12/2018 1:38:54 PM    8744 (0x2228)
    Process 5688 terminated with exitcode: 1    AppEnforce    11/12/2018 2:05:09 PM    8744 (0x2228)
    Looking for exit code 1 in exit codes table...    AppEnforce    11/12/2018 2:05:09 PM    8744 (0x2228)
    Unmatched exit code (1) is considered an execution failure.    AppEnforce    11/12/2018 2:05:09 PM    8744 (0x2228)
++++++ App enforcement completed (1575 seconds) for App DT "Vectorworks2019" [ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c], Revision: 12, User SID: ] ++++++    AppEnforce    11/12/2018 2:05:09 PM    8744 (0x2228)
+++ Starting Install enforcement for App DT "Vectorworks2019" ApplicationDeliveryType - ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, Revision - 12, ContentPath - C:\WINDOWS\ccmcache\1x, Execution Context - System    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    A user is logged on to the system.    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Performing detection of app deployment type Vectorworks2019(ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, revision 12) for system.    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
+++ Application not discovered. [AppDT Id: ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, Revision: 12]    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    App enforcement environment: 
    Context: Machine
    Command line: powershell -executionpolicy bypass -file "install_x64.ps1"
    Allow user interaction: No
    UI mode: 0
    User token: null
    Session Id: 2
    Content path: C:\WINDOWS\ccmcache\1x
    Working directory:     AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Prepared working directory: C:\WINDOWS\ccmcache\1x    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
Found executable file powershell with complete path C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Prepared command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file "install_x64.ps1"    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Executing Command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file "install_x64.ps1" with user context    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Working directory C:\WINDOWS\ccmcache\1x    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Post install behavior is BasedOnExitCode    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Waiting for process 7604 to finish.  Timeout = 120 minutes.    AppEnforce    11/12/2018 2:05:35 PM    8744 (0x2228)
    Process 7604 terminated with exitcode: 0    AppEnforce    11/12/2018 2:15:02 PM    8744 (0x2228)
    Looking for exit code 0 in exit codes table...    AppEnforce    11/12/2018 2:15:02 PM    8744 (0x2228)
    Matched exit code 0 to a Success entry in exit codes table.    AppEnforce    11/12/2018 2:15:02 PM    8744 (0x2228)
    Performing detection of app deployment type Vectorworks2019(ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, revision 12) for system.    AppEnforce    11/12/2018 2:15:02 PM    8744 (0x2228)

+++ Discovered application [AppDT Id: ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, Revision: 12]    AppEnforce    11/12/2018 2:15:03 PM    8744 (0x2228)
++++++ App enforcement completed (568 seconds) for App DT "Vectorworks2019" [ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c], Revision: 12, User SID: ] ++++++    AppEnforce    11/12/2018 2:15:03 PM    8744 (0x2228)
+++ Starting Install enforcement for App DT "Vectorworks2019" ApplicationDeliveryType - ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, Revision - 12, ContentPath - C:\WINDOWS\ccmcache\1x, Execution Context - System    AppEnforce    11/12/2018 2:38:39 PM    6064 (0x17B0)
    A user is logged on to the system.    AppEnforce    11/12/2018 2:38:39 PM    6064 (0x17B0)
    Performing detection of app deployment type Vectorworks2019(ScopeId_6E8F8258-883B-4E1F-9960-3885F19C3671/DeploymentType_26dc66ad-b807-4441-8f83-a5fdf423497c, revision 12) for system.    AppEnforce    11/12/2018 2:38:39 PM    6064 (0x17B0)
 

picture1.png

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

I use SCCM too and I've seen this error before. I couldn't figure out what the error was - I had a department boss breathing down my neck and had to get it done asap. This script works for me and had no problems. Maybe it could be of some help.

 

Powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File ".\Vectorworks_2019SP3x3.ps1"

image.thumb.png.8e3c3a7d6ee60ebc2cb3054409cfc73a.png

 

image.thumb.png.8ebf35c9ae505a61dc063f7819d7e427.png 

========================================================================================

 

 # Install Vectorworks 2019 SP3 
        
        $installerEXE = "Vectorworks 2019 SP3 Installer\resources\installer\Install Vectorworks2019.exe" 

 

        Start-Process $installerEXE -ArgumentList " --mode unattended"," --unattendedmodeui none", "--Serial xxxxxx-xxxxxx-xxxxxx-xxxxxx", "--UserName Whatever", " --CompName ""My Company Name"" ", " --installdir ""C:\Program Files\Vectorworks 2019"" " -Wait -ErrorAction SilentlyContinue
        Start-Sleep -Seconds 300

<#

I know I have both the "-Wait" parameter and then "Start-sleep".  Early testing had issues - I had to make sure the script waited until the install has created the folders and reg keys I need to make changes to, otherwise, the install completed but without registering the licence and server details. It works so I left it in.

#> 
       
        #Set details in the registry and assign "Everyone" permissions.
        
                [string]$VectRegKey = "HKLM:\SOFTWARE\Nemetschek"
                        $FileExists = Test-Path $VectRegKey
                
                    IF ($FileExists -eq $true)
            
                       {
                        $acl= get-acl -path $VectRegKey
                        $inherit = [system.security.accesscontrol.InheritanceFlags]"ContainerInherit, ObjectInherit"
                        $propagation = [system.security.accesscontrol.PropagationFlags]"None"
                        $rule=new-object system.security.accesscontrol.registryaccessrule "Everyone","FullControl",$inherit,$propagation,"Allow"
                        $acl.addaccessrule($rule)
                        $acl|set-acl
                        }
        
                    ELSE
            
                        {
                        New-Item -Path $VectRegKey -ItemType key -Force -ErrorAction SilentlyContinue
                        $acl= get-acl -path $VectRegKey
                        $inherit = [system.security.accesscontrol.InheritanceFlags]"ContainerInherit, ObjectInherit"
                        $propagation = [system.security.accesscontrol.PropagationFlags]"None"
                        $rule=new-object system.security.accesscontrol.registryaccessrule "Everyone","FullControl",$inherit,$propagation,"Allow"
                        $acl.addaccessrule($rule)
                        $acl|set-acl
                        }
        
        
                [string]$VectRegValue = "HKLM:\SOFTWARE\Nemetschek\Vectorworks 24\Registration"
                        $FileExistY = Test-Path $VectRegValue
        
                    IF ($FileExistY -eq $true)
        
                        {
                        New-ItemProperty -Path $VectRegValue -Value " xxxxxx-xxxxxx-xxxxxx-xxxxxx" -Name "Serial Number 0" -ErrorAction SilentlyContinue
                        New-ItemProperty -Path $VectRegValue -Value "My Company Name" -Name "Company"-ErrorAction SilentlyContinue
                        New-ItemProperty -Path $VectRegValue -Value "Whatever" -Name "Name" -ErrorAction SilentlyContinue
                        }
                    ELSE
                        {
                        New-Item -Path $VectRegValue -ItemType  Key -Force -ErrorAction SilentlyContinue
                        New-ItemProperty -Path $VectRegValue -Value " xxxxxx-xxxxxx-xxxxxx-xxxxxx" -Name "Serial Number 0" -ErrorAction SilentlyContinue
                        New-ItemProperty -Path $VectRegValue -Value "My Company Name" -Name "Company"-ErrorAction SilentlyContinue
                        New-ItemProperty -Path $VectRegValue -Value "Whatever" -Name "Name" -ErrorAction SilentlyContinue
                        }
        
                    #  Server address is in the XML file - copy the whole folder to the 'settings' directory and give permissions to enable users to use it
                
                        $sourceRoot = "Vectorworks 2019 SP3 Installer\Licence\SeriesG"
                        $destinationRoot = "C:\Program Files\Vectorworks 2019\Settings"
                        $VectwxDir = Test-Path $destinationRoot

                    IF ($VectwxDir -eq $true)

                        {
                            Copy-Item -Path $sourceRoot -Destination $destinationRoot -Recurse -Container -ErrorAction SilentlyContinue
                        }
                    ELSE
                        {
                            New-Item -ItemType directory -Path $destinationRoot
                            Copy-Item -Path $sourceRoot -Destination $destinationRoot -Recurse -Container -ErrorAction SilentlyContinue 
                        }
        
                $acl = get-acl -path "C:\Program Files\Vectorworks 2019\Settings"
                $inherit = [system.security.accesscontrol.InheritanceFlags]"ContainerInherit, ObjectInherit"
                $propagation = [system.security.accesscontrol.PropagationFlags]"None"
                $rule=new-object system.security.accesscontrol.FileSystemAccessRule "Everyone","FullControl",$inherit,$propagation,"Allow"
                $acl.addaccessrule($rule)
                $acl|set-acl

 

========================================================================================

 

Let me know if it helps.

 

 

 

image.png

Edited by mr-stoo
typo

Share this post


Link to post
  • 0

Update:

 

I should have checked this earlier - the problem is Vectorworks 2019 will not install using the local system account. When you try to deploy it with SCCM it hangs then eventually times out.  The install works via the software center as this is in a user context. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×