Re: SMS Installer Variables

Tech-Archive recommends: Fix windows errors by optimizing your registry



I was thinking the same thing. . .

I encountered issues when using "Copy Local Files" when I had several (200+)
systems running it at the same time. "Install Files" has always worked well
for me.

"Terry Matthews" <nospam@xxxxxxxxxxx> wrote in message
news:exfKO%2319FHA.1288@xxxxxxxxxxxxxxxxxxxxxxx
> Only the account "System" has permissions to these files?? Even though
> someone else had permissions to them to begin with?
>
> You know I don't ever really like doing "copy local" for files. Unless
> you have a need to do it that way, I usually just will include the files
> in my package and do a "install files" script item. Maybe something with
> the way the transfer of the copy local is happening is getting messed up?
>
> Terry
>
> "Mikecl" <mike_clark_2@xxxxxxxxxxx> wrote in message
> news:es6FBwy9FHA.1148@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi Guys,
>>
>> I am getting the files copied to the pc but only system has rights to
>> read/open them is this to be expected?
>>
>> Regards Mike
>>
>> "Terry Matthews" <nospam@xxxxxxxxxxx> wrote in message
>> news:OFNIuCs9FHA.1248@xxxxxxxxxxxxxxxxxxxxxxx
>>> Yes, use the "get environment variable" script item.
>>>
>>> Terry
>>>
>>> "Mikecl" <Mike_Clark_2@xxxxxxxxxxx> wrote in message
>>> news:%23yTgKyr9FHA.2696@xxxxxxxxxxxxxxxxxxxxxxx
>>> > Hi Greg,
>>> >
>>> > Thanks very much very helpful. Can I import the variables set on the
>>> > machines into an instaler script if so how e.g
>>> > %userprofile% I noticed an optiojn to create a log file can you output
>> the
>>> > variables anf file copies etc into a file on the PC's?
>>> >
>>> > Thanks Mike
>>> >
>>> > "Greg Ramsey" <ramseyg@xxxxxxxxxxxxxxxxxxx> wrote in message
>>> > news:OVmBwRp9FHA.472@xxxxxxxxxxxxxxxxxxxxxxx
>>> >> Something like this:
>>> >>
>>> >> item: Set Variable
>>> >> Variable=USERTEMPLATE
>>> >> Value=C:\documents and settings\%username%\Application
>>> >> Data\Microsoft\Templates
>>> >> end
>>> >> item: Install File
>>> >> Source=C:\temp\claims.txt
>>> >> Destination=%USERTEMPLATE%\claims.txt
>>> >> Flags=0000000000000010
>>> >> end
>>> >>
>>> >>
>>> >> And to add to what Terry Said -- set your program to "Allow Users to
>>> >> interact with this program" so they will see what you're displaying.
>>> >>
>>> >> Als, use care when displaying a message that stops the script until
>> user
>>> >> intervention -- that would keep your source files in use until the
>>> >> user
>>> >> clicks "ok" or whatever. . that would be bad if you need to upate
>>> >> DPs.
>> .
>>> >> .
>>> >>
>>> >>
>>> >> "Mikecl" <mike_clark_2@xxxxxxxxxxx> wrote in message
>>> >> news:%23vB49Fp9FHA.2816@xxxxxxxxxxxxxxxxxxxxxxx
>>> >>> Hi Greg,
>>> >>>
>>> >>> Thanks for the info very helpful. I can see how the profile
>> directories
>>> >>> appear in the file but how do you then copy files to the the
>>> >>> relevant
>>> >>> profiles?
>>> >>>
>>> >>> Cheers Mike
>>> >>>
>>> >>> "Greg Ramsey" <ramseyg@xxxxxxxxxxxxxxxxxxx> wrote in message
>>> >>> news:%23q41hxo9FHA.3876@xxxxxxxxxxxxxxxxxxxxxxx
>>> >>>> Someone else may have a better solution, but here's what I've done
>>> >>>> in
>>> >>>> the
>>> >>>> past.
>>> >>>>
>>> >>>> Execute program (and wait) -- do a "dir /b "c:\documents and
>> settings"
>>> >>>> >%temp%\profiles.txt
>>> >>>> then read text file to get each profile name
>>> >>>>
>>> >>>> You will probably still want to put it into "default user", so when
>>> >>>> a
>>> >>>> new
>>> >>>> user logs on he/she will have the template.
>>> >>>>
>>> >>>> copy & paste everything below into SMS installer for an example:
>>> >>>> (you could also include some "if statements" to exclude specific
>>> >>>> profiles
>>> >>> if
>>> >>>> desired (e.g. administrator)
>>> >>>>
>>> >>>> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''code
>> start
>>> >>>> after this line''''''''''''''''''''''''''''''''
>>> >>>> item: Check Disk Space
>>> >>>> end
>>> >>>> item: Execute Program
>>> >>>> Pathname=cmd.exe
>>> >>>> Command Line=/c dir /b "c:\documents and settings"
>>> >>>> >%temp%\profiles.txt
>>> >>>> Flags=00000010
>>> >>>> end
>>> >>>> item: Read/Update Text File
>>> >>>> Variable=username
>>> >>>> Pathname=%temp%\profiles.txt
>>> >>>> end
>>> >>>> item: Display Message
>>> >>>> Title English=username
>>> >>>> Text English=%username%
>>> >>>> Text English=
>>> >>>> Text English=
>>> >>>> Text English=c:\documents and settings\%username%\desktop
>>> >>>> end
>>> >>>> item: End Block
>>> >>>> end
>>> >>>> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''code
>>> >>>> end
>>> >>> before
>>> >>>> this line''''''''''''''''''''''''''''''''
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> "Mikecl" <mike_clark_2@xxxxxxxxxxx> wrote in message
>>> >>>> news:OVRXtKo9FHA.3592@xxxxxxxxxxxxxxxxxxxxxxx
>>> >>>> > Hi,
>>> >>>> >
>>> >>>> > I have written a script to copy a word template to the
>>> >>>> > C:\documents
>>> >>>> > and
>>> >>>> > Settings\username\Application Data\Microsoft\Templates but I have
>>> >>>> > a
>>> >>> couple
>>> >>>> > of issues 1 is getting the logged on user so I thought of using
>>> >>>> > the
>>> >>>> > defaultusername. However the files did not get copied to the
>> correct
>>> >>> place
>>> >>>> > and although running the script on the server seems to show the
>>> >>>> > correct
>>> >>>> > variables I am not sure how to output them to the screen or file
>>> >>>> > so
>> I
>>> >>> can
>>> >>>> > see what is going on. Can anyone help please?
>>> >>>> >
>>> >>>> > Thanks
>>> >>>> >
>>> >>>> >
>>> >>>
>> ============================================================================
>>> >>>> > =========
>>> >>>> >
>>> >>>> > item: Remark
>>> >>>> > Text=Get Variables
>>> >>>> > end
>>> >>>> > item: Check Disk Space
>>> >>>> > end
>>> >>>> > item: Parse String
>>> >>>> > Source=%WIN%
>>> >>>> > Pattern=\
>>> >>>> > Variable1=SYSDRIVE
>>> >>>> > end
>>> >>>> > item: Open/Close INSTALL.LOG
>>> >>>> > Pathname=%SYSDRIVE%\committee.log
>>> >>>> > Flags=00000010
>>> >>>> > end
>>> >>>> > item: Open/Close INSTALL.LOG
>>> >>>> > end
>>> >>>> > item: Get Registry Key Value
>>> >>>> > Variable=CTEMPLATES
>>> >>>> > Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell
>> Folders
>>> >>>> > Value Name=Common Templates
>>> >>>> > Flags=00000100
>>> >>>> > end
>>> >>>> > item: Get Registry Key Value
>>> >>>> > Variable=DEUSERNAME
>>> >>>> > Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
>>> >>>> > Value Name=DefaultUserName
>>> >>>> > Flags=00000100
>>> >>>> > end
>>> >>>> > item: Set Variable
>>> >>>> > Variable=DOCS
>>> >>>> > Value=Document and Settings
>>> >>>> > Flags=00010100
>>> >>>> > end
>>> >>>> > item: Set Variable
>>> >>>> > Variable=USRTEMPLATE
>>> >>>> > Value=Application Data\Microsoft\Templates
>>> >>>> > Flags=00010100
>>> >>>> > end
>>> >>>> > item: Set Variable
>>> >>>> > Variable=USRTEMPLATES
>>> >>>> > Value=%SYSDRIVE%\%DOCS%\%DEUSERNAME%\%USRTEMPLATE%
>>> >>>> > Flags=00010100
>>> >>>> > end
>>> >>>> > remarked item: Check if File/Dir Exists
>>> >>>> > Pathname=%USRTEMPLATES%\Sutrep*.dot
>>> >>>> > Flags=00000100
>>> >>>> > end
>>> >>>> > item: Delete File
>>> >>>> > Pathname=%USRTEMPLATES%\Sutrep*.dot
>>> >>>> > end
>>> >>>> > remarked item: Check if File/Dir Exists
>>> >>>> > Pathname=%USRTEMPLATES%\Committee Rep 2005.dot
>>> >>>> > Flags=01000100
>>> >>>> > end
>>> >>>> > item: Remark
>>> >>>> > Text=Check for Template version
>>> >>>> > end
>>> >>>> > remarked item: If/While Statement
>>> >>>> > Variable=REPORT
>>> >>>> > Value=1.1
>>> >>>> > Flags=00000001
>>> >>>> > end
>>> >>>> > item: Copy Local File
>>> >>>> > Source=%INST%\Committee Rep 2005.dot
>>> >>>> > Destination=%USRTEMPLATES%\Committee Rep 2005.dot
>>> >>>> > Flags=0000000001000010
>>> >>>> > end
>>> >>>> > item: Copy Local File
>>> >>>> > Source=%INST%\Committee Rep 2005.dot
>>> >>>> > Destination=%CTEMPLATES%\Committee Rep 2005.dot
>>> >>>> > Flags=0000000001000010
>>> >>>> > end
>>> >>>> > item: Copy Local File
>>> >>>> > Source=%INST%\Committee Rep 2005.dot
>>> >>>> > Destination=%USRTEMPLATES%\Committee Rep 2005.exe
>>> >>>> > Flags=0000000001000010
>>> >>>> > end
>>> >>>> > item: Copy Local File
>>> >>>> > Source=%INST%\Committee Rep 2005.dot
>>> >>>> > Destination=%CTEMPLATES%\Committee Rep 2005.exe
>>> >>>> > Flags=0000000001000010
>>> >>>> > end
>>> >>>> > item: Open/Close INSTALL.LOG
>>> >>>> > Flags=00000001
>>> >>>> > end
>>> >>>> > item: Exit Installation
>>> >>>> > Variable=0
>>> >>>> > Flags=0
>>> >>>> > end
>>> >>>> >
>>> >>>> >
>>> >>>>
>>> >>>>
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • RE: OpenReport canceled error
    ... The problem is printer related and also entails the permissions on the ... After the help from Terry and other posts on this great site, ... lead me to the print server where the permissions for AuthenticatedUsers on ... I guess the OpenReport function wants more access I ...
    (microsoft.public.access.reports)
  • Re: SMS Installer Variables
    ... Only the account "System" has permissions to these files?? ... Terry ... > Regards Mike ... >>> variables anf file copies etc into a file on the PC's? ...
    (microsoft.public.sms.installer)
  • Re: Are there TWO Desktops?
    ... Terry Pinnell wrote: ... presumably then my icons would stay in proper sequence. ... The only problem is permissions, now that you moved a program to all users, and IF you ran another user who has no permission to run one of those programs you made available to them. ... I move mine on my single user system so that a backup of the "menu" folder backs up all the shortcuts. ...
    (microsoft.public.windowsxp.customize)
  • Re: Exch2k3 print listing of Public Folders
    ... Rich Matheisen [MVP] wrote: ... >>able to get a file containing the folder paths, permissions, etc. from ...
    (microsoft.public.exchange.admin)