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
- :
- Newb Q: How do I delete a file that was not installed by the MSI?
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
‎Aug 09, 2007
01:03 AM
Newb Q: How do I delete a file that was not installed by the MSI?
Hi,
Sorry if this question seems obvious, but I'm new to this program.
I want to delete the file C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk from the target computer.
I have created an entry in the RemoveFile table, but I'm having trouble with the DirProperty field. No matter what I try in the Directory table I can't delete this file.
Is this the right way to go about deleting this file? If so how do I specify the directory?
Thanks for reading,
JimmyG
Sorry if this question seems obvious, but I'm new to this program.
I want to delete the file C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk from the target computer.
I have created an entry in the RemoveFile table, but I'm having trouble with the DirProperty field. No matter what I try in the Directory table I can't delete this file.
Is this the right way to go about deleting this file? If so how do I specify the directory?
Thanks for reading,
JimmyG
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 09, 2007
02:06 AM
Hi,
There are two ways i think (i'm a newbie too) !
One is create a script (installscript) who use the function FindFile or FindAllFiles
See the documentation of installscript function there are some samples
The other way is describe on this document :
http://www.macrovision.com/webdocuments/product_data.pdf
Have a nice day
Christophe
There are two ways i think (i'm a newbie too) !
One is create a script (installscript) who use the function FindFile or FindAllFiles
See the documentation of installscript function there are some samples
The other way is describe on this document :
http://www.macrovision.com/webdocuments/product_data.pdf
Have a nice day
Christophe
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 09, 2007
07:38 AM
Try to add next 4 entries to Directory Table:
MICROSOFT|CommonAppData|Microsoft
NETWORK|MICROSOFT|Network
CONNECTIONS|NETWORK|Connections
PBK|CONNECTIONS|Pbk
And as DirProperty use PBK. May be it helps. 😉
MICROSOFT|CommonAppData|Microsoft
NETWORK|MICROSOFT|Network
CONNECTIONS|NETWORK|Connections
PBK|CONNECTIONS|Pbk
And as DirProperty use PBK. May be it helps. 😉
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 09, 2007
08:58 PM
Thanks,
I want to try and aviod using InstallScript to keep the size of the MSI low.
Currently I have the following entries in the Directory table:
Directory Direc_Parent DefaultDir
______________________________________________________
ALLUSERSPROFILE TARGETDIR .:ALLUSE~1|All Users
CommonAppDataFolder ALLUSERSPROFILE .:Common~1|CommonAppData
MICROSOFT CommonAppDataFolder MICROS~1|Microsoft
NETWORK MICROSOFT Network
CONNECTIONS NETWORK - CONNEC~1|Connections
PBK CONNECTIONS Pbk
and this in the remove files table:
FileKey Component_ FileName DirProperty InstallMode
_______________________________________________________
FileKey3 Component_ rasphone.pbk PBK 3
From what I can tell this should delete the file C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk on install, however it doesn't, and I'm not getting any errors.
Any ideas?
I want to try and aviod using InstallScript to keep the size of the MSI low.
Currently I have the following entries in the Directory table:
Directory Direc_Parent DefaultDir
______________________________________________________
ALLUSERSPROFILE TARGETDIR .:ALLUSE~1|All Users
CommonAppDataFolder ALLUSERSPROFILE .:Common~1|CommonAppData
MICROSOFT CommonAppDataFolder MICROS~1|Microsoft
NETWORK MICROSOFT Network
CONNECTIONS NETWORK - CONNEC~1|Connections
PBK CONNECTIONS Pbk
and this in the remove files table:
FileKey Component_ FileName DirProperty InstallMode
_______________________________________________________
FileKey3 Component_ rasphone.pbk PBK 3
From what I can tell this should delete the file C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk on install, however it doesn't, and I'm not getting any errors.
Any ideas?