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

Change installation directory

Hi,

I've had no luck finding a way to create a silent installation which installs Sophos Endpoint (v.9.5) to a directory other than the default (C:\Program Files\Sophos).

Using setup.exe along with some of the arguments I'm able to get it to install and update just fine, but I'm attempting to install on machines which are running Faronics Deep Freeze. I'm attempting to install to a thawspace, so that the anti-virus can update successfully and not have all the updates wiped out when the machine is rebooted.

In this case, I would like to install all of the Sophos files to X:\Sophos. I do not see any parameters for the setup.exe which allow for this, or am I just missing it? I've searched through the forums and knowledgebase but am afraid I can't find what I'm looking for.

Thanks in advance for the help.

Chris

:8795


This thread was automatically locked due to age.
  • HI Bach_tenor

    Welcome to SophosTalk

    As far as I am aware, the MSI Installer will use the default directory specified in the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

    On the right is 'ProgramFilesDir'

    If this is set to X:\Sophos it will install to X:\Sophos\Program Files\ instead of the default C:\Program Files

    This is a workaround solution - You could change the registry key to X:\Sophos and then change it back after the install via a script. 

    Important - Ensure you have a backup of the registry as it is very crucial to the system.(Warning about editing Windows registry)

    Also I recommend you test this first before deploying globally.

    Alternatively, if you know VB another article on this forum has a script you can look at:

    Good luck :)

    :8853
  • wickedkittenz, thanks for your reply. It may be a workaround, but it seems to work like a charm. PS. I am in fact deploying this with a script which edits the registry before and after installation, everything seems to be working correctly.

    Chris

    :8869
  • Did you need to change the hax value key, or just the 'ProgramFilesDir' key?

    :13443
  • I have tried this solution in my environment and it doesn't work.

    I have a 64-bit Windows 7 system so there is an extra key called ProgramFilesDir (x86).

    I tried changing both of them and Sophos endpoint client 10.0 still installed to C:\Program Files (x86)\Sophos.

    Please help.  I have to get this installation working.

    We have Deep Freeze as well and cannot save to C: drive.

    :21843
  • There will be a number of files saved to C I would think irrespective of the program files location. The drivers for example under: "C:\windows\system32\drivers\".  SophosBootTasks.exe and sdccoinstaller.dll under system32 and all the appdata logs and temp locations: "C:\ProgramData\Sophos \".

    I would think you need to apply updates as part of a maintenance thaw window:

    http://www2.faronics.com/en/Support/FAQ.aspx#5

    It is possible to disable AutoUpdate from updating unless poked in a scheduled Window.  I think this is the approach you need.

    The following piece of vbscript can be used to kick off an update:

    dim objALC : set objALC = CreateObject("ActiveLinkClient.ClientUpdate.1")
    objALC.UpdateNow 1,1

    AutoUpdate will also do a check at startup which you will want to disable, to do so:

    http://www.sophos.com/support/knowledgebase/article/27646.html

    Between these 2, you should be able to kick off an update during a thaw.  Maybe along with any Windows updates.

    Hope it helps.

    Regards,

    Jak

    :21845