Using Paramter in action script

Hi,

I am trying to create a fixlet to update gotomeeting using .msi installer file.
gotomeeting.msi can be installed for a specific user logged in or to all users in a particular machine.

but when i run an action from console it is by default installing for all users. inorder to install for specific user gotomeeting has specific parameter predefined but that are not working in my action script.

Install for all users or for the current user only
G2MINSTALLFORALLUSERS=1 means the product will be installed for all users on the machine.

G2MINSTALLFORALLUSERS=0 means the product will be installed for the current user only. This is the default mode.

this is how my action script looks like,

prefetch G2MSetup10.9.17359_IT.msi sha1:0a43f306fc0a109417b07d3b901fd6af717d96e7 size:20201984 https://builds.cdn.getgo.com/builds/g2m/17359/G2MSetup10.9.17359_IT.msi?c_prod=g2mwt&c_cmp=care?c_prod=g2mwt&c_cmp=care&_ga=2.148866097.764059628.1590400095-1096108200.1575887416 sha256:3f244426c4e80c1d109ad275f503c205933450b485dfecb313eed6ad379440ae


waithidden msiexec /i __Download\G2MSetup10.9.17359_IT.msi /quiet /norestart G2MINSTALLFORALLUSERS=0

am i doing anything wrong? any suggestions?

A few things that can help you:

  1. are you using the Software Distribution Dashboard in the console/WebUi? This can help automatically build the package for you, including relevance and log file creation etc.
  2. Do remember that as default, the BigFix agent will run the command in the context of LocalSystem. This will affect user specific install switches. Check out the ‘Run as’ options.
  3. What hapens when you run that command locally, with the G2MINSTALLFORALLUSERS=0 ?
  4. Test the command locally using PSExec if you need to simulate what the BigFix agent will be doing.

https://developer.bigfix.com/action-script/reference/execution/override.html

You can’t install a product for a single user using bigfix unless you run the installer as the current user and there is a current user logged in at the time. There is an override option to enable this in bigfix, but you often have to copy the installer to somewhere the current user can access it first. https://developer.bigfix.com/action-script/reference/execution/override.html

Otherwise you’d have to install it for all users.

Specifically, use PSExec to launch CMD as SYSTEM, then test within that context.

1 Like