Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Set Acrobat Reader to default in Windows 10 after deploying package

Does anyone know how to add a step to the Acrobat Reader package that changes the default PDF application after installation? I have been trying to find a registry tweak of something, but I've got nothing.

0

Comments

3 comments
Date Votes
  • Only way is to export the Default Application Associations from a existing (Master) device with Adode Reader set as default and import it to your other devices.

    I'm doing it via GPO

    Check this link for a blog about this

    0
  • Hi,

    just wanted to share my solution in case anybody stumbles across this problem and don't want to use the GPO solution as the user can't permanently change file association anylonger (they are reset to GPO XML values after each reboot).

    I use a tiny tool called SetUserFTA.exe from Christoph Kolbicz.

    I copy the file to the %temp% folder, call it like this: SetUserFTA.exe .pdf AcroExch.Document.DC and delete it afterwards.

    Here is my Package XML (please bear with me, this is my first Package):

    <?xml version="1.0" encoding="utf-8"?>
    <AdminArsenal.Export Code="PDQDeploy" Name="PDQ Deploy" Version="17.2.0.0" MinimumVersion="15.0">
      <Package>
        <CurrentLibraryPackageVersionId value="null" />
        <PackageDefinition name="Definition">
          <Conditions type="list">
            <PackageStepCondition>
              <Architecture>Both</Architecture>
              <Version>All</Version>
              <TypeName>OperatingSystem</TypeName>
            </PackageStepCondition>
            <PackageStepCondition>
              <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
              <TypeName>LoggedOnUser</TypeName>
            </PackageStepCondition>
            <PackageStepCondition>
              <ConditionMode>None</ConditionMode>
              <InventoryCollectionId value="187" />
              <InventoryCollectionName>Adobe Reader DC (Latest)</InventoryCollectionName>
              <TypeName>Collection</TypeName>
            </PackageStepCondition>
          </Conditions>
          <CopyMode>Default</CopyMode>
          <DelayedApprovalTimeSpan>7.00:00:00</DelayedApprovalTimeSpan>
          <DownloadApprovalMode>Manual</DownloadApprovalMode>
          <InventoryScanProfileId value="null" />
          <IsDownloadApprovalModeInherited value="true" />
          <ScanAfterDeployment value="null" />
          <Steps type="list">
            <FileCopyStep>
              <AllowOverwrite value="false" />
              <CopyAllFiles value="false" />
              <FilePatternsText></FilePatternsText>
              <IgnoreOverwriteErrors value="false" />
              <IncludeSubFolders value="false" />
              <Mode>SingleFile</Mode>
              <Source>$(Repository)\SetUserFTA\SetUserFTA.exe</Source>
              <Target>%TEMP%\</Target>
              <RunAs value="null" />
              <Conditions type="list">
                <PackageStepCondition>
                  <Architecture>Both</Architecture>
                  <Version>All</Version>
                  <TypeName>OperatingSystem</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
                  <TypeName>LoggedOnUser</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <ConditionMode>None</ConditionMode>
                  <InventoryCollectionId value="null" />
                  <InventoryCollectionName></InventoryCollectionName>
                  <TypeName>Collection</TypeName>
                </PackageStepCondition>
              </Conditions>
              <ErrorMode>StopDeploymentFail</ErrorMode>
              <Title>Copy SetUserFTA.exe to Temp</Title>
              <TypeName>FileCopy</TypeName>
              <IsEnabled value="true" />
              <IsPostStep value="false" />
              <IsPreStep value="false" />
            </FileCopyStep>
            <CommandStep>
              <Command>START "" "%TEMP%\SetUserFTA.exe" .pdf AcroExch.Document.DC</Command>
              <Files></Files>
              <SuccessCodes>0</SuccessCodes>
              <RunAs value="null" />
              <Conditions type="list">
                <PackageStepCondition>
                  <Architecture>Both</Architecture>
                  <Version>All</Version>
                  <TypeName>OperatingSystem</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <IsUserLoggedOn>LoggedOnUser</IsUserLoggedOn>
                  <TypeName>LoggedOnUser</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <ConditionMode>None</ConditionMode>
                  <InventoryCollectionId value="null" />
                  <InventoryCollectionName></InventoryCollectionName>
                  <TypeName>Collection</TypeName>
                </PackageStepCondition>
              </Conditions>
              <ErrorMode>StopDeploymentFail</ErrorMode>
              <Title>Call SetUserFTA.exe</Title>
              <TypeName>Command</TypeName>
              <IsEnabled value="true" />
              <IsPostStep value="false" />
              <IsPreStep value="false" />
            </CommandStep>
            <CommandStep>
              <Command>DEL /q /s "%TEMP%\SetUserFTA.exe"</Command>
              <Files></Files>
              <SuccessCodes>0</SuccessCodes>
              <RunAs value="null" />
              <Conditions type="list">
                <PackageStepCondition>
                  <Architecture>Both</Architecture>
                  <Version>All</Version>
                  <TypeName>OperatingSystem</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
                  <TypeName>LoggedOnUser</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <ConditionMode>None</ConditionMode>
                  <InventoryCollectionId value="null" />
                  <InventoryCollectionName></InventoryCollectionName>
                  <TypeName>Collection</TypeName>
                </PackageStepCondition>
              </Conditions>
              <ErrorMode>StopDeploymentFail</ErrorMode>
              <Title>Delete SetUserFTA.exe</Title>
              <TypeName>Command</TypeName>
              <IsEnabled value="true" />
              <IsPostStep value="false" />
              <IsPreStep value="false" />
            </CommandStep>
          </Steps>
          <Timeout value="60" />
          <UseCustomTimeout value="false" />
          <RunAs>LoggedOnUser</RunAs>
        </PackageDefinition>
        <Description>Set Adobe Acrobat Reader DC as default App for .pdf
    
    Info: http://kolbi.cz/blog/2017/10/25/setuserfta-userchoice-hash-defeated-set-file-type-associations-per-user/</Description>
        <NewLibraryPackageVersionId value="null" />
        <OriginalId value="null" />
        <Version>1.0</Version>
        <IsAutoDownload value="false" />
        <FolderId value="null" />
        <LibraryPackageVersionId value="null" />
        <Name>Set Acrobat Reader DC as default for .pdf</Name>
        <Path>Set Acrobat Reader DC as default for .pdf</Path>
        <PackageDisplaySettings name="DisplaySettings">
          <DisplayType>Normal</DisplayType>
          <IconKey>Icon-Package</IconKey>
          <SortOrder value="11" />
        </PackageDisplaySettings>
      </Package>
    </AdminArsenal.Export>
    
    1
  • Mario thank you for posting this! It worked perfectly for me this morning without having to change a single thing. Also according to the comments in Christoph Kolbicz blog on his SetUserFTA page, his utility also is working with Windows 11.

    0