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

New Post: Show-InstallationPrompt Help

$
0
0
So I thought about this if you exit with a generic error code...901 is a good exit code number but it still says installation failed. If we have users that "whine" about that or for me which I'm OCD about the look and feel, I would want it to say something different to the user, so I added a few more items to the AppDeployToolkitMain.ps1 and AppDeployToolkitConfig.xml.


AppDeployToolkitConfig.xml (at line 70), added below BalloonText_Error (I only did English), add:
<BalloonText_Stopped>was stopped.</BalloonText_Stopped><!-- Text displayed in the balloon tip for a stopped deployment type. -->
AppDeployToolkitMain.ps1 (at line 168) below [string]$configBalloonTextError add:
[string]$configBalloonTextStopped = $xmlUIMessages.BalloonText_Stopped
AppDeployToolkitMain.ps1 (at line 410) Insert before the" Else {", add:
ElseIf ($exitcode = "901"){
      $balloonText = "$deploymentTypeName $configBalloonTextStopped"
      Show-BalloonTip -BalloonTipIcon "Warning" -BalloonTipText "$balloonText"
}
Now when a user says no , it will error with 901 and display a warning (instead of error) and stated software was stopped

its "cleaner" to me...

New Post: Unable to show welcome message when deplpoying via SCCM 2012

$
0
0
Hi Guys, Has anyone been able to deploy applications to a user collection/ application catalog. It fails in Windows 7 and above computers.

I can successfully deploy the same application to a computer collection(using Software Center) as it uses the LOCAL SYSTEM account as opposed to the logged in user account. What is the best way to deploy applications to user based collections using the application catalog.

Thanks,
Mahesh

New Post: Running silent with the exception of the close apps notification

$
0
0
I'm setting up a Java install using the toolkit and I'm intending for it to be installed by the user via ConfigMgr software centre. Because of this I want the install to be silent, with the exception that if IE is running, the dialog box will appear to notify them that it needs to be closed before proceeding.

So far I can achieve what I want by removing the Show-InstallationProgress from the installation section - the result is the installation is completely silent if IE is not running and if IE is running the dialog is displayed while the rest of the installation remains silent. My problem is that in both instances the installation finished balloon appears at the end and I can't find a way to suppress it.

I've also tried using -deploymode "silent" and "noninteractive" and in both instances IE is just forced closed. Is there a way to achieve what I'm after?

Created Unassigned: Contribution: Dutch translation [78]

$
0
0
I didn't find a Dutch translation in the current framework so as a contribution I have attached a version of AppDeployToolkitConfig.xml to this issue that contains Dutch translations for the default dialogs.

Best regards,
PJ

New Post: Running silent with the exception of the close apps notification

$
0
0
You can turn balloon notifications off in the XML Config file.

Commented Unassigned: Contribution: Dutch translation [78]

$
0
0
I didn't find a Dutch translation in the current framework so as a contribution I have attached a version of AppDeployToolkitConfig.xml to this issue that contains Dutch translations for the default dialogs.

Best regards,
PJ
Comments: Hi PJ, Excellent, thanks for contributing, we will add to the next release. Regards, Sean

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

$
0
0
I have gotten the ServiceUI.exe solution in the OP to work in my environment, with one caveat.

I use both version of ServiceUI.exe

I use the 64-bit version to call Deploy-Application.EXE when installing on x64 machines, and use the 32-bit version to call Deploy-Application.EXE when installing on x86 machines.

So far it has worked great. We can use the same application to deploy to end user UI and also to OSD task sequences.

No need to select "Run installation and uninstall as 32-bit process on 64-bit clients"

New Post: Deployment Script: IE11 needs one reboot (x86)

$
0
0
There are alot of KBs that need to be used in the package.
You want to run the IE install with /log and you will see all the files it uses. The add-content line was just for SCCM 2012 application model. It does require one reboot. I couldn't ever get the toolkit to send error code 3010. So I put the restart prompt.
# Show Welcome Message, close Internet Explorer if required, allow up to 3 deferrals, verify there is enough disk space to complete the install and persist the prompt
Show-InstallationWelcome -CloseApps "iexplore" 

