Delete file as part of uninstallation

Answered

Comments

1 comment

  • Avatar
    juanjo

    If you are defining the name of the shortcut as ${product_fullname} ${product_version}, the filename will be ${product_fullname} ${product_version}.lnk so the code should be:

    <preUninstallationActionList>
        <deleteFile>
          <path>${windows_folder_desktopdirectory}/${product_fullname} ${product_version}.lnk</path>
          <ruleList>
             <platformTest>
                 <type>windows</type>
             </platformTest>
          </ruleList>
        </deleteFile>
     </preUninstallationActionList>
    

Please sign in to leave a comment.