cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JimmyG
Level 2

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
Labels (1)
0 Kudos
(3) Replies
ChristopheOce
Level 7

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
0 Kudos
Makumazan
Level 3

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. 😉
0 Kudos
JimmyG
Level 2

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?
0 Kudos