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
- :
- delete existing files
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
‎Dec 03, 2007
10:10 PM
delete existing files
Greetings from a newbie.
I have a need to delete files that already exist on a desktop folder and have been unable to work out how to do it.
I have defined entries in the RemoveFile table as below...
FileKey FileKey1 (default)
Component Component_ (default)
FileName msi-delete.txt (test filename)
DirProperty DesktopFolder
I have read the post that I thought was closest in relevance (‘How to remove a file if found’ by capsulecorpjx, 02-03-2006 @ 04:54 AM) and thought I followed the steps but was unsure about the correct DirProperty designation.
Essentially there is nothing much else in the Basic .MSI apart from the delete file. This is needed to remove a desktop shortcut that already exists (not part of another .MSI) prior to installing a new one.
Your help is appreciated.
‘assume no knowledge exists, and we’ll work up from there’:D
I have a need to delete files that already exist on a desktop folder and have been unable to work out how to do it.
I have defined entries in the RemoveFile table as below...
FileKey FileKey1 (default)
Component Component_ (default)
FileName msi-delete.txt (test filename)
DirProperty DesktopFolder
I have read the post that I thought was closest in relevance (‘How to remove a file if found’ by capsulecorpjx, 02-03-2006 @ 04:54 AM) and thought I followed the steps but was unsure about the correct DirProperty designation.
Essentially there is nothing much else in the Basic .MSI apart from the delete file. This is needed to remove a desktop shortcut that already exists (not part of another .MSI) prior to installing a new one.
Your help is appreciated.
‘assume no knowledge exists, and we’ll work up from there’:D
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 04, 2007
08:51 AM
So, you have a default feature and a default component? And it's the default component that is listed in the RemoveFile table? What InstallMode is set?
As an aside, you do realize that this MSI will show in Windows Installer's registry area as "installed" even though all it did was remove a shortcut, right?
As an aside, you do realize that this MSI will show in Windows Installer's registry area as "installed" even though all it did was remove a shortcut, right?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 04, 2007
05:53 PM
kathy,
InstallMode set to 1
Yes I realise it will show in the registry. I need to install other components but one of my deliverables is to remove a desktop shortcut that already exists.
InstallMode set to 1
Yes I realise it will show in the registry. I need to install other components but one of my deliverables is to remove a desktop shortcut that already exists.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 05, 2007
08:20 AM
Have you tried logging the install? That will tell you if the component was selected for installation and may indicate what other issues exist.
And although this certainly sounds like a very simple install project, you might also want to run validation on it to see if that shows any problems.
And although this certainly sounds like a very simple install project, you might also want to run validation on it to see if that shows any problems.
