Jump to content
  • 1
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

10 answers to this question

Recommended Posts

  • 0

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. 

  • Like 1

Share this post


Link to post
  • 0

Any luck? We picked up VW at my EDU. ...manually installing it? really? C'mon Vectorworks.

  • Like 1

Share this post


Link to post
  • 0

Same problem with Vectorworks 2020.  Application installs silently when using Software Center.  When doing a required deployment, it starts but times out after 2 hours.

 

The devs need to test and fix the silent installer when running under the "SYSTEM" account.

Share this post


Link to post
  • 0

 

I did below changes and seems working my VectWrk 2020 deployment as required deployment. give a try and let me know if its helps.

 

I have added the exclusion of below folders in my Antivirus exclusion path settings.

image.thumb.png.013db2bddacf919e720cc6eefdcc8b67.png

 

I did move the installer from resources\installer to root folder and run the install from there using script.

image.thumb.png.732cf2ac8cb4138c9ed8427c367bfdf3.png

 

Powershell script I use

 

.\Install-Vectorworks2020.exe --mode unattended --unattendedmodeui none --UserName "xxxx" --CompName "xxxx" --Serial "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --installdir "C:\Program Files\Vectorworks 2020" |Out-Null

Start-Sleep -Seconds 300

 

 

Detection method I used in my environment

image.thumb.png.38e929dee04e7261b7192ffb89fd0bf8.png

 

image.thumb.png.0de353624825912455376c56523119f0.png

 

image.thumb.png.cfcf3165ad716a20dce5422181978474.png

image.thumb.png.402b9752f2bffd34f30b198652897c20.png

image.thumb.png.e1cbea942447fa829fdf24eb33405ba9.png

 

 

Edited by georgebpnz

Share this post


Link to post
  • 0
3 minutes ago, georgebpnz said:

I did move the installer from resources\installer to root folder and to run the install from there using script.

 

image.thumb.png.732cf2ac8cb4138c9ed8427c367bfdf3.png

Powershell script I use

.\Install-Vectorworks2020.exe --mode unattended --unattendedmodeui none --UserName "xxxx" --CompName "xxxx" --Serial "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --installdir "C:\Program Files\Vectorworks 2020" |Out-Null

Start-Sleep -Seconds 300

 

 

Thanks for taking the time to follow up.  I'm not having any problems with AV or the detection method.  In your original post, it was just not installing/timeout.  Do you think its moving the installer location that fixed this?  Or something else?

 

 

Share this post


Link to post
  • 0

in my case ccmcache folder exclusion made a lot of progress and moving the installer to root folder 

 

Edited by georgebpnz

Share this post


Link to post
  • 0

 I didn't have time to experiment and test the suggestions here and ended up changing the 'user experience > user logon requirement'  from 'whether or not logged in',  to 'logged in'.  Far from ideal but it got the job done. I'll make changes for the next installations.

 

17 hours ago, georgebpnz said:

in my case ccmcache folder exclusion made a lot of progress and moving the installer to root folder 

 

In my case I don't think the AV exclusions would make any difference, the AV was running during test deployments that actually worked. I do think moving the installer folder would probably make the difference.


@JasonNVSD

I couldn't agree with you more - all due respect to the devs but they need to test when running under the "SYSTEM" account. I needed to get VW2020 out to 70+ computers double quick and didn't really have time to trawl through all the SCCM logs. I found one line that said "Executing Command line: ** with system context" then I used psexec.exe and found it wouldn't install. As I needed to deploy asap all I did was change the logon requirement and moved on to the next job. I have more time now so I'm going to test it - If moving the install folder is all it takes then this is the first thing I will do with the next release.

 

 

  • Like 1

Share this post


Link to post
  • 0

@mr-stoo

 

As of version 2018 we have this problem. Available deployments will work Required deployment times out.

I will test you suggestion to Change the user logon requirement to 'Logged in'.

And I encourage everyone in this topic to send feedback if this option will solve this issue. And Dev's please fix this!

  • Like 1

Share this post


Link to post
  • 0

Hi,

After installing VW2020 in silent mode (Demo Version), i missed Vectorworks2020.exe in ProgramFiles.

 

Can someone tell me the reason?

 

 

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

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.

×
×
  • Create New...