Does anyone know how to remove a shortcut through msi? I've got this vendor msi that removes the previous version of the application but not the shortcut.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Hi,

I think you may use a VBScript to forcibly remove it by calling it through a CA or you can even try using the remove file table in the vendor msi with the option set as '1' i.e. during install.

Please let me know if it works and also if something else does [8|]

Cheers
Answered 01/14/2008 by: India_Repackaging
Blue Belt

Please log in to comment
0
Strictly speaking, you should use the RemoveFile table. Script is usually a last resort for something like this.
Answered 01/14/2008 by: VBScab
Red Belt

Please log in to comment
0
Thanks all but which file key name and component will i use since the shortcut is on the desktop.
Answered 01/14/2008 by: gizmolala
Third Degree Blue Belt

Please log in to comment
0
Is this shortcut located under the user's profile or under "All Users"?

FileKey: can be whatever you want, it's just an identifier.
Component_: any existing component from the Component table that you know will be installed during installation of the new version.
FileName: the name of the shortcut file including the short- and long filename.
DirProperty: set a entry from the Directory table or Property table which resolves to the directory where the shortcut is located.
InstallMode: set it to 1 (msidbRemoveFileInstallModeOnInstall).
Answered 01/14/2008 by: AngelD
Red Belt

Please log in to comment
0
Hi,

You can use the shortcut name.lnk as an entry in the filename column and the directory as DesktopFolder and I think you can use any component. I generally use the component that contains the main .exe file for that application. I suggest even you can do the same.

Cheers [:)]
Answered 01/14/2008 by: India_Repackaging
Blue Belt

Please log in to comment
0
The shortcut is located under "All Users" profile.
Answered 01/14/2008 by: gizmolala
Third Degree Blue Belt

Please log in to comment
0
Then I am sure the Remove File table will do the trick and solve your problem.
Answered 01/14/2008 by: India_Repackaging
Blue Belt

Please log in to comment
0
tnx all. Got it working..
Answered 01/14/2008 by: gizmolala
Third Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity