Re: SMS Installer switches

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Greg Regan (gregory.regan_at_plymouth.ac.uk)
Date: 02/17/05


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



Relevant Pages

  • Re: program administrative privlidge
    ... How does one run the "run as" command? ... line or switches, only admin/password? ... >All ways to make the app launch using RunAs ... >> program that requires administrative rights to run ...
    (microsoft.public.windowsxp.security_admin)
  • Re: SMS Installer switches
    ... will need to parse out the separate command lines and evaluate them. ... obviously the more switches you want it to recognize the more code. ... > I am trying to write a single generic SMS Installer wrapper that would ... > state, whilst I would like staff members to be able to pull an app, or I ...
    (microsoft.public.sms.installer)
  • Re: Access Login no longer working
    ... One way this could happen is if the user was starting the app from a ... shortcut that includes the /user and /password command line switches. ...
    (comp.databases.ms-access)
  • Re: Remove Icon from Tray and not hide
    ... The name of the app is VNC Server for remote management. ... Maybe there are command line switches that could be used, ... Being a coder I do write switches for tray apps at times. ... Newbie Coder ...
    (microsoft.public.windowsxp.general)
  • Re: Programming "efficiently" on given hardware - what does it mean really?
    ... >> in a command line world again. ... > launching an app, selecting menu items, hoping it does what ... In a GUI environment, use a RAD tool to whip up a quick, simple UI ...
    (comp.programming)