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

New Post: No favicon on 'Show-InstallationRestartPrompt'

$
0
0
Hi - First of thanks for the script, its extremely easy to use and looks very professional.

Just one small issue i noticed when using this is that when using the 'Show-InstallationRestartPrompt' you do not get a favicon in the title bar or on the taskbar (See below):

Image

Is this an easy thing to add? As for users it may be confusing going from our custom logo back to the Windows PowerShell logo.

Regards,

Max

New Post: Execute-Process issue - Newb Question

$
0
0
First off, guys thanks so much for this tool. It has really simplified things for me in my organization where I'm typically the sole application packager for SCCM.

While I'm certainly no expert, I've been banging my head on this one. For some reason, when using Execute-Process to call an .exe, I'm getting the Windows Installer pop up window. I've looked over everything 4 times now at least and I'm sure I'm missing it, but it eludes me.

Attached is the pop-up I'm seeing, along with the log file for this particular deployment. Thanks in advance.
Image

Log File:
[25-03-2014 10:43:05] [Post-Installation] ----------------------------------------------------------------------------------------------------------
[25-03-2014 11:34:15] [Initialization] Cisco_AnyConnectVPNClient2.5_2.5_EN_01 setup started.
[25-03-2014 11:34:15] [Initialization] Script [C:\Windows\ccmcache\v\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Windows\ccmcache\v\AppDeployToolkit\AppDeployToolkitMain.ps1]
[25-03-2014 11:34:15] [Initialization] Script [C:\Windows\ccmcache\v\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Windows\ccmcache\v\Deploy-Application.ps1]
[25-03-2014 11:34:15] [Initialization] Cisco_AnyConnectVPNClient2.5_2.5_EN_01 script version is [1.0.0]
[25-03-2014 11:34:15] [Initialization] Deploy Application script version is [3.1.0]
[25-03-2014 11:34:15] [Initialization] The following non-default parameters were passed to [Deploy Application]: [-DeploymentType Install]
[25-03-2014 11:34:15] [Initialization] App Deploy Toolkit Main script version is [3.1.0]
[25-03-2014 11:34:15] [Initialization] App Deploy Toolkit Extensions version is [1.0.0]
[25-03-2014 11:34:15] [Initialization] PowerShell version is [2.0 x86]
[25-03-2014 11:34:15] [Initialization] PowerShell host is [ConsoleHost version 2.0]
[25-03-2014 11:34:15] [Initialization] OS version is [Microsoft Windows 7 Enterprise 32-bit 6.1.7601]
[25-03-2014 11:34:15] [Initialization] Hardware platform is [Virtual:Hyper-V]
[25-03-2014 11:34:15] [Initialization] Computer name is [WJAXPACKAGETEST]
[25-03-2014 11:34:15] [Initialization] Current user is [AZCHEM\WJAXPACKAGETEST$]
[25-03-2014 11:34:16] [Initialization] Current Culture is [en-US] and UI language is [EN]
[25-03-2014 11:34:16] [Initialization] Deployment type is [Installation]
[25-03-2014 11:34:16] [Initialization] Installation is running in [Silent] mode.
[25-03-2014 11:34:16] [Installation] Executing [C:\Windows\ccmcache\v\Files\anyconnect-2.5.exe /S /v/qn]...
[25-03-2014 11:34:16] [Installation] Working Directory is [C:\Windows\ccmcache\v\Files]
[25-03-2014 11:50:20] [Installation] Execution failed with code: 1639
[25-03-2014 11:50:20] [Installation] Cisco_AnyConnectVPNClient2.5_2.5_EN_01 Installation completed with exit code [1639].
[25-03-2014 11:50:20] [Installation] ----------------------------------------------------------------------------------------------------------

App Deploy Toolkit Script:
#*===============================================
#* INSTALLATION 
$installPhase = "Installation"
#*===============================================

    # Install 
    Execute-Process -FilePath "$dirFiles\anyconnect-2.5.exe" -Arguments "/S /v/qn" -WindowStyle Hidden

