Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Remove shortcut when clicks Cancel button


1 reply to this topic

uumlwy

uumlwy
  • Full Members
  • 1 posts

Posted 08 May 2007 - 09:47

Hello everyone
wink.gif I got a problem that I don't know how to remove the shortcuts when clicks Cancel button during installation.

The shortcuts are created by scripts.
So there is another function that is used to remove the shortcut.

It works well when do the uninstallation.
But when clicks Cancel button during installation,the shortcuts are not removed.

Pls tell me how to deal with this condition.
Yeah I have a custom action that call that funtion and it is a rollback execution and the install exec sequence is "After StartService" , the install exec condition is "Not Installed"

However it didn't work?



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 May 2007 - 12:23

Why do you create shortcuts using scripts in the first place?

Any action that modifies the target system (like your scripts) should be placed in the Execute sequence between InstallInitialize and InstallFinalize and should be set to "deferred execution" or "deferred execution in system context" if they need elevated rights (e.g. on Vista) and should have a corresponding rollback action.