This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WaterCAD Silent install switches not working

Hey there I am trying to deploy WaterCAD, SewerCAD & SewerGEMS silently through PDQ Deploy.

However it keeps adding the shortcuts for AutoCAD integration which I do NOT want.

Here is a sample of the command I'm running:

wtrc10030275en.exe /q INSTALLDIR="C:\Program Files (x86)\Bentley\WaterCAD" ADDLOCAL=ALL REMOVE=SamplesAndLessons,MicroStation,AutoCAD

It does install silently and to correct folder but it always puts the AutoCAD integration Desktop shortcuts on the desktop.

Any way to prevent this as we don't have the integration piece on our license so its confusing for users.

Parents
  • Anthony, after discussing with our developers, it was found that for WaterCAD, the correct term for preventing AutoCAD integration is actually "AutoCAD_x64". "AutoCAD" was just to prevent 32-bit AutoCAD integration, but most versions and users are on 64-bit. I have amended the following related article accordingly:

    Silent installation for Bentley OpenFlows Products


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

    Answer Verified By: Anthony Corbeil 

  • Thank you very much for this and very fast as well!

    One other thing, do you know what success code the installer should end with?

    I know this isn't a Bentley issue now but In PDQ Deploy it gives me an error code of 1073741819 after deploying but it does seem to install fine. So thinking maybe the success code PDQ Deploy is looking for is different.

    I took a look in the log file and it looks like it sends a 0x0 success code at the end.

    [5220:3E30][2021-02-22T11:47:10]i007: Exit code: 0x0, restarting: No

    Currently will accept any of these codes as success but I can add new ones:

    0,1641,3010,2359302

    If you have any ideas again much appreciated.

    Thanks.

  • Anthony I will need to check with our developers on this and get back to you. Are you wanting to have some confirmation of a successful silent deployment?


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

  • Yes that's correct if you look at screenshot above PDQ Deploy is looking for specific Success Codes when the installer completes, but you can see on the right the error code I am getting.

  • Hi Anthony, I received some feedback from our developers.

    Currently the OpenFlows products use "Wix" for the installer technology. Wix documentation specifies: success, error, scheduleReboot, forceReboot as possible return codes but it doesn’t mention their numerical equivalents. Also the msi part might have its own separate exit codes that mean something else. We believe for the msi part 3010 exit code means Installation Successful.

    That said, the error code you mentioned "1073741819" could be -1073741819, which translates to 0xc0000005 in hexadecimal which is a generic application error Access Violation. We are not sure why the bundle installer would cause this. Typically any installation error would get logged in the log file but you mentioned it shows 0x0 as the exit code, indicating no error was detected by the Wix bundle installer. It could be something happening still inside the bundle installer after the log file is written to but Bentley would have no control over that anyway.

    Is this problem happening on just one computer, or multiple?

    Please check to see if you have any other log files in the Windows Temporary folder that correspond to the date/time of the failed installation. For example you may see these two:

    WaterCAD CONNECT Edition Update 3_20210222134311_000_WaterCAD_10.3.2.75_en.msi.log

    WaterCAD CONNECT Edition Update 3_20210222134311.log


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

  • Hey I took a look through the logs and only thing relevant I can find is:

    [29F8:43B8][2021-02-23T08:17:37]i000: Running plan complete BA function
    [29F8:43B8][2021-02-23T08:17:37]i299: Plan complete, result: 0x0
    [29F8:43B8][2021-02-23T08:17:37]i300: Apply begin
    [29F8:43B8][2021-02-23T08:17:37]i010: Launching elevated engine process.
    [29F8:43B8][2021-02-23T08:17:37]i011: Launched elevated engine process.
    [29F8:43B8][2021-02-23T08:17:37]i012: Connected to elevated engine.
    [5180:357C][2021-02-23T08:17:37]i358: Pausing automatic updates.
    [5180:357C][2021-02-23T08:17:37]i359: Paused automatic updates.
    [5180:357C][2021-02-23T08:17:37]i360: Creating a system restore point.
    [5180:357C][2021-02-23T08:17:38]i361: Created a system restore point.
    [5180:357C][2021-02-23T08:17:38]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{cfbd5886-915c-4ea7-b4bf-6ad509991b24}, options: 0x7, disable resume: No
    [5180:357C][2021-02-23T08:17:38]i000: Caching bundle from: 'C:\windows\Temp\{4280E81C-454A-4E17-97CA-1C166C406D14}\.be\WaterCAD_10.03.02.75_en.exe' to: 'C:\ProgramData\Package Cache\{cfbd5886-915c-4ea7-b4bf-6ad509991b24}\WaterCAD_10.03.02.75_en.exe'
    [5180:357C][2021-02-23T08:17:38]i320: Registering bundle dependency provider: {cfbd5886-915c-4ea7-b4bf-6ad509991b24}, version: 10.3.2.75
    [5180:357C][2021-02-23T08:17:38]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{cfbd5886-915c-4ea7-b4bf-6ad509991b24}, resume: Active, restart initiated: No, disable resume: No
    [5180:35C0][2021-02-23T08:17:47]i305: Verified acquired payload: WaterCAD_10.3.2.75_en.msi at path: C:\ProgramData\Package Cache\.unverified\WaterCAD_10.3.2.75_en.msi, moving to: C:\ProgramData\Package Cache\{7E997C9B-0ABA-4E08-A866-DD43E77F6662}v10.3.2.75\WaterCAD_10.3.2.75_en.msi.
    [5180:357C][2021-02-23T08:17:47]i323: Registering package dependency provider: {7E997C9B-0ABA-4E08-A866-DD43E77F6662}, version: 10.3.2.75, package: WaterCAD_10.3.2.75_en.msi
    [5180:357C][2021-02-23T08:17:47]i301: Applying execute package: WaterCAD_10.3.2.75_en.msi, action: Install, path: C:\ProgramData\Package Cache\{7E997C9B-0ABA-4E08-A866-DD43E77F6662}v10.3.2.75\WaterCAD_10.3.2.75_en.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" INSTALLDIR="C:\Program Files (x86)\Bentley\WaterCAD" ADDLOCAL="ALL" REMOVE="SamplesAndLessons,MicroStation,AutoCAD_x64"'
    [29F8:43B8][2021-02-23T08:18:33]i319: Applied execute package: WaterCAD_10.3.2.75_en.msi, result: 0x0, restart: None
    [5180:357C][2021-02-23T08:18:33]i325: Registering dependency: {cfbd5886-915c-4ea7-b4bf-6ad509991b24} on package provider: {7E997C9B-0ABA-4E08-A866-DD43E77F6662}, package: WaterCAD_10.3.2.75_en.msi
    [5180:357C][2021-02-23T08:18:33]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{cfbd5886-915c-4ea7-b4bf-6ad509991b24}, resume: ARP, restart: None, disable resume: No
    [5180:357C][2021-02-23T08:18:33]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{cfbd5886-915c-4ea7-b4bf-6ad509991b24}, resume: ARP, restart initiated: No, disable resume: No
    [29F8:43B8][2021-02-23T08:18:33]i399: Apply complete, result: 0x0, restart: None, ba requested restart:  No
    [29F8:43B8][2021-02-23T08:18:33]i500: Shutting down, exit code: 0x0

    But looks like it keeps exiting with that 0x0 error code.

    Error name: Windows Installation Error Code 0X0
    Error number: Error 0x0
    Description: Error 0x0: Windows Installer has encountered a problem and needs to close. We are sorry for the inconvenience.
    Software: Windows Installer
    Developer: Microsoft

    I tried to contact PDQ Support but they ultimately pointed me back to you guys where its your software and if I do a straight install without PDQ Deploy I am getting same exit code 0x0.

    Any other thoughts or ideas on what could be triggering that and why it isn't exiting the installer with a success code?

    Thanks again.

  • Hi Anthony, it appears that our installer is producing a code that indicates a successful installation. We are not sure why the other tool you're using is indicating a failure. I have contacted our developers for further input.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

