We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Custom Action - Uninstall shortcut

Hi

1. I have a custom action which will be executed at the time of uninstall. This is working fine when we uninstall from add or remove or using exe.
Its not raised when u use a shortcut icon - start- allprograms- MyUninstaller... how can i make the shortcut to raise the custom action??

2. In our API project we have custom diolgs. I want this disalogs to displayed only at the time of installation but not at the time of upgrade. How can i achive this??

3. I want to Launch an application after installation. For this I am using Finish Action. I want to run this as "Run As Administrator". I colud find this optiop for all the
shortcuts. But, how can I apply to this ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom Action - Uninstall shortcut

Hi,
1. I have a custom action which will be executed at the time of uninstall. This is working fine when we uninstall from add or remove or using exe.
Its not raised when u use a shortcut icon - start- allprograms- MyUninstaller... how can i make the shortcut to raise the custom action??
When the uninstall shortcut is launched the uninstallation begin with the "Install Execution Stage" and uses only Basic User Interface. So, if you want your custom action to run when you use the uninstall shortcut, you can add it with sequence in the "Install Execution Stage".
2. In our API project we have custom diolgs. I want this disalogs to displayed only at the time of installation but not at the time of upgrade. How can i achive this??
You can go in the Dialogs page, right click on your custom dialogs, select "Show only if..." and in the "Expression" text filed write the "NOT OLDPRODUCTS" condition.
3. I want to Launch an application after installation. For this I am using Finish Action. I want to run this as "Run As Administrator". I colud find this optiop for all the
shortcuts. But, how can I apply to this ?
There are many solutions you can use to achieve this:

1. The recommended solution is to follow the last method described in the How do I launch a file after an installation article but use the "Launch file as Administrator" custom action instead of "Launch file or open URL" custom action.

2. Another solution is to go in the Install Parameters page and chec "Run as administrator" checkbox, but in this case the whole package will run as administrator when it will be launched and its type will be changed from MSI to EXE.

3. The last solution is to create and embed an application manifest with the application that you want to run as administrator, but in this case it will always be launched as administrator not only after the installation of your package.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Custom Action - Uninstall shortcut

ThnQ for the reply

When the uninstall shortcut is launched the uninstallation begin with the "Install Execution Stage" and uses only Basic User Interface. So, if you want your custom action to run when you use the uninstall shortcut, you can add it with sequence in the "Install Execution Stage".
If I do like this, I am getting problem with upgrade. During upgrade we are uninstalling the old product. When this is called, i dont want to exceute this custom action. How to handle this.

Aslo at the time of upgrade If I say "show only" for folder dialog, it is taking default path. I want to use the allredy installed path at the time of upgrade ...
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom Action - Uninstall shortcut

Hi,
If I do like this, I am getting problem with upgrade. During upgrade we are uninstalling the old product. When this is called, i dont want to exceute this custom action. How to handle this.
In order to achieve this you can go Custom Actions page, select your custom action and in the "Execution Stage Condition" click on the "Show upgrade options" link and check only the "Regular uninstall" checkbox.
Aslo at the time of upgrade If I say "show only" for folder dialog, it is taking default path. I want to use the allredy installed path at the time of upgrade ...
Go in the "Upgrades" page and check the "Use original installation path when upgrading" checkbox. In this case the newer version of your product will keep the path of the old product.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”