Quantcast
Channel: PowerShell App Deployment Toolkit
Viewing all 2341 articles
Browse latest View live

Commented Unassigned: 999 error Remove-MSIApplications version 3.5 [147]

$
0
0
I need help with error I am getting removing an applcation

From Deploy-application.ps1
Remove-MSIApplications "Entrust"

error in log file ...
<![LOG[[Pre-Installation] :: Get information for installed Application Name(s) [ENTRUST]...]LOG]!><time="13:47:45.579-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching application name [ENTRUST]]LOG]!><time="13:47:45.672-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Outlook] version [9.2.0000] matching application name [ENTRUST]]LOG]!><time="13:47:45.688-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Remove application [Entrust Entelligence Security Provider 9.2 for Windows ].]LOG]!><time="13:47:46.157-420" date="01-22-2015" component="Remove-MSIApplications" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Resolve product code to a publisher, application name, and version.]LOG]!><time="13:47:46.297-420" date="01-22-2015" component="Execute-MSI" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Get information for installed Product Code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]...]LOG]!><time="13:47:46.297-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching product code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]]LOG]!><time="13:47:46.375-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Get information for installed Product Code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]...]LOG]!><time="13:47:46.688-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching product code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]]LOG]!><time="13:47:46.750-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Executing MSI action [Uninstall]...]LOG]!><time="13:47:47.032-420" date="01-22-2015" component="Execute-MSI" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: [msiexec.exe] is a valid path, continue]LOG]!><time="13:47:47.094-420" date="01-22-2015" component="Execute-Process" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Function failed, setting exit code to [999].
Error Record:
-------------

Message : The variable cannot be validated because the value is not a valid value for the WorkingDirectory
variable.
InnerException :

FullyQualifiedErrorId : ValidateSetFailure
ScriptStackTrace : at Execute-Process<Process>, C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line
2209
at Execute-MSI<Process>, C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line 1994
at Remove-MSIApplications<Process>,
C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line 2071
at <ScriptBlock>, C:\temp\Entrust92\Deploy-Application.ps1: line 124

PositionMessage : At C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1:2209 char:34
+ If (-not $WorkingDirectory) { $WorkingDirectory = Split-Path -Path $Path -Par ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



]LOG]!><time="13:47:47.407-420" date="01-22-2015" component="Execute-Process" context="" type="3" thread="1" file="">
<![LOG[[Pre-Installation] :: Close the installation progress dialog.]LOG]!><time="13:47:47.574-420" date="01-22-2015" component="Close-InstallationProgress" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: ENTRUST_ESPOandESPW_9.2_EN_01 Installation completed with exit code [999].]LOG]!><time="13:47:47.606-420" date="01-22-2015" component="Exit-Script" context="" type="1" thread="1" file="">


Comments: same problem but with Execute-MSI : [Installation] :: Get properties from MSI file [C:\windows\ccmcache\mu\Files\jre1.8.0_31-x86.msi] in table [Property] Get-MsiTableProperty 29/01/2015 13:54:18 1 (0x0001) [Installation] :: Get information for installed Product Code [{26A24AE4-039D-4CA4-87B4-2F83218031F0}]... Get-InstalledApplication 29/01/2015 13:54:18 1 (0x0001) [Installation] :: Executing MSI action [Install]... Execute-MSI 29/01/2015 13:54:19 1 (0x0001) [Installation] :: Function failed, setting exit code to [999]. Error Record: ------------- Message : [msiexec.exe] contains an invalid path or file name. InnerException : FullyQualifiedErrorId : [msiexec.exe] contains an invalid path or file name. PositionMessage : Au niveau de C:\windows\ccmcache\mu\AppDeployToolkit\AppDeplo yToolkitMain.ps1 : 2204 Caractère : 11 + Throw <<<< "[$Path] contains an invali d path or file name." Execute-Process 29/01/2015 13:54:19 1 (0x0001)

Created Unassigned: error during blocking app ? [151]

$
0
0
![Image](http://reho.st/self/2e47b64b3e853121a8a80dabfd766e4c20930cb2.png)

I have this error on a PC (for the moment).
If I go in c:\users\public, I don't have a PSAppDeployToolkit folder, but a file with the same name


the file seems to be one of the ps1 script.

maybe a bug from a past version of the toollkit ? Maybe adding a delete before creating back the folder ?

New Post: Trying to detect "Shutdown.exe /r /t 1000"

$
0
0
I ended up using this clunky but effective code:
shutdown.exe /a 2>&1 | out-null
switch ($LASTEXITCODE) {
    0 {
        Write-Host "pending shutdown was stopped"
        break
    }
    1116 {
        Write-Host "No pending shutdown found"
        break
    }
    default {
        Write-Host "ABNORMAL: shutdown.exe /a returned $LASTEXITCODE"
        break
    }
}
It was either this or hunt event codes 1074/1075 in the event logs.
Shutdown.exe must use user32.dll because User32.dll puts out event ID 1074/1075
BTW: There are no registry changes or tasks created when you schedule a shutdown.

New Post: Oracle 11g Client installation with response file

$
0
0
I am trying to install Oracle 11g Client with response file but its not working

Execute-Process -FilePath "$dirFiles\Oracle 64 bit\setup.exe" -Arguments "-Silent -noconfig -nowait -noconsole -waitforcompletion -responsefile $dirFiles\Oracle 64 bit\response\Install_client.rsp" -WindowStyle Hidden

Please suggest what would be the right way to do this

New Post: Defer showing as failed in sccm

$
0
0
I have somewhat of a similar issue. SCCM does not retry the installation after a deferment. I am using the command line of:

Show-InstallationWelcome -CloseApps 'outlook' -AllowDeferCloseApps -DeferTimes 3 -PersistPrompt -BlockExecution -CloseAppsCountdown 300

Any suggestions? I've downloaded the updated exe and Deploy-Application.ps1 file from the source code tab. It fixed the issue stated in dlynch's post. However I still do not get a retry.

New Post: Deployment Script: Java 6 update X

$
0
0
been using this with java 6 installs seems to be going well..
this is reg file I use is below

*===============================================

    ##* PRE-INSTALLATION
    ##*===============================================
    [string]$installPhase = 'Pre-Installation'
    $path1 = "$env:windir\Sun\Java\Deployment\deployment.properties"
    Remove-Item -Force -Path $path1 -ErrorAction SilentlyContinue
    New-Item -force -Path $path1 -ItemType file -ErrorAction SilentlyContinue
    Add-Content -path "$env:windir\Sun\Java\Deployment\deployment.properties" -value "deployment.javaws.autodownload=NEVER" -ErrorAction SilentlyContinue #turnoff autoupdate
    Add-Content -path "$env:windir\Sun\Java\Deployment\deployment.properties" -value "deployment.javaws.autodownload.locked" -ErrorAction SilentlyContinue #turnoff autoupdate



    ##*===============================================
    ##* INSTALLATION 
    ##*===============================================
    [string]$installPhase = 'Installation'

     Execute-MSI -Action Install -path "$dirfiles\msix86\jre-6u13-windows-i586-p.msi" -parameters "/qb /norestart"  


    ##*===============================================
    ##* POST-INSTALLATION
    ##*===============================================
    [string]$installPhase = 'Post-Installation'

    ## <Perform Post-Installation tasks here>

    cmd /c regedit -s $dirfiles\java6U13_86.reg  -ContinueOnError $true
=============================================================


[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.6.0_31]
"HideSystemTrayIcon"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
"EnableAutoUpdateCheck"=dword:00000000
"NotifyDownload"=dword:00000000
"NotifyInstall"=dword:00000000
"Frequency"=dword:01110000
"UpdateSchedule"=dword:00000000
"PromptAutoUpdateCheck"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

New Post: SCCM Retry

$
0
0
Hello I am using the defer option with my deployment via SCCM. After deferring the application, it does not seem like an install is retried. Currently in my Software Center my application is listed with the status of "Past Due - will be retried" the retry never happens.

Do I need specify a 1618 exit code to get the retry to happen?

I should add that I am launching the script with the following command:

Deploy-Application.exe Install

My Show-Installation-Welcome line is:

Show-InstallationWelcome -CloseApps 'outlook' -AllowDeferCloseApps -DeferTimes 3 -PersistPrompt -BlockExecution -CloseAppsCountdown 300

New Post: deployment script Java 6 update X silent no autoupdate

$
0
0
worked on every version of java 6 so far...
registry file I use is below

*===============================================

    ##* PRE-INSTALLATION
    ##*===============================================
    [string]$installPhase = 'Pre-Installation'
    $path1 = "$env:windir\Sun\Java\Deployment\deployment.properties"
    Remove-Item -Force -Path $path1 -ErrorAction SilentlyContinue
    New-Item -force -Path $path1 -ItemType file -ErrorAction SilentlyContinue
    Add-Content -path "$env:windir\Sun\Java\Deployment\deployment.properties" -value "deployment.javaws.autodownload=NEVER" -ErrorAction SilentlyContinue #turnoff autoupdate
    Add-Content -path "$env:windir\Sun\Java\Deployment\deployment.properties" -value "deployment.javaws.autodownload.locked" -ErrorAction SilentlyContinue #turnoff autoupdate



    ##*===============================================
    ##* INSTALLATION 
    ##*===============================================
    [string]$installPhase = 'Installation'

     Execute-MSI -Action Install -path "$dirfiles\msix86\jre-6u26-windows-i586.msi" -parameters "/qb /norestart"  


    ##*===============================================
    ##* POST-INSTALLATION
    ##*===============================================
    [string]$installPhase = 'Post-Installation'

    ## <Perform Post-Installation tasks here>

    cmd /c regedit -s $dirfiles\java6U26_86.reg  -ContinueOnError $true


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.6.0_31]
"HideSystemTrayIcon"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
"EnableAutoUpdateCheck"=dword:00000000
"NotifyDownload"=dword:00000000
"NotifyInstall"=dword:00000000
"Frequency"=dword:01110000
"UpdateSchedule"=dword:00000000
"PromptAutoUpdateCheck"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

New Post: Show-InstallationWelcome 'date is not in the correct format for the current culture'

$
0
0
Hi,

I ran in to the same problem with version 3.5.0. I'm trying the DeferDays option, it then shows the same error as the first entry in this discussion.

mmashwani replied with solving the issue by editing the "Get-UniversalDate" feature for release 3.6.0.

While I'm not allowed to use Beta code in our production environment, I would like to know if there is a fix for release 3.5.0. And what I need to edit the "Get-UniversalDate" feature to solve my issue.

Thanks in advance.

New Post: Show-InstallationProgress -StatusMessage not accepting break line code

$
0
0
Hi,

I'm quite new to "PowerShell App Deployment Toolkit" but I like it a lot.

Yesterday I ran into a problem which I haven't been able to solve.

I want to use the "break line" option in the Show-InstallationProgress -StatusMessage code.

According to other discussions I'm using the proper escape code to get 3 separate lines in my installation progress window. But so far it only produced 1 line.

I want to accomplish the following with this code:
Show-InstallationProgress -StatusMessage  'Installation in progress. Please wait ...`nStep 1 of 15.`nInstalling Microsoft KB2834140'
Installation in progress. Please wait ..
Step 1 of 15.
Installing Microsoft KB2841325.

But I'm getting:
Installation in progress. Please wait ...nStep 1 of 15.nInstalling Microsoft KB2834140

Is anyone able to help me?

Thanks

New Post: Remote control for SCCM 2012 deploy

$
0
0
files I used
CMRcViewer.exe
RDPCORESCCM.dll
folder from console install I386\usually 00000409 or something like this

New Post: -ShowInstallationRestartPrompt -NoCountdown not visiable Version 3.5

$
0
0
I changed line 5459 in appdeploytoolkitmain.ps1 to -NoCountdown
Start-Process -FilePath "$PSHOME\powershell.exe" -ArgumentList "-ExecutionPolicy Bypass -NoProfile -NoLogo -WindowStyle Hidden -File "$scriptPath" -ReferringApplication "$installName" -ShowInstallationRestartPrompt -NoCountdown" -WindowStyle Hidden -ErrorAction 'SilentlyContinue'

And reboot prompt is working now. Not sure if there was a better place to make the change so the parameters variable would have been correct.

Created Unassigned: Show-InstallationWelcome Deferral Days [152]

$
0
0
When using the below commands, Remaining Deferrals on the dialog is always 1. In my opinion it should either be removed completely or be the number of days remaining.

Show-InstallationWelcome -AllowDefer -DeferDays 3

Show-InstallationWelcome -AllowDefer -DeferDeadline "02/15/2015 13:00:00"

New Post: Problems with -CloseAppsCountdown

$
0
0
I am having the same issue. Have you gotten anything to work?

New Post: Few questions re SCCM

$
0
0
I dont seem to be able to find the answers to these questions in the documentation.

We are using PADT to deploy applications such as flash and java which usually require browsers to be closed. We are doing this using the SCCM 2012 application model deploying with user interaction only when a user is logged in and with interactivity turned on.

Can we deploy these applications in task sequences and if we do will they automatically run in non-interactive mode? The reason I ask is because my understanding of SCCM is that this wont work due to "Only when a user is logged on". If we set these scripts to run whether or not a user is logged on will they run non-interactive when no user is logged on and run interactive when a user is logged on? I hope someone out there understands my question and can give me an answer.

Thanks in advance and nice job to the developers of this toolkit it is well received amongst the deployment team in my organisation.

New Post: SCCM Retry

$
0
0
Have you tried manually running an application deployment evaluation cycle? is your application deployed as required or available? If only available it won't ever re-run. We have been working on the assumption that this kicks off again the next time an application deployment evaluation cycle is ran. The default for SCCM 2012 is once a day. Give this a try.

Commented Unassigned: sccm "available" vs "required" deployment [143]

$
0
0
Hi,

I'm running a flash player upgrade using the v3.5.0 kit which worked great during my tests.

more specifically the welcome screen:
```
Show-InstallationWelcome -CloseApps "iexplore,firefox" -forceCloseAppsCountdown 900 -BlockExecution -PersistPrompt
```

That works fine when deploying to a machine when the advertisement is "Available". This is good for testing.
```
[Initialization] :: The following user is the console user [[EMEA\mp2827]] (user with control of physical monitor, keyboard, and mouse). PSAppDeployToolkit 1/16/2015 12:43:01 1 (0x0001)
[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence. PSAppDeployToolkit 1/16/2015 12:43:01 1 (0x0001)
[Initialization] :: Session 0 detected, process running in user interactive mode, user(s) logged in. PSAppDeployToolkit 1/16/2015 12:43:01 1 (0x0001)
[Initialization] :: Installation is running in [Interactive] mode. PSAppDeployToolkit 1/16/2015 12:43:01 1 (0x0001)

```
But when starting the actual deployment I want to set it as 'required' so the user gets it installed in any case.
```
[Initialization] :: The following users are logged on to the system: EMEA\mp2827 PSAppDeployToolkit 1/16/2015 13:52:14 1 (0x0001)
[Initialization] :: Current process is running under a system account [NT AUTHORITY\SYSTEM] PSAppDeployToolkit 1/16/2015 13:52:14 1 (0x0001)
[Initialization] :: The following user is the console user [[EMEA\mp2827]] (user with control of physical monitor, keyboard, and mouse). PSAppDeployToolkit 1/16/2015 13:52:14 1 (0x0001)
[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence. PSAppDeployToolkit 1/16/2015 13:52:14 1 (0x0001)
[Initialization] :: Session 0 detected, process not running in user interactive mode: deployment mode set to [NonInteractive]. PSAppDeployToolkit 1/16/2015 13:52:14 1 (0x0001)
[Initialization] :: Installation is running in [NonInteractive] mode. PSAppDeployToolkit 1/16/2015 13:52:14 1 (0x0001)
```

Now the interactive mode is disabled and my users do not get the option any longer to stop their work and properly close IE or FF.

Can anyone confirm if this is by design, or because otherwise is not possible or you have this fixed in 3.6? Because if we can't push out required applications without giving the end-user the option to close off some work before closing the application we need to update then that makes it not possible to user the required option in my eyes.

How do you suggest we work around this?

ps: complaints, I know. But I remain a big fan of this deployment kit, no doubt. It is the best thing around for the job! thanks again for the hard work

Maarten
Comments: Hi guys, any updates on this? Or confirmation if this is fixable or not? thanks Maarten

Commented Unassigned: Deferral not working [148]

$
0
0
Hi,

I try to use PSADT to deploy Lync client with SCCM2012 R2. I need to allow users to defer deployment 3 times. I created a package, not an application in SCCM. The toolkit run the first time on my test computer, then I select defer and it never ask me a second time. In SCCM, the deployment is success, so it don't try to rerun it on the computer. But the software is still not installed. May I have missed some configuration. Can you help me please ?

Thanks,
nmouzet.
Comments: Hi, Did you manage to resolve this, Im experiencing this issue too? Thanks Craig

New Post: Defer showing as failed in sccm

$
0
0
Hi,

Im having a similar issue using toolkit version 3.50. Once deferred SCCM is not retrying the deployment as the program is apparently "completed successfully" therefore not being re-run.

Did you manage to resolve your issue?

Thanks
Craig

New Post: Regarding the SCCM limitation with Applications and "allow user to interact with program installation"

$
0
0
(Apologies if this requires a new thread)

I am running into a problem solely with the Show-InstallationPrompt dialogs displaying under session 0, and only with PowerShell 3.0 or 4.0. The Show-InstallationPrompt dialogs, when run under session 0 (via ConfigMgr 12 or pesexec) with PowerShell 3.0 or 4.0 on Win7x64 either fail for display, or sometimes will display up to 10 minutes later. All other dialogs are presented as expected.

Has anyone expierned this problem, and if so, have any idea what may going on here.
Viewing all 2341 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>