Feeds:
Posts
Comments

Archive for March, 2013

So, where’s a ClickOnce app installed?

Win XP:
C:\Documents and Settings\\Local Settings\Apps\2.0

Win 7:
C:\Users\\AppData\Local\Apps

Read Full Post »

$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog
$apps = $comAdmin.GetCollection(“Applications”)
$apps.Populate();

$newComPackageName = “MyApplicationName”

$appExistCheckApp = $apps | Where-Object {$_.Name -eq $newComPackageName}

if($appExistCheckApp)
{
$appExistCheckAppName = $appExistCheckApp.Value(“Name”)
“This COM+ Application already exists : $appExistCheckAppName”
}
Else
{
$newApp1 = $apps.Add()
$newApp1.Value(“Name”) = $newComPackageName
$newApp1.Value(“ApplicationAccessChecksEnabled”) = 0 # Security Tab, Authorization Panel, “Enforce access checks for this application
$newApp1.Value(“Identity”) = “nt authority\localservice”

$saveChangesResult = $apps.SaveChanges()
“Results of the SaveChanges operation : $saveChangesResult”
}

read-host ‘Press enter key to continue . . .’

Read Full Post »