This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to delete a startup shortcut created runtime
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 23, 2010
05:09 AM
How to delete a startup shortcut created runtime
My application will create a shortcut and put it into Startup Folder in order to run it after windows start. The problem is that shortcut can't get deleted during uninstallation.
I added one entry into RemoveFile table like
FileKey = StartupShortcut1
Componment_ = 'main app.exe'
FileName = 'appname.lnk'
DirProperty = StartupFolder
InstallMode = 1
But it failed to delete startup shortcut. Can anyone help on this?
Thanks
I added one entry into RemoveFile table like
FileKey = StartupShortcut1
Componment_ = 'main app.exe'
FileName = 'appname.lnk'
DirProperty = StartupFolder
InstallMode = 1
But it failed to delete startup shortcut. Can anyone help on this?
Thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 26, 2010
05:28 PM
One thing that stands out is that "InstallMode = 1" means "remove file during installation"; perhaps change to 2 to remove during uninstallation?
(Assuming you're dynamically creating the shortcut somehow, and not using the Shortcut table.)
(Assuming you're dynamically creating the shortcut somehow, and not using the Shortcut table.)