Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Winrar command line injection

- - - - -

  • Please log in to reply
No replies to this topic

#1
mcslemon

mcslemon

    Newbie

  • Member
  • 42 posts
  • Joined 27-August 05
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 NEXTGROUP

Having 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.


How to remove advertisement from MSFN



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN