kylec
Posts: 22
Joined: Thu Jan 29, 2015 9:59 pm

Remove 3rd party shortcut file after install

Hello,

I'm using Advanced Installer Enterprise 11.3 and our installer is being used to pass user input from the AI install dialogs to a 3rd party installer which runs silently. We also lay down some files of our own at the end of the installation.

One of the files the 3rd party application puts on the system is a shortcut to their uninstaller. The shortcut is located in the %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\

I'm trying to remove this shortcut after the installation is completed so that it's not listed in the start menu programs. I've been looking at the help and forums, but I have not been successful in deleting this shortcut at the completion of installation.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remove 3rd party shortcut file after install

Hello,

Have you tried to use a custom action to delete the related file?
For example, you can create your custom action as a custom action written in C# or a custom action written in C++.

Then you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kylec
Posts: 22
Joined: Thu Jan 29, 2015 9:59 pm

Re: Remove 3rd party shortcut file after install

Dan,

Thank you for your help. This worked perfectly.

Return to “Building Installers”