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

Package for standalone AV

Hello,

we have some machines that are not connected to our network. For those pc's, notebooks I can install the standalone version, but you need to give in username and password. Is there a way to create a package where you can set the username and password to dowload the updates from the sophos site, so that when you want to install it on a machine, you just need to run that package and it will be installed without giving in the username and password.

Jo

:15873


This thread was automatically locked due to age.
  • OK, when I'm trying to export a policy, I'm getting the following error message:

    C:\Users\jvanattenhoven>"c:\program files (x86)\sophos\enterprise console\ExportConfig.exe" -type AU policy "external" -output "%userprofile%\desktopsavinst\savscfxpxml\sau\sauconf.xml"
    ExportConfig tool version 2.0
    Export default or named policies
    Sophos Endpoint Management
    Error: Invalid command line at: policy
    
    Usage:
    Command line:
    c:\program files (x86)\sophos\enterprise console\ExportConfig.exe -type <AU, SAV, SCF, SAC, DATC, DEVC, TP or LEGAU> [-policy <policy>] [-output <file
    Path>] [-backwardsCompatable]
    Where policy is the name of the policy or not specified for Default.
    -backwardsCompatable :  Use a format backwards compatable with SAV 5

     What can I do to solve this?

    :15999
  • HI,

    You are missing the - infront of "policy" and you shouldn't need double quotes unless the policy has a space in the name I would think but it's the missing - i assume.

    Regards,

    Jak

    :16003
  • Oh stupid me.I'm sorry. But when I change it, it seems to start but almost immediately I'm getting the message that the exportconfig tool has stopped working :( and closed the program.

    :16005
  • HI,

    Don't worry a fresh pair of eyes...  I suspect that the tool is unable to talk to the Sophos Management Service.  Can you check that the Sophos Management Service is running on the machine by running "services.msc"? 

    Regards,

    Jak

    :16009
  • Thank you. I'm gonna try it also from the server itself. Now I've tested it from my pc, where I also have the console installed. I'll let you know the outcome.

    jo

    :16011
  • I managed to create the xml files via the server. The only thing is now to create a self-extracting archive that executes the setup file with the appropriate parameters. Because I don't want to us Winrar (not free), I was thinking about using 7-zip. But the problem is I'm not familiar with the parameters and was wondering if someone ever used 7-zip to di this or maybe another tool that I can use, with the correct parameters.

    Jo

    :16025
  • Hi,

    Looking at the Sophos Packager tool and what it does when it creates an SFX, it uses the 7-Zip command line tool "7za.exe" and the plugin ("7z Library, SFXs for installers, Plugin for FAR Manager" available here: http://www.7-zip.org/download.html ) in particular the file needed is: "7zS.sfx ".  

    It appears to run:

    "C:/sdp_10\7za\7za.exe" a "C:/sdp_10\cid_packager_archive.7z" "C:\Users\user1\AppData\Local\Temp\CIDPackager\*" -r -mx9 -mmt -ms=e256m

    In order to first create the archive, in this case:
    "cid_packager_archive.7z " 

    It then creates the SFX by using Windows "copy.exe" to append the files:

    "cid_packager_archive.7z " 

    "cid_packager_setup.tx t"

    "7zS.sfx "


    to create: "SophosEndpoint.exe "

    E.g.

    C:\Windows\system32\cmd.exe /c copy /b "C:/sdp_10\7za\7zS.sfx" + "C:\Users\user1\AppData\Local\Temp\CIDPackager\cid_packager_setup.txt" + "C:/sdp_10\cid_packager_archive.7z" "C:/sdp_10\SophosEndpoint.exe"

    Where:
     "cid_packager_setup.tx t" is a text file containing something like:


    ;!@Install@!UTF-8!

    Title="SAVInstaller"

    ExecuteFile="install.bat"

    ;!@InstallEnd@!

    In this example it would run a batch file called install.bat after running.  The batch file could contain the setup.exe and the switches required.  Sophos appears to run a VBscript file called setup.vbs which essentially runs setup.exe with the necessary switches.  I assume a vbscript is chosen so it could launch setup.exe silently using "run " method of "WSCript.shell ".

    Regards,
    Jak 

    :16039
  • Thanks Jak, I'm gonna try it, but I already managed by using the winrar tool.

    I was just wondering if there's also a tool to create a package for MacOSX.

    Jo

    :16057
  • Hello Jo,

    I was just wondering if there's also a tool to create a package for MacOSX.

    Depends on what you want it to do. We just zip the Sophos Anti-Virus.mpkg . Macs then appear in the Unassigned group. Oh, and we provide a .plist to set the update location (remember your Finding Mac's thread?).

    Christian

    :16491