# Show Progress Message (with the default message)
Show-InstallationProgress

function IsInstalled($hotfixid)
{
$ret = $false
    Get-WmiObject -Query "Select * from Win32_QuickFixEngineering WHERE HotfixID = '$hotfixid'" -Namespace "root\CIMV2" | ForEach-Object {
        $ret = $true
            }

                return $ret
          }

Prerequisite 1

$update1 = "KB2834140"
If (IsInstalled($update1))
{
write-log -text "$update1 is already installed, skipping."
}
Else
{
  Write-log -text "Installing $update1..."
        cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\Windows6.1-KB2834140-v2-x86.cab /quiet /norestart"
}

Prerequisite #2

$update2 = "KB2670838"
If (IsInstalled($update2))
{
write-log -text "$update2 is already installed, skipping."
}
Else
{
  write-log -text "Installing $update2..."
        cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\KB2670838_x86.CAB /quiet /norestart"
}

# Prerequisite #3
$update3 = "KB2639308"
If (IsInstalled($update3))
{
write-log -text "$update2 is already installed, skipping."
}
Else
{
write-log -text "Installing $update2..."
        cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\KB2639308_x86.CAB /quiet /norestart"
}

Prerequisite 4

$update4 = "KB2731771"
If (IsInstalled($update4))
{
write-log -text "$update4 is already installed, skipping."
}
Else
{
 write-log -text "Installing $update4..."
        cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\KB2731771_x86.CAB /quiet /norestart"
        }

Prerequisite #5

$update5 = "KB2729094"
If (IsInstalled($update5))
{
write-log -text "$update5 is already installed, skipping."
}
Else
{
write-log -text "Installing $update5..."
        cmd.exe /c " C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\Windows6.1-KB2729094-v2-x86.cab /quiet /norestart"
}

Prerequisite #6

$update6 = "KB2786081"
If (IsInstalled($update6))
{
write-log -text "$update6 is already installed, skipping."
}
Else
{
write-log -text "Installing $update6..."
    cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\KB2786081_x86.CAB /quiet /norestart"
}

Prerequisite 7

$update7 = "KB2888049"
If (IsInstalled($update7))
{
write-log -text "$update7 is already installed, skipping."
}
Else
{
write-log -text "Installing $update7..."
    cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\Windows6.1-KB2888049-x86.cab /quiet /norestart"
 }

Prerequisite 8

$update8 = "KB2882822"
If (IsInstalled($update8))
{
write-log -text "$update8 is already installed, skipping."
}
Else
{
write-log -text "Installing $update8..."
    cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\Windows6.1-KB2882822-x86.cab /quiet /norestart"
}

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

* INSTALLATION

$installPhase = "Installation"

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

# Perform installation tasks here

main program

write-log -text "installing main file"
cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\IE11-neutral.Downloaded.cab /quiet /norestart"

spelling

write-log -text "installing spelling file"
cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\Windows6.3-KB2849696-x86.cab /quiet /norestart"

Hypenation

write-log -text "installing Hypenation file"
cmd.exe /c "C:\Windows\System32\dism.exe /online /add-package /packagepath:$dirfiles\Windows6.3-KB2849697-x86.cab /quiet /norestart"

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

* POST-INSTALLATION

$installPhase = "Post-Installation"

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

Setup auto-update false

write-log -text "set no auto update"
Set-RegistryKey -Key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "EnableAutoUpgrade" -Value "0" -Type Dword -ContinueOnError $true

set detection

Add-Content -path "c:\windows\logs\IE11installed.txt" -value "install via sccm2012" -ErrorAction SilentlyContinue

exit Script

Show-InstallationRestartPrompt -countdownseconds 10

New Post: ZAP MSI Applications

