I installed my package on several station as different user type (admin,standard,remote user etc). I conditioned the installation only when install is root install variable is true (admin user). From some reason , on some machines , when UAC is off , the variable "installer is root install" returning wrong value, meaning when standard user doing the installation the condition that check if "installer is root install" is true are met. How the installer set "installer is root install"? what is the exactly method that installer use to set this variable? I would like to verify that there is nothing wrong with these machines , no missing libraries/command that might used by the installer and therefore I would like to set my own variable by using same way as the installer do.

I will appreciated you support.

Thanks, Ronen

asked 15 Aug '13, 01:33

Ronen's gravatar image

accept rate: 0%

One of the checks is based on whether HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment environment key is writable. Perhaps in your case the key is writable?

What you can do is create your own variable that is based on more detailed check - for example:

<if> <actionList> <setInstallerVariable> <name>is_windows_admin</name> <value>1</value> </setInstallerVariable> </actionList> <conditionRuleList> <isTrue> <value>${installer_is_root_install}</value> </isTrue> <userTest> <logic>is_windows_admin_account</logic> <username>${system_username}</username> </userTest> </conditionRuleList> <elseActionList> <setInstallerVariable> <name>is_windows_admin</name> <value>0</value> </setInstallerVariable> </elseActionList> </if>

This will check both that the installer_is_root_install variable is true and that current user is member of Administrators group.


answered 15 Aug '13, 04:53

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

I tried you suggested solution which described in that thread. When UAC is off ("Never Notify"),for all users , non-admin as well for admin , the variable is_windows_admin set to 0. There is no difference between in the behavior of the different users types. Please not that this issues were observed on several PCs. On some other PCs the code which include only the check of installer_is_root_install is working as required.

  1. Do you know if there is any settings which can cause to this issue ?
  2. If yes, Is there any option in the installer to verify these settings ?
  3. Is it possible to schedule a WebEx conf. call with your support ?

Thanks, Ronen


answered 26 Aug '13, 08:38

Ronen's gravatar image

accept rate: 0%

Could you run the installer with --debugtrace debug.txt option and send us the debug.txt file to support@bitrock.com?

Also, could you check the registry permissions for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment key and send us the result (i.e. a screenshot of permissions view in Registry Editor)?

(27 Aug '13, 06:33) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 15 Aug '13, 01:33

Seen: 1,360 times

Last updated: 27 Aug '13, 06:33