#*===============================================
#* POST-INSTALLATION
$installPhase = "Post-Installation"
#*===============================================

    #Create Profile Directory
    Mkdir -Path "$envLOCALAPPDATA\Cisco\Cisco AnyConnect VPN Client\"

    # Copy VPN Profile
    Copy-File -Path "$dirSupportFiles\Preferences.xml" -destination "$envLOCALAPPDATA\Cisco\Cisco AnyConnect VPN Client\Preferences.xml"

#*===============================================
#* UNINSTALLATION
} ElseIf ($deploymentType -eq "uninstall") { $installPhase = "Uninstallation"
#*===============================================

    # Prompt the user to close the following applications if they are running:
    Show-InstallationWelcome -CloseApps "vpnui,vpmagent" -AllowDefer -DeferTimes 3

    # Show Progress Message (with a message to indicate the application is being uninstalled)
    Show-InstallationProgress -StatusMessage "Uninstalling Application $installTitle. Please Wait..." 

    # Remove this version of Cisco AnyConnect
    Execute-Process -FilePath "$dirFiles\anyconnect-2.5.exe" -Arguments "/uninstall"
=====================================================

New Post: Execute-Process issue - Newb Question

$
0
0
Hi there,
On a phone now so don't have a back tick on my keyboard, suffice to say I think you're just missing quotes around the /qn switch, you could try this or add normal quotes around it preceded by a back tick:
Execute-Process -FilePath "$dirFiles\anyconnect-2.5.exe" -Arguments '/S /v"/qn"' -WindowStyle Hidden

Seán

Commented Unassigned: CloseApps does not work correctly? [59]

$
0
0
Him i've tested latest version 3.1. I need to close running application before deploying new version. The executable of app is ccm.exe. I if specify -CloseApps "ccm", the toolkit suggest me to close needed app plus SCCM client agent servcie (ccmexec.exe) whcih is not good as i deploy application using sccm. If i specify ccm.exe for exact match - toolkit does not detect that application is running.
Comments: Hi there, can you run this command and get the resulting process name: Get-Process

Commented Unassigned: CloseApps does not work correctly? [59]

$
0
0
Him i've tested latest version 3.1. I need to close running application before deploying new version. The executable of app is ccm.exe. I if specify -CloseApps "ccm", the toolkit suggest me to close needed app plus SCCM client agent servcie (ccmexec.exe) whcih is not good as i deploy application using sccm. If i specify ccm.exe for exact match - toolkit does not detect that application is running.
Comments: Yes, "Get-Process ccm" returns only one and correct process name . Same situation is vith other similar executables, for example SEP's smc.exe and smcgui.exe. Both processes are suggested to close if i specify -CloseApps "smc".

Closed Unassigned: CloseApps does not work correctly? [59]

$
0
0
Him i've tested latest version 3.1. I need to close running application before deploying new version. The executable of app is ccm.exe. I if specify -CloseApps "ccm", the toolkit suggest me to close needed app plus SCCM client agent servcie (ccmexec.exe) whcih is not good as i deploy application using sccm. If i specify ccm.exe for exact match - toolkit does not detect that application is running.
Comments: This will be fixed in v3.1.1. Thanks for raising the issue. Offending line and correction is this: $runningProcesses = Get-Process | Where { ($_.ProcessName -replace "\.","dot" -replace "\*","asterix" -replace "\+","plus" -replace "\(","openbracket" -replace "\)","closebracket" -replace "$","dotexe") -match $processNames }

Edited Issue: CloseApps does not work correctly? [59]

$
0
0
Him i've tested latest version 3.1. I need to close running application before deploying new version. The executable of app is ccm.exe. I if specify -CloseApps "ccm", the toolkit suggest me to close needed app plus SCCM client agent servcie (ccmexec.exe) whcih is not good as i deploy application using sccm. If i specify ccm.exe for exact match - toolkit does not detect that application is running.

New Post: How to prevent windows minimizing

$
0
0
Hi Duncan,

Looks like this was broken in a previous update, it will be fixed in v3.1.1

Thanks,
Seán

New Post: Restart when finished

$
0
0
Hi all,

What a great tool this is, we've been using it quite some time now for deploying apps with sccm.
But now i have a challenge, which is this:

After all installations are complete i would like have a windows stating if the users wants to reboot or reboot later. Now i only have to option to restart with or without a countdown timer.
So with 2 buttons, restart now and restart later, but also that the windows pops back up after several minutes.
Who can point me in the right direction??

New Post: How to get the Logged-On User

$
0
0
Dear all,

I have to write configuration entries into the registry, but no as Service-Account or user which have run the script.

Do we have a possibility to get the Logged-On User which isn't the current script-owner?

I think the installer could only run when a user is logged on or could we read out the Machine-Owner? (I think this isn't possible).

Regards,
Maximilian

New Post: How to get the Logged-On User

$
0
0
hello,



You can find the current logged in user by a wmi get

$checkuser = Get-WmiObject -Class Win32_ComputerSystem | Select-Object username

$checkuser.username will now contain the current logged on user. I don't think that it grabs the current context, but the actual locally logged in user.

New Post: Execute-Process issue - Newb Question

$
0
0
Seán,

Sorry I'm late getting back and I appreciate you responding so quickly. I've tried modifying the quotes as you suggested, I even tried it by dropping the arguments altogether. Still no luck. At this point, I've acquired the MSI installer and I'm going to try this with another approach.

Source code checked in, #2dca2f95508cbd96a6ba83c5ba0f6d8c73aecaa0

$
0
0
Added -NoCountdown parameter to Show-InstallationRestartPrompt to provide option for just displaying the restart now or restart later buttons Updated Documentation Updated Config translations to handle new Show-InstallationRestartPrompt functionality

New Post: Silent/non silent application installation using the PSADT

$
0
0
Hi

I need to be able to run an sccm installation silently as well as communicating.

The latter scenario works fine; if a user is logged on, she is offered the possibility to defer the installation - if she accepts the installation, then, if the application in an earlier version is running, she is prompted to end it. After that the installation starts. It works very nice

If no user is logged on, however (for instance when installation should run unattended after a Windows OS installation before any user logon), the advertisement just times out and fails.

I use the procedure Show-InstallationWelcome to communicate with the user. As I see it, there is no possibility to let this procedure time out in case no response has been given by a user.

I would like the script to continue after some time, in case no response has been given, in order to run the installation.

I guess some of you may be facing the same ...

Best regards

Jan P. Jensen

Source code checked in, #82c959ef41da73e9bd9601f57a511be4b1d28f8f

$
0
0
Modified the behaviour of the Show-InstallationRestartPrompt -NoCountdown parameter: The UI will restore/reposition itself persistently based on the interval value specified in the config file.

New Post: Restart when finished

$
0
0
Hi there,

I've added a new parameter to Show-InstallationRestartPrompt called -NoCountdown

This will just show the Restart Now and Restart Later buttons. The UI will restore/reposition itself persistently based on the interval value specified in the config file. Can you download the latest source code and try this out? (download from the Source Code tab on Codeplex)

Had to change around the text in the translations so it doesn't show timer relevant messages.

Thanks,
Seán

New Post: Restart when finished

$
0
0
Hi Seán,

This look great!!!
This is exactly what i'm looking for, i only have one request: is it possible to achieve this: when you select "restart later" the window will minimize, and a user has the ability to close that windows, i would like to see that the windows just disappears and popups again when the timer has been reached.

Thanks

Patrick

New Post: Restart when finished

$
0
0
Hi Patrick,

The user should not have the ability to close the prompt, only minimize and it does pop up again after the timer elapses (configured in Config file).

Is this what you were looking for?
Sean

New Post: Restart when finished

$
0
0
Hi,

This is exactly what i mean, but i can close it by doing a RM on the icon in the taskbar and select the close option.

Patrick

New Post: Restart when finished

$
0
0
Ok I'll look in to it, might be later in the week though.

Sean
Viewing all 2341 articles
Browse latest View live