/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Creating a Script to install either x64 or x86 version of software

07/13/2017 977 views

0FhXLw.jpeg



Want to create a script to install *.exe in 64 bit and if fails cause OS is x86 then install x86 version of Exe.

0 Comments   [ + ] Show comments

Comments


All Answers

0
Using this in Verify will result in success being X86 and remediation x64.

Verify a registry value is exactly...
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
Name: PROCESSOR_ARCHITECTURE
Equal to: x86

Also - Please delete your duplicate  Questions. :-) Thanks
Answered 07/13/2017 by: Desktop Jockey
Second Degree Green Belt

  • If you would like it to happen the other way around switch:
    Equal to: AMD64
    • Running as SYSTEM
      Checking if registry 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' value 'PROCESSOR_ARCHITECTURE' is equal to 'AMD64' did not succeed: (0)
      Creating process returned non-zero: C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\969 \Silverlight.exe /q /doNotRequireDRMPrompt : (0) The operation completed successfully.
      Error Code: 0
      Status Code: 1618


      Checking if registry 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' value 'PROCESSOR_ARCHITECTURE' is equal to 'AMD64'
      Launching program: 'C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\969 \Silverlight.exe' '/q /doNotRequireDRMPrompt ' wait='true'

      error
      • This content is currently hidden from public view.
        Reason: Removed by member request For more information, visit our FAQ's.
      • This content is currently hidden from public view.
        Reason: Removed by member request For more information, visit our FAQ's.
      • X86 Error
        Running as SYSTEM
        Checking if registry 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' value 'PROCESSOR_ARCHITECTURE' is equal to 'x86' succeeded
        Creating process returned non-zero: C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\969 \Silverlight.exe /q /doNotRequireDRMPrompt : (0) The operation completed successfully.
        Error Code: 0
        Status Code: 1618

        Checking if registry 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' value 'PROCESSOR_ARCHITECTURE' is equal to 'x86'
        Launching program: 'C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\969 \Silverlight.exe' '/q /doNotRequireDRMPrompt ' wait='true'
      • Sorry but 1618 means there is already an installation in progress. Do you have something running?
0


script now


Answered 07/13/2017 by: Kdebiasse
8th Degree Black Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