$
0
0
Yes msizap is "unsupported" if using the version lower than 3.1.4000.2726, also if you call it like this "MsiZap.exe GWT! {GUID}".. its not running the "a" option which would not change ACLs. That's why there is no option in the extension to allow parameter change. I've been running this for a long time on windows XP, 7, 8 and 8.1 and on 32-bit and 64-bit and have had no issues so far.

Use it at your own risk

New Post: Deploy-Application.EXE with multiple Deploy-Application.ps1 files

$
0
0
Maybe I can reword the question:

Can I rename the Deploy-Application.ps1 to something else to support multiple PS1 files and specify the custom PS1 file from the Deploy-Application.EXE commandline?

Thanks

New Post: Deploy-Application.EXE with multiple Deploy-Application.ps1 files

$
0
0
Actually I was reviewing the release notes and apparently this feature was added to 3.1.4. Can someone tell me the -parameter used to specify the PS1 file name? I don't see it in the admin guide.

Version 3.1.4 [06/10/2014]
Added New-Folder and Remove-Folder functions (Thanks to SueH)
Added NoWait parameter to Execute-Process
__Added the ability for Deploy-Application.exe to point to a different .ps1 file by specifying it on the command-line__
Added checks to Deploy-Application.exe to verify the AppDeployToolkit folder exists
Added PSAppDeployToolkit icon to Deploy-Application.exe
Fixed issue where hang could occur if file version was null when using Get-FileVersion
Improved exception handling and logging for a number of functions

New Post: Deploy-Application.EXE with multiple Deploy-Application.ps1 files

$
0
0
Yes, you can have as many PS1 scripts as you want and name each of the PS1 scripts as you want, just run the command line like below,
Deploy-Application.EXE app1.ps1
Deploy-Application.EXE app2.ps1
Deploy-Application.EXE app3.ps1

New Post: Deploy-Application.EXE with multiple Deploy-Application.ps1 files

$
0
0
I have been testing this and it works perfectly. Imagine 140 PS1 files ;-)

Thanks

New Post: Error: App Deploy Toolkit Main requires Administrator rights to function. Please re-run the deployment script as an Administrator.

$
0
0
Hello,

Currently doing a deployment leveraging PSAppDeployToolkit, which for most part has been going well however on a subset of systems I am receiving an error code 0x1(1) - Incorrect Function - Action Failed.

Has anyone encountered this and/or know of a workaround? I am enclosing a copy of the Toolkit log. The error is misleading as the process is reunning as an Administrator.

[26-08-2014 08:36:57] [Initialization] ----------------------------------------------------------------------------------------------------------
[27-08-2014 08:36:54] [Initialization] Microsoft_Outlook201xJunkEmailAdd-in_1.0_x86_EN_01 setup started.
[27-08-2014 08:36:54] [Initialization] Script [C:\Windows\ccmcache\8\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Windows\ccmcache\8\AppDeployToolkit\AppDeployToolkitMain.ps1]
[27-08-2014 08:36:54] [Initialization] Script [C:\Windows\ccmcache\8\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Windows\ccmcache\8\Deploy-Application.ps1]
[27-08-2014 08:36:54] [Initialization] Microsoft_Outlook201xJunkEmailAdd-in_1.0_x86_EN_01 script version is [1.0.0]
[27-08-2014 08:36:54] [Initialization] Deploy Application script version is [3.1.4]
[27-08-2014 08:36:54] [Initialization] The following non-default parameters were passed to [Deploy Application]: [-DeploymentType Install]
[27-08-2014 08:36:54] [Initialization] App Deploy Toolkit Main script version is [3.1.4]
[27-08-2014 08:36:54] [Initialization] App Deploy Toolkit Extensions version is [1.0.0]
[27-08-2014 08:36:54] [Initialization] PowerShell version is [2.0 x64]
[27-08-2014 08:36:54] [Initialization] PowerShell host is [ConsoleHost version 2.0]
[27-08-2014 08:36:54] [Initialization] OS version is [Microsoft Windows 7 Enterprise 64-bit 6.1.7601]
[27-08-2014 08:36:54] [Initialization] Hardware platform is [Physical]
[27-08-2014 08:36:54] [Initialization] Computer name is [xxxxxxxxxxx]
[27-08-2014 08:36:54] [Initialization] Current user is [xxxxxxxxxxxx]
[27-08-2014 08:36:54] [Initialization] Current Culture is [en-US] and UI language is [EN]
[27-08-2014 08:36:54] [Initialization] Deployment type is [Installation]
[27-08-2014 08:36:54] [Initialization] Running as [rlesnefsky] in user context.
[27-08-2014 08:36:54] [Initialization] Installation is running in [Interactive] mode.
[27-08-2014 08:36:54] [Initialization] Error: App Deploy Toolkit Main requires Administrator rights to function. Please re-run the deployment script as an Administrator. ()
[27-08-2014 08:36:54] [Initialization] Displaying Dialog Box with message: [Error: App Deploy Toolkit Main requires Administrator rights to function. Please re-run the deployment script as an Administrator. ()]...
[27-08-2014 08:36:56] [Initialization] Dialog Box Response: OK
[27-08-2014 08:36:56] [Initialization] Microsoft_Outlook201xJunkEmailAdd-in_1.0_x86_EN_01 Installation completed with exit code [1].
[27-08-2014 08:36:56] [Initialization] ----------------------------------------------------------------------------------------------------------

