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

New Post: Regkey to identify In- or Uninstalled Application

$
0
0
Hi André,

Sure, you can do that:

Set-RegistryKey -Key "HKLM:\SOFTWARE\MYNAME\Installed\$installName" -Name "Version" -Value $appVersion
Set-RegistryKey -Key "HKLM:\SOFTWARE\MYNAME\Installed\$installName" -Name "Install Date" -Value $currentDate

It's not something we would include by default in the toolkit, so you'd have to add those lines in to your own deployment scripts.

Seán

New Post: VBS fails but PDAT says success

$
0
0
Hi David,

did you think that this one is right.
""$dirfiles\Install_Microsoft_Office_Project_Standard_2007_12.00.4501.vbs""

On the Beginning you set "" on the End of Line you set"". i think the right is `""
""$dirfiles\Install_Microsoft_Office_Project_Standard_2007_12.00.4501.vbs""
with best regards
André

New Post: Regkey to identify In- or Uninstalled Application

$
0
0
Hi Seán,

thank you very much, very helpful.

André :)

New Post: No favicon on 'Show-InstallationRestartPrompt'

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

$
0
0
Hmmm, not sure what's happening here. If no user is logged in, it should run in silent mode and this dialog should never display.

Try adding -CloseAppsCountdown 60 to Show-InstallationWelcome. This will automatically close any existing apps after 60 seconds and proceed with the install.

New Post: How to prevent windows minimizing

$
0
0
Value is set to $true already. Can you screengrab what the issue is?

Thanks, Dan

New Post: Console apps fail with Execute Process

$
0
0
How do you mean it fails? We'll need more info to try help

New Post: MS visio 2013 - uninstallation woes..

$
0
0
Umm.... I didn't write the scrub tools - that's all Microsoft. What you could try is having a look in the Visio Premium install source. You should see a folder called something like VisPre.WW - that seems to be the identifier for the app like, PrjStd and PrjPro are Project. So then try this:

Execute-Process -FilePath "CScript.Exe" -Arguments ""$dirSupportFiles\OffScrub10.vbs" VisPre /S /Q /NoCancel" -WindowStyle Hidden -IgnoreExitCodes "1,2,3"

Source code checked in, #13454faff8f728dd61129e69aa1d4f2c83c72e5c

$
0
0
Added Get-IniValue / Set-IniValue functions. Replaces Get-IniContent / Set-IniContent which were a bit unwieldy. The new functions are much easier to use. Updated Japanese translations

New Post: Dameware service install

$
0
0

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

* INSTALLATION

$installPhase = "Installation"

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

# Perform installation tasks here
Execute-Process -FilePath "dwrcs.exe" -Arguments '-o"c:\windows\dwrcs" -y' -WindowStyle Hidden

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

* POST-INSTALLATION

$installPhase = "Post-Installation"

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

# Perform post-installation tasks here
Execute-Process -FilePath "c:\windows\DWrcs\DWRCS.exe" -Arguments '-install'
cmd /c regedit -s $dirfiles\dame.reg
start-sleep -s 10
restart-service dwmrcs
# Display a message at the end of the install

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

* UNINSTALLATION

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

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

# Perform uninstallation tasks here
Stop-Service dwmrcs
Execute-Process -FilePath "c:\windows\DWrcs\DWRCS.exe" -Arguments '-remove'
Remove-Item -Recurse -Force 'c:windows\DWRCS'

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

* END SCRIPT BODY

} } Catch { $exceptionMessage = "$($_.Exception.Message) ($($_.ScriptStackTrace))"; Write-Log "$exceptionMessage"; Show-DialogBox -Text $exceptionMessage -Icon "Stop"; Exit-Script -ExitCode 1 } # Catch any errors in this script
Exit-Script -ExitCode 0 # Otherwise call the Exit-Script function to perform final cleanup operations

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

dame.reg you want to install the service on a machine via dameware MRC configure it the way you would like it and then export the reg file "hklm\software\Dameware Development\Mini Remote Control Service\Settings"

The following files are in my self extracting 7z file:

DWRCS.exe
DWRCST.exe
DWRCK.dll
DWRCSET.dll
DWRCSh.dlx
DWRCRSS.dll
DWRCWXL.dll (Windows XP/2003 only)

**In order to use FIPS Mode in v7.x, the following files must also be copied:

ccme_base.dll
ccme_ecc.dll
ccme_eccaccel.dll
ccme_eccnistaccel.dll
cryptocme2.dll
cryptocme2.sig
DWRCRSA.DLL

Source code checked in, #7c22461a099e2743f614fd8dda51e032fd47be22

New Post: VBS fails but PDAT says success

$
0
0
Hi David,

I've been able to reproduce this using a buggy VBScript and I don't think it's something specific to the PADT. If you run the VBScript in a command prompt and then type echo %errorlevel% you should also see a 0 return code.

You will probably need to put some error handling in to the VBScript and throw a different error code if you catch an error.

Cheers,

Sean

PS. @André, David's quotes are correct, the back ticks are escape characters in PowerShell.

New Post: VBS fails but PDAT says success

$
0
0
Thanks Sean, thought as much. Crappy legacy stuff... ;)

Again, awesome work you did here!!!

Source code checked in, #0856e0a3a58df276890c8030b63b6ccbcec26c79

New Post: VBS fails but PDAT says success

$
0
0
PowerSheller wrote:
PS. @André, David's quotes are correct, the back ticks are escape characters in PowerShell.
Thanks for your clue, i am a beginner in Powershell and i am learning a lot of it.
Your script is awesome and great work. ;)

New Post: How to prevent windows minimizing

$
0
0
Here is message taken from the PSAppDeployToolkit.log

[10-04-2014 14:17:23] [Initialization] Current Culture is [en-US] and UI language is [EN]
[10-04-2014 14:17:23] [Initialization] Deployment type is [Installation]
[10-04-2014 14:17:23] [Initialization] Installation is running in [Interactive] mode.
[10-04-2014 14:17:24] [Pre-Installation] Missing an argument for parameter 'MinimizeWindows'. Specify a parameter of type 'System.Boolean' and try again. ()
[10-04-2014 14:17:24] [Pre-Installation] Displaying Dialog Box with message: [Missing an argument for parameter 'MinimizeWindows'. Specify a parameter of type 'System.Boolean' and try again. ()]...

New Post: copying into users appdata.. or other user folders..

$
0
0
Woops. Correct code should be:
ForEach ($user in (Get-ChildItem "C:\Users" -Exclude Public)) {
    New-Item -ItemType Directory -Force -Path "C:\Users\$($user.Name)\AppData\Local\Folder1\Folder2\"
    Copy-File -Path "$dirFiles\MyFile.txt" -Destination "C:\Users\$($user.Name)\AppData\Local\Folder1\Folder2\MyFile.ini"
}
Hope this helps.

Dan

New Post: copying into users appdata.. or other user folders..

$
0
0
running it as a package gives you the option to do it every time a user logs in.. if you need to consider future users that haven't been logged onto the computer prior to you deploying the file.

New Post: Running in SCCM Task Sequence

$
0
0
Hey Jack,

Do you know if OSDSetupHook runs as part of any Task Sequence regardless of whether you're performing an OSD? Reason I ask is that I know of a number of companies that use Task Sequences to deploy chains of installs - it's fairly common although (a) it's not using Task Sequences for what they were designed to do and (b) shouldn't be necessary since the toolkit can help you chain together complex application installs.

I'm loath to change it though if TSManager is the only process we can guarantee is running during any Task Sequence.

Cheers, Dan

New Post: Running in SCCM Task Sequence

$
0
0
Hi Dan,

OSDSETUPHOOK.exe is part of the WinPE Boot Image so it can never run outside of OSD. TSManager is used in OSD and in full OS

Cheers

Jack
Viewing all 2341 articles
Browse latest View live


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