Symantec Developer Group

 View Only
  • 1.  Help on Audio Drivers wise script..

    Posted Apr 28, 2015 09:54 AM

    Hi Folks,

      I need help on wise script. The main purpose of the script is to find out the device model number and then install audio drivers accordingly .
    Per example: 
      If  Model number = HP Folios 9480m 
                           then 
                             Execute " audiodriver 1 setup.exe" -s -f1"setup1.iss" 
                           else if model number = HP Folios 9470m
                             then 
                               Execute "audiodriver2 setup.exe" -s -f1"setup1.iss"
                            End
                      End
     
    I dont know how to get the device information. Please help me on this script.
    Fyi:
    I am using Wise package studio 8.0 to package the application.I have 2 audio drivers for two different laptop models and Windows 7 64 bit OS.


  • 2.  RE: Help on Audio Drivers wise script..

    Posted May 01, 2015 02:52 PM

    I am trying to use WMI to determine if a package can be run on a computer. I'm not sure how to start with this. I know that i will need the WMI to set a variable and from that i can have wisescript run or not run.

    This is the WMI that i have started.

     

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")


    Set colComputerSystem = objWMIService.ExecQuery ("Select * from Win32_computersystem")

    Set colBIOS = objWMIService.ExecQuery ("Select * from Win32_BIOS")

    For each objComputerSystem in colComputerSystem

        GetComputerManufacturer = objComputerSystem.Manufacturer

        GetComputerModel = objComputerSystem.Model

    Next

    Wscript.echo "The system you are on is a " & GetComputerManufacturer & " " & GetComputerModel

     

    how would i get this to output to a variable?