Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Installation in alle Benutzerprofile


1 reply to this topic

rja

rja
  • Members
  • 9 posts

Posted 18 April 2005 - 09:48

Hallo zusammen,

ich suche nach einer Möglichkeit in alle Benutzerprofile eine Verzeichnisstrucktur mit Datein zu installieren und diese alle bei einer Deinstallation wieder zu löschen.

Für vorschläge bin ich sehr dankbar.

Gruß
Rainer

rja

rja
  • Members
  • 9 posts

Posted 12 May 2005 - 17:24

Hallo und guten Tag,

hab eine Lösung für das löschen gefunden.

:VBS Script
Set fso = CreateObject("Scripting.FileSystemObject")
Set objFolder = fso.GetFolder("C:\Documents and " & _
"Settings")

For Each Profile In objFolder.SubFolders
Select Case UCase(Profile.Name)
Case "ADMINISTRATOR", "ALL USERS", "DEFAULT USER"
'Do nothing
Case Else
fso.DeleteFolder Profile.Path, True
End Select
Next

Danke für das lesen.