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 desktop shortcut


12 replies to this topic

stevesk

stevesk
  • Members
  • 7 posts

Posted 15 June 2004 - 06:10

Hi,

I have created a desktop shortcut to my program during the installation. However,

it is not removed during uninstallation.

Can someone guide me please how to remove this.

I am using ISWI 1.5 on windows XP.

I am new to using ISWI 1.5, so can somone guide me with bit more details please.


Thanks in Advance
Steve

EberhardH

EberhardH
  • Members
  • 137 posts

Posted 15 June 2004 - 14:17

If you created the shortcut with the resource pane:
Did you set the "Uninstall" property of your shortcut to "Yes"?

If you created the shortcut inside of your script:
make sure that LOGGING hadn't been disabled before.


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 15 June 2004 - 15:02

Since he's using InstallShield Professional - Windows Installer Edition 1.x, ... **moving post**
user posted image

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 15 June 2004 - 15:31

How did you create the shortcut?

stevesk

stevesk
  • Members
  • 7 posts

Posted 15 June 2004 - 22:18

Hi Guys,

I have created the shortcut using the shortcuts explorer.

The following properties have been set.
Display Name
Description
Arguments
Target,
Icon File
Icon Index
Run
Working Directory
Hot Key
Comments.

No other properties are available for uninstalling the shortcut.
There is no Uninstall property available.

Thanks
Steve

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 16 June 2004 - 13:31

That's strange. Did you generate a log file of the uninstall?
Check the component to which the shortcut is attached. Does it get uninstalled properly?

stevesk

stevesk
  • Members
  • 7 posts

Posted 17 June 2004 - 10:51

Hi Stefan,

Yes, I generated the log file of the unistall and the component to which the shortcut belongs is not removed. It is still hanging around on the system and in the Registry.

Its not a shared component either.

some other dlls were also not removed, not unregistered.

The components shared property was set to No.

some dlls were still found in the Registry under HKLM\software\Microsoft\windows\current\shared even though the shared property of those components was set to No.

I am using Installshield professional 2000 for windows installer 1.5 on windows xp


Thanks
Steve

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 17 June 2004 - 12:24

Was this a fresh install on a clean machine, or did you have previous versions of your application installed on that machine before?

stevesk

stevesk
  • Members
  • 7 posts

Posted 18 June 2004 - 10:15

Hi,

It is a fresh install on a clean machine. I searched the Registry for the component for which shortcut was created. It was found at HKLM\software\microsoft\windows\currentversion\sharedDlls. I manually deleted the entry before running uninstall and to my surprise both the component and desktop shortcut were removed.

The question here is why the component was registered as a shared dll by the installshield when the shared property for the component was set to NO.

There were few other dlls which were also registered as shared dlls when their shared property was set to NO.

If I delete them from registry from the shareddll entry, they were being removed from the machine otherwise not.

This is a clean machine and there were no previous installations.

Any help would be much appreciated.


Steve





Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 June 2004 - 14:45

Are these files installed to INSTALLDIR or to some other directory?
What's the value of the shareddll counter in registry before you uninstall, and what after uninstall?

stevesk

stevesk
  • Members
  • 7 posts

Posted 21 June 2004 - 05:36

These dlls are installed to System32 directory.
Before the Uninstall the ref count was 1 and after uninstall the entry has been removed by installshield.

However the dlls are still found in the system32 directory.

Steve

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 June 2004 - 08:26

As far as I know MSI will not remove files you install to system32. You should put that shortcut in a different component.

stevesk

stevesk
  • Members
  • 7 posts

Posted 22 June 2004 - 22:07

Thanks Stefan. The Desktop shortcut issue has now been resolved. It is being deleted on uninstall.

I appreciate your time and guidance.
Have a nice day.

Steve