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.
Parents
  • 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
Reply
  • 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
Children
No Data