mcslemon Posted March 10, 2011 Share Posted March 10, 2011 Hi,I'm following a recommended way of repackaging Sophos for deployment through tools like Zenworks and SCCM which uses WinRAR as its method of compression and setup.Within the SFX comment file, you launch setup.exe with some default command line switches e.g. Setup=SAVSCFXP\setup.exe -mng yes -ni -s -crt R -updp c:\temp\savinst\SAVSCFXPXML\ -G "\sophos\Group"The -G bit I added as I want the installer to put the machine into the right group once Sophos installed. Problem I'm having is that we have about 15-20 groups, so 15-20 installers; this means ensuring that each RAR/SFX file is pointing to the right group.Is there a method in WinRAR that allows you to pass a command line variable to the setup string in the comment file? For example:c:\temp\savinst.exe NEXTGROUPHaving NEXTGROUP pass through to here:Setup=SAVSCFXP\setup.exe -mng yes -ni -s -crt R -updp c:\temp\savinst\SAVSCFXPXML\ -G "\sophos\" & %VAR%ending up as:Setup=SAVSCFXP\setup.exe -mng yes -ni -s -crt R -updp c:\temp\savinst\SAVSCFXPXML\ -G "\sophos\NEXTGROUP"Thanks for any thoughts. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now