Re: SMS Installer switches
From: Greg Regan (gregory.regan_at_plymouth.ac.uk)
Date: 02/17/05
- Next message: John J. Jobst: "GetSystemMetrics"
- Previous message: Henno Keers: "Re: Packaging ChartMaxx"
- In reply to: TerryM: "Re: SMS Installer switches"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Feb 2005 11:02:20 -0000
Many thanks to you both for your advice and guidance.
I will try it all out
Thanks again
Greg
"TerryM" <terry@nospam.com> wrote in message
news:egby%233EFFHA.3672@TK2MSFTNGP14.phx.gbl...
> Al is right...
>
> %CMDLINE% will get all the command line switches into a variable. Then
you
> will need to parse out the separate command lines and evaluate them.
> Another thing I do is set the command line to all capital letters. That
way
> the user doesn't have to use exactly what you are looking for. Also your
> command lines can be anything pretty much, /x, x, =x, >x ,... that stuff
> doesn't matter because when you are parsing out the variables and
everything
> you will be able to specify that. I'll attach a quick little sample,
> obviously the more switches you want it to recognize the more code.
> Download the attached file, compile. Then from a command prompt try:
> cmdline.exe
> Then try:
> cmdline.exe /Help
> Then
> cmdline.exe /Hi
> Then
> cmdline.exe /Help /Hi
>
> See the differences.
>
> As for the other question Al is also right use the %inst% variable.
>
> Terry
>
> "Greg Regan" <gregory.regan@plymouth.ac.uk> wrote in message
> news:eKA$$5DFFHA.208@TK2MSFTNGP12.phx.gbl...
> > Hi
> >
> > I am trying to write a single generic SMS Installer wrapper that would
> > allow
> > me to regulate the way our applications are installed.
> >
> > For instance, we use the excellent DeepFreeze product on our student PCs
> > and
> > all I ever want to do is push an app quietly when the PCs are in a
thawed
> > state, whilst I would like staff members to be able to pull an app, or I
> > may
> > want to test a student app to a frozen PC. So ideally I would like to
be
> > able to create a number of switches that allow my wrapper to behave
> > differently.
> >
> > I.e. app.exe /student or app.exe /staff or even app.exe /test.
> >
> > To do this there are two pieces of the jigsaw that I have been unable to
> > resolve. So perhaps someone would be kind enough to answer these
> > questions:
> >
> > 1 Is it possible to create switches, other than the /s, /x, /z or /m?
If
> > so, how?
> >
> > 2 Is it possible to get the SMS Installer to recognise it's source
> > location? i.e. <source> = \\servername\smspkge$\packageID, again, if
so,
> > how?
> >
> > Thanking you in anticipation
> >
> > Greg
> >
> >
> >
>
>
>
- Next message: John J. Jobst: "GetSystemMetrics"
- Previous message: Henno Keers: "Re: Packaging ChartMaxx"
- In reply to: TerryM: "Re: SMS Installer switches"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|