Reply
  • Hi Anthony, it appears that our installer is producing a code that indicates a successful installation. We are not sure why the other tool you're using is indicating a failure. I have contacted our developers for further input.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

Children
  • I'm seeing the same error code using PDQ deploy for both WaterCAD and StormCAD, but not always?? I have had some successful installations without this error while others generate the same 1073741819 return code mentioned by the OP. The program appears to install correctly although I had one installation which required a reboot before the program would launch. I haven't been able to find anything which would indicate why some installs succeed while others fail??

    BTW, you can add the following step to PDQ Deploy to remove the unwanted desktop icons:

    del "c:\users\public\desktop\WaterCad for*" /q

    Update: I'm getting more success reducing the parameters down to just /q and deleting the extra icons manually as shown above.

  • Adam, We have worked with at least one other user with the same error code using "PDQ". It was found that the CONNECTION Client installation (which is a prerequisite packaged with WaterCAD, StormCAD and the other OpenFlows products) may have been failing, although the product itself was able to proceed. So, the generic failure code was passed to PDQ.

    First, make note of the case sensitive syntax for skipping platform integration during installation, mentioned in this article.

    Next, look for the installation log files in the Windows temporary folder, which may contain details to help determine the root cause. Be sure to look at the temp folder within the user account that is deploying the installation (there may be a separate admin account for PDQ). Sort by date and look for two sets of log and ZIP files with file name beginning with the product (like "StormCAD....") as well as a set beginning with "CONNECTIONClient...".  See more here. Compress all of the files into an overall ZIP file and provide it to us either by attaching it to your reply on the forum here, or by uploading it to the secure ShareFile location here.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

  • InstallLogs.zip

    Jesse, I've uploaded the logs for one system which worked and another which failed. I'm finding that sometimes the install appears to succeed, yet the program won't launch until the user reboots their PC?? I've also tried installing the latest CONNECTION client first to see if that helps. The results are rather erratic. a few work, many fail. 

  • PC V2.zip

    Here are the logs from another try on PC V2 after a reboot and logging into the connection client. StormCAD failed with the -1073741819 error in PDQ Deploy but it did install and runs! Of course that kills the install package and the user never gets the next step telling them what was just installed.

    WaterCAD installed cleanly and runs. It ran the next steps of the install package which removes the unwanted desktop icons and then sends a install message to the user.

    This installers are all over the place?? I can't determine any logic as to why they work sometimes and/or fail, even on the same PC.....

  • Hi Adam,

    The seemingly inconsistent problems may have to do with whether or not the operating system is in a pending reboot state (another user I worked with built an initial reboot into his PDQ script) and the state of the CONNECTION Client prerequisite (an older version may or may not be already installed on the computer). 

    We will take a closer look at the logs and get back to you as soon as we can.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.