Thank you.

New Post: SCCM PowerShell App and HKCU Registry Settings

$
0
0
Hello

I am wondering how best to handle applications installations that require the HCKU keys to be modified when the users does not have administrative rights. I understand that when you run as Admin or use SCCM the current user registry keys become the Admin or system account. Is GPO or ActiveSetup the only options. Thank you in advance.

New Post: SCCM PowerShell App and HKCU Registry Settings

New Post: Error: App Deploy Toolkit Main requires Administrator rights...

$
0
0
In Salesforces infinite wisdom they have decided against deploying their Outlook Plugin 2.5 into C:\Program Files (x86) and now have moved to installing into the user profile (%APPDATA%). This is sloppy and pathetic in my mind. I am sure it will reduce their support calls but I can think of at least a few reasons why this is a bad idea. Enough ranting...on to the issue.

I have wrapped the Salesforce installer in order to stop Outlook and uninstall the previous version as their MSI isn't smart enough to do either....manually or in an automated fashion. As far at that goes, they don't even seem to care.

If this package is executed from SCCM 2012 SP1 or any version for that matter, the install runs as SYSTEM and the install gets placed into C:\Windows\System32\config\systemprofile\AppData\Roaming and of course the users do not have access to the folder as they are not admins (BY DESIGN!).

In order to accommodate the bad deployment package decision by Salesforce I have changed the application to Deployment Types > User Experience > "install for user" in SCCM which I have NEVER had to do in the last 15 years for business apps. When the app attempts to install I get the error that PSAPP needs to run as admin. I understand what this means but I am not sure how to get PSAPP to run under this scenario. I considered just running the MSI directly from SCCM but I need Outlook to close and the old version to uninstall first which this PSAPP handles flawlessly.

Any ideas on how to get PSAPP to run as the local non-admin logged on user?

Error: App Deploy Toolkit Main requires Administrator rights to function. Please re-run the deployment script as an Administrator. ()

In case it isn't evident, I am very disappointed in these type of apps that are moving in the direction to install into %APPDATA% to get around needing admin rights. It's fine for Minecraft and Spotify as those are consumer apps but for a business app like Salesforce....

By the way, I have been using this utility for all the other deployments and I have accomplished many difficult installs with ease. Thanks for all the work on this critical deployment tool.

Thanks Again

New Post: Execute-Process

$
0
0
I'm working on a script to install the sccm client.

function execute-process will "not wait" until ccmsetup.exe has finished installation.

here is the command line:
Execute-Process -FilePath "ccmsetup.exe" -Arguments "SMSSITECODE=Test Site"

any idea?

thanks in advance for your help.

Created Unassigned: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.

New Post: SCCM PowerShell App and HKCU Registry Settings

Viewing all 2341 articles
Browse latest View live


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