Jim

Jim

Forum Replies Created

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

    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: 45

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

  • Jim
    Participant
    Post count: 45

    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: 45

    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: 45

    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: 45

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

    • Jim
      Participant
      Post count: 45

      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”

  • Jim
    Participant
    Post count: 45

    How about something like this?

    $SerialNumber = [Microsoft.VisualBasic.Interaction]::InputBox(“Please enter your Serial Number” , “Serial Number”)

  • Jim
    Participant
    Post count: 45

    Looks like you may not want to use double quotes… They are removing the spaces on purpose:

    ## Sanitize the application details, as they can cause issues in the script
    [char[]]$invalidFileNameChars = [IO.Path]::GetInvalidFileNameChars()
    [string]$appVendor = $appVendor -replace “[$invalidFileNameChars]”,” -replace ‘ ‘,”
    [string]$appName = $appName -replace “[$invalidFileNameChars]”,” -replace ‘ ‘,”
    [string]$appVersion = $appVersion -replace “[$invalidFileNameChars]”,” -replace ‘ ‘,”
    [string]$appArch = $appArch -replace “[$invalidFileNameChars]”,” -replace ‘ ‘,”
    [string]$appLang = $appLang -replace “[$invalidFileNameChars]”,” -replace ‘ ‘,”
    [string]$appRevision = $appRevision -replace “[$invalidFileNameChars]”,” -replace ‘ ‘,”

  • Jim
    Participant
    Post count: 45

    Have you tried using double quotes around the variable?

    [string]$appName = “After Effects”

  • Jim
    Participant
    Post count: 45

    You can turn off balloon notifications altogether in the AppDeployToolkitConfig.xml file:

    <ShowBalloonNotifications>True</ShowBalloonNotifications>

    Just change True to False.

  • Jim
    Participant
    Post count: 45

    It looks like the switches also need to be defined in the AppDeployToolkitMain.ps1 script. Here is what the $DeployMode entry looks like:

    Switch ($deployMode) {
    ‘Silent’ { $deployModeSilent = $true }
    ‘NonInteractive’ { $deployModeNonInteractive = $true; $deployModeSilent = $true }
    Default { $deployModeNonInteractive = $false; $deployModeSilent = $false }
    }

  • Jim
    Participant
    Post count: 45

    You could call another Powershell script, but I would just put everything in the Deploy-Application.ps1 and use the PSADT functions to perform all the steps possible in order to utilize the great logging features…

  • Jim
    Participant
    Post count: 45

    Is your deployment a package or an application? Did you read the “Important Note regarding deferrals” in the document?

  • Jim
    Participant
    Post count: 45
    in reply to: Delete shortcut #1242

    When you create the shortcut, you need to specify the file name like this:

    New-Shortcut -Path “$envCommonDesktop\Dragon Direct.lnk” -TargetPath “C:\Program Files\Dragon Direct\Standalone\SoD.exe” -Arguments ‘-user %username%’ -IconLocation “C:\Program Files\Dragon Direct\Standalone\SoD.exe” -Description “Dragon Direct” -WorkingDirectory “C:\Program Files\Dragon Direct\Standalone”

    To remove the shortcut, just use the Remove-File function like this:

    Remove-File -Path “$envCommonDesktop\Dragon Direct.lnk”

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