Jim

Jim

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 54 total)
  • Author
    Posts
  • Jim
    Participant
    Post count: 54

    You’re not setting any values? Are you trying to remove the existing values?

  • Jim
    Participant
    Post count: 54

    How about something like this?

    $7ZIP = (Get-InstalledApplication -Name '7-zip').UninstallString

    If ($7ZIP) {
    If ($7ZIP.StartsWith("MsiExec.exe")) {
    Remove-MSIApplications -Name '7-zip'
    }
    Else {
    Execute-Process -Path $7ZIP -Parameters '/S'
    }
    }

  • Jim
    Participant
    Post count: 54

    Ok, I think I figured out how to post code… One more try. 🙂

    Execute-Process -FilePath "$env:WinDir\System32\WindowsPowerShell\v1.0\powershell.exe" -Parameters "-File <code>"$DirFiles\Install-VisualCRedistributables.ps1” -Xml "$DirFiles\VisualCRedistributablesAll.xml” -Install” -WindowStyle ‘Hidden’

    Why don’t you just put the code from the Install-VisualCRedistributables.ps1 script directly in the Deploy-Application script?

    Edit: It remove the backticks… 🙁 Well at least I’m getting closer… 🙂

  • Jim
    Participant
    Post count: 54

    I would just do something like this:

    $ABC = Get-ChildItem -Path "<path-to-folder>\ABC*" | Where-Object {$_.PSIsContainer}
    foreach ($_ in $ABC) {
    Remove-Folder -Path $_.FullName
    }

    I have yet to be successful posting code on here, hopefully this works…

  • Jim
    Participant
    Post count: 54

    How did you post that code? I’ve tried several things and I can’t get it to work. 🙁

  • Jim
    Participant
    Post count: 54

    What you need to do is escape the quotes in the parameters with the backtick character, under the tilde symbol. Just put a backtick before each of the quotes in the parameters except the beginning and ending quotes. I can never get code to post correctly here, so this probably won’t work, but I’ll give it another try:

    <p>"-File "$DirFiles\Install-VisualCRedistributables.ps1" -Xml "$DirFiles\VisualCRedistributablesAll.xml" -Install" </p>

  • Jim
    Participant
    Post count: 54

    Are you using the Zero-Config MSI Install because I don’t see any lines where you actually install anything? What does the log file say? Is there an MSI log?

  • Jim
    Participant
    Post count: 54

    Why not just use the Show-InstallationWelcome function?

    Show-InstallationWelcome -CloseApps 'iexplore' -Silent -BlockExecution

    Just be careful with the blockexecution switch. If the script bombs out for any reason, the user won’t be able to launch the apps until the script is re-run and completes successfully.

  • Jim
    Participant
    Post count: 54

    I typically don’t define the $appArch and my log files look like this:

    PS_AppDeployToolkitMain_3.6.9_EN_01_PSAppDeployToolkit_Install.log

    If I do define the $appArch in the VARIABLE DECLARATION section, my logs look like this:

    PS_AppDeployToolkitMain_3.6.9_x86_EN_01_PSAppDeployToolkit_Install.log

  • Jim
    Participant
    Post count: 54

    Show-InstallationRestartPrompt, has parameters for CountdownSeconds, CountdownNoHideSeconds and NoCountdown.

  • Jim
    Participant
    Post count: 54

    Matt,

    I don’t think they work “work…less…great”… The functions have -force built-in probably because they assume you are an admin and know that you really want to delete the file/folder… Plus they have great logging built-in…

  • Jim
    Participant
    Post count: 54

    Both of those functions force the file/folder to be removed… You can see for yourself in the AppDeployToolkit\AppDeployToolkitMain.ps1 file…

  • Jim
    Participant
    Post count: 54

    CloseApps
    Name of the process to stop (do not include the .exe). Specify multiple processes separated by a comma. Specify custom descriptions like this: “winword=Microsoft Office Word,excel=Microsoft Office Excel”

  • Jim
    Participant
    Post count: 54

    Not sure what you are asking. Thought you said they were autologous. Thought you just needed to close some open apps.

  • Jim
    Participant
    Post count: 54

    Having trouble posting the code… If this works, just replace the X characters with the grave-accent (below the ~, next to the 1 on your keyboard:

    Execute-Process “C:\Windows\System32\rundll32.exe” -Parameters “X”C:\Program Files\Synaptics\SynTP\SynISDLL.dllX”,standAloneUninstall”

Viewing 15 posts - 31 through 45 (of 54 total)