Hi

I am trying to deploy the latest version of Flash - however they have changed the way that disabling updates are managed. Now I need to copy settings.sol into every users AppData folder. I am doing this via a VB Script, if I run the following script manually, it appears to work OK - however when running from SCCM the script starts but never finishes and does not copy the files.

Here is the script
'On Error Resume Next
Dim FSO : Set FSO = CreateObject("Scripting.FilesystemObject")
Dim oFile

For Each oSub in FSO.GetFolder("C:\Users").SubFolders

If oSub.Name <> "NetworkService" And oSub.Name <> "LocalService" Then

If Not FSO.FolderExists(oSub & "\AppData") Then
FSO.CreateFolder oSub & "\AppData"
End If

If Not FSO.FolderExists(oSub & "\AppData\Roaming") Then
FSO.CreateFolder oSub & "\AppData\Roaming"
End If

If Not FSO.FolderExists(oSub & "\AppData\Roaming\Macromedia") Then
FSO.CreateFolder oSub & "\AppData\Roaming\Macromedia"
End If

If Not FSO.FolderExists(oSub & "\AppData\Roaming\Macromedia\Flash Player") Then
FSO.CreateFolder oSub & "\AppData\Roaming\Macromedia\Flash Player"
End If

If Not FSO.FolderExists(oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com") Then
FSO.CreateFolder oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com"
End If

If Not FSO.FolderExists(oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support") Then
FSO.CreateFolder oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support"
End If

If Not FSO.FolderExists(oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer") Then
FSO.CreateFolder oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer"
End If

If Not FSO.FolderExists(oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys") Then
FSO.CreateFolder oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys"
End If

if fso.FileExists(oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\settings.sol") then
FSO.CopyFile "C:\Windows\System32\Macromed\Flash\settings.sol", oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\settings.sol", True
Else
FSO.CopyFile "C:\Windows\System32\Macromed\Flash\settings.sol", oSub & "\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\settings.sol", True
End If

End If
Next


Any ideas why this is failing from SCCM?

Many thanks in advance for any assistance.

Cheers
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Add to your mst a reg key into active setup to call your vbscript to make the change to the user's profile. Works like a charm.

Here is what I used in my FlashPatch.exe.
Copy Files:
Source: %SYSTEMDRIVE%\Temp\Flash_10318114_Patch\settings.sol
Destination: %USERPROFILE%\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\Settings.sol

Here is the Active Setup reg entry.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Flash_10318114_Patch]
@="Triggers FlashPatch.exe to setup HKCU changes for the current user"
"Locale"="*"
"StubPath"="c:\Temp\Flash_10318114_Patch\FlashPatch.exe /s
"Version"="1"

The MST copied the files into the locations above and the FlashPatch.exe did the work per user.
Answered 09/08/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity