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

New Post: /32 switch not working

$
0
0
Thanks for reporting this issue. This has been fixed in the latest 3.5 beta under the "Source Code" tab of this site. Please test and lets me know if it is working OK for you now.

Closed Unassigned: Apps not being blocked during install [90]

$
0
0
Love this toolkit, but I'm having an issue on our Terminal Servers (2008 R2). I'm trying to update Java and have the installer checking for "iexplore,chrome,java,jucheck", kill them, and block their execution. I see in the log file that it does create the HKLM entries. The programs are killed, but users just start their browser back up.

I know I've tested this on desktops and they are blocked for the duration of the install.

Is anyone else running into this?
Comments: This issue should be fixed in current 3.5 beta. If issues persists, please reopen ticket.

Closed Unassigned: Close applications countdown timeout without reason. [96]

$
0
0
Hi,

Firstly, congratulations for your work.

I encounter a problem unexplained when deploying one of my applications.

After 5 minutes of the applications countdown, the error code 1618 is returned directly before the time limit set at 25 minutes.

The problem always occur.

Here are the logs and I put you an attachment with the entire file.

```
[06-11-2014 17:11:11] [Initialization] ********** setup started.
[06-11-2014 17:11:11] [Initialization] Script [C:\Windows\ccmcache\w\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Windows\ccmcache\w\AppDeployToolkit\AppDeployToolkitMain.ps1]
[06-11-2014 17:11:11] [Initialization] ********** script version is [1.0.0]
[06-11-2014 17:11:11] [Initialization] Deploy Application script version is [3.1.2]
[06-11-2014 17:11:11] [Initialization] The following non-default parameters were passed to [Deploy Application]: [-DeploymentType Install]
[06-11-2014 17:11:11] [Initialization] App Deploy Toolkit Main script version is [3.2.0]
[06-11-2014 17:11:11] [Initialization] App Deploy Toolkit Extensions version is [1.0.0]
[06-11-2014 17:11:11] [Initialization] PowerShell version is [2.0 x64]
[06-11-2014 17:11:11] [Initialization] PowerShell host is [ConsoleHost version 2.0]
[06-11-2014 17:11:11] [Initialization] OS version is [Microsoft Windows 7 Entreprise 64 bits 6.1.7601]
[06-11-2014 17:11:11] [Initialization] Hardware platform is [Physical]
[06-11-2014 17:11:11] [Initialization] Computer name is [******]
[06-11-2014 17:11:11] [Initialization] Current user is [********]
[06-11-2014 17:11:11] [Initialization] Current Culture is [fr-FR] and UI language is [FR]
[06-11-2014 17:11:11] [Initialization] Deployment type is [Installation]
[06-11-2014 17:11:11] [Initialization] Script [C:\Windows\ccmcache\w\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Windows\ccmcache\w\Deploy-Application.ps1]
[06-11-2014 17:11:11] [Initialization] The following users are logged on to the system: **********
[06-11-2014 17:11:11] [Initialization] Session 0 not detected.
[06-11-2014 17:11:11] [Initialization] Installation is running in [Interactive] mode.
[06-11-2014 17:11:11] [Pre-Installation] Testing power connection status...
[06-11-2014 17:11:11] [Pre-Installation] AC Power connection not found
[06-11-2014 17:11:11] [Pre-Installation] Displaying custom installation prompt with the non-default parameters: [(Title=Mise à jour de votre poste de travail) (Message=Les applications suivantes doivent être fermés et sauvegardés : Internet Explorer, Mozilla Firefox, VLC, Adobe Reader, Java, PDFCreator.

En cas d'inactivité et d'applications concernées non ouvertes, la mise à jour se lancera automatiquement au bout de 5 minutes. Si les applications sont ouvertes l'installation se lancera plus tard.

L'ordinateur devra redémarrer après l'installation.) (Icon=Shield) (ButtonMiddleText=OK) (PersistPrompt=True) (__Timeout=300__) (ExitOnTimeout=False)]...
[06-11-2014 17:11:13] [Pre-Installation] Checking for running applications [iexplore,AcroRd32,cidaemon,firefox,java,jp2launcher,pdfcreator,vlc]...
[06-11-2014 17:11:13] [Pre-Installation] The following processes are running: [firefox]
[06-11-2014 17:11:13] [Pre-Installation] Resolving process descriptions...
[06-11-2014 17:11:13] [Pre-Installation] Finished checking running applications.
[06-11-2014 17:11:13] [Pre-Installation] Prompting user to close application(s) [Firefox]...
[06-11-2014 __17:11:13__] [Pre-Installation] Displaying close applications countdown with [__1200__] seconds.
[06-11-2014 __17:16:11__] [Pre-Installation] Installation not actioned within a reasonable amount of time.
[06-11-2014 17:16:11] [Pre-Installation] Installation not actioned within a reasonable amount of time.
[06-11-2014 17:16:11] [Pre-Installation] Setting deferral history...[DeferTimesRemaining = 0]
[06-11-2014 17:16:11] [Pre-Installation] Updating registry key: [Registry::\HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\*************] [DeferTimesRemaining = 0]...
[06-11-2014 17:16:11] [Pre-Installation] ************** Installation completed with __exit code [1618]__.
[06-11-2014 17:16:11] [Pre-Installation] ----------------------------------------------------------------------------------------------------------
```

Don't hesitate to try the attachment to see what happen.

Thank's ! (I think it's a bug of the psapp script.)
Comments: Issue should be fixed in the latest 3.5 beta. If issue persists, please re-open ticket.

Closed Unassigned: Show-InstallationRestartPrompt -NoCountdown doesnt show [99]

$
0
0
Hi,

testing 3.5.0 and have noticed with the below line in my .ps1 it will not show the Restart dialog. It does show ok if no params are given.

...
Show-InstallationRestartPrompt -NoCountdown
...

I thought it might be the line 5163 below:
[switch]$NoCountdown = $false

and changed to:
[switch]$NoCountdown

but this didnt work.
Comments: Issue should be fixed in the latest 3.5 beta. If the issue persists, please re-open ticket.

New Post: Set-ExecutionPolicy from inside an already running script

$
0
0
If you don't have execution policy set for your company via group policy or if you did not specify the execution policy when you launched PowerShell from the command line, then the script will set the execution policy. It is there to catch those scenarios where people don't know or forget to set the execution policy when they launch PowerShell of if they simply prefer to have the call made in the script. Also, it will not cause any problems if you set the execution policy at multiple points of the process.

New Post: Set-ExecutionPolicy from inside an already running script

$
0
0
Hi,

If the script is running then the set-execution Policy is correctly set. Right? Once the script is start, I would think the set-execution Policy is not need?!
Or it is use for the try?

Thanks,

François

New Post: INE parameter

$
0
0
Hi,
  1. What is the signification of : If ($deploymentType -ine 'Uninstall')?
    ne mean not equal but ine?? I found no reference about "ine".
  2. I was looking to the script and found you are using a lot of if else if. Why not using a switch? Would not it be cleaner?
Thanks,

New Post: Set-ExecutionPolicy from inside an already running script

$
0
0
No, the script can run without the execution policy being set. The execution policy must be set before you take any actions in the script. That's why it must be the first thing you do in your script. the try is needed because you can't modify the execution policy if is already set via GPO by your organization. It will throw an error if you try to modify the execution policy when a GPO is in effect.

New Post: INE parameter

$
0
0
The PowerShell comparison operators such as -ne are case-insensitive by default. But if you want to explicitly specify case-insensitivity, you can add an "i" in front of any of them. If you wanted to do a case-sensitive comparison, you can add a "c" in front of the operator such as "-cne" and that would force case sensitivity.

Switch or if/else doesn't really matter. I guess it's a matter of style/choice.

New Post: INE parameter

$
0
0
Do you have a reference about the "i"?

You are right, if is a matter of choice/style.

Thanks,

François

New Post: INE parameter

Commented Unassigned: OS architecture detection $is64Bit [102]

$
0
0
Hi guys,

I noticed the toolkit has a built-in variable $is64Bit for OS architecture detection.
The function behind it is:
$is64Bit = (Get-WmiObject -Class Win32_OperatingSystem -ea 0).OSArchitecture -eq '64-bit'

I ran into a problem when the script didn't correctly detect the architecture. I ran the code manual on our installations and found the cause was language and OS depended.

The results of Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture were:
64-bits
64 bits
64-bit
...
(taken from Dutch W7, W8.1 and English W8)

Suggestion:
$is64Bit = (Get-WmiObject -Class Win32_OperatingSystem -ea 0).OSArchitecture -Match '64'


Location of the code:
AppDeployToolkitMain.PS1
line 213

Comments: I checked on my machines with code: [boolean]$Is64Bit = [boolean]((Get-WmiObject -Class Win32_Processor | Where-Object { $_.DeviceID -eq 'CPU0' } | Select-Object -ExpandProperty AddressWidth) -eq '64') The result is the correct True & False on the different setups. Thanks for the fast response!

Commented Unassigned: Execute-Process not filling StdOut [101]

$
0
0
Hello,

Thanks for your work.

I encounter a problem with Execute-Process in PassThrough mode, it does not fill the StdOut result.
To my understanding this is due to using the Async form of retrieval for stdout, whereas using the sync form will work (as it is used for stderr).

In my case I solved this by changing this line (modified version below):

If ($NoWait) {
Write-Log "NoWait parameter specified. Continuing without checking exit code..."
}
Else {
----> $stdOut = $process.StandardOutput.ReadToEnd() -replace "`0","" # `0 = Null
$stdErr = $process.StandardError.ReadToEnd() -replace "`0","" # `0 = Null

$processName = $process.ProcessName

Comments: Hello, I have made a quick test and the new version works perfectly for me. Thank you very much ! Michel

Closed Unassigned: Execute-Process not filling StdOut [101]

$
0
0
Hello,

Thanks for your work.

I encounter a problem with Execute-Process in PassThrough mode, it does not fill the StdOut result.
To my understanding this is due to using the Async form of retrieval for stdout, whereas using the sync form will work (as it is used for stderr).

In my case I solved this by changing this line (modified version below):

If ($NoWait) {
Write-Log "NoWait parameter specified. Continuing without checking exit code..."
}
Else {
----> $stdOut = $process.StandardOutput.ReadToEnd() -replace "`0","" # `0 = Null
$stdErr = $process.StandardError.ReadToEnd() -replace "`0","" # `0 = Null

$processName = $process.ProcessName

Source code checked in, #7b36c2d320792f04e3454274764e77d987c528f2

$
0
0
Changed Deploy-Application.exe to new executable built in VB.NET Fixed issue where no dialog was displayed if Admin rights were required Fixed issue where default Deploy-Application.ps1 did not have app name variables populated correctly Added .gitignore

Source code checked in, #8807fef60acfcf6c7156dc55f720deea93cd7d49

Source code checked in, #493ebe766e185ea7f62e7eff2cf897410b7758dd

$
0
0
Updated .gitignore Update .gitignore with GitHub provided Visual Studio .gitignore template

Source code checked in, #9dbe2864cc8a21ba04caf521996b33caa12e99d0

$
0
0
Delete user specific Visual Studio files Delete user specific Visual Studio files

New Post: How To - Converting Commands

$
0
0
Hey All,
Hoping to find someone with some experience using PSAppDeploy Toolkit. i am trying to deploy a program out using some specific switches and no matter what i try it just errors out. would anyone be able to assist me in converting this to the powershell command for use in the Appdeploy toolkit? using standard MSI Exec:

msiexec /qb /L*v "c:\imagenow.log" /i "ClientSetup.msi" INSTALLDIR="C:\Program Files\ImageNow" ADDLOCAL=ImageNowClient,Pixtran,Accusoft,SystemFiles,LeadTools,OneDirectory,ImageNowPrinter IN_PROFILENAME=DefaultProfile IN_SERVER_NAME=imagenow.server.com IN_PORT_NO=6000 STARTMENUICON=Yes DESKTOPICON=Yes QUICKLAUNCHICON=Yes REMOVEOLDVERSIONS=Yes

Also this is a 32 bit application, should i be using %ProgramFiles%\ImageNow?

Error Below:

'ContinueOnError'. Cannot convert value "System.String" to type "System.Boolean". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0. (at <ScriptBlock>, C:\Users\jaskel\Desktop\ImageNow - PSApp Deploy\Deploy-Application.ps1: line 96)

Source code checked in, #1e450fd95e83d90439c5a64d8298c05dc727d8db

$
0
0
Added automatic UAC prompting to executable based on XML value
Viewing all 2341 articles
Browse latest View live


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