/build/static/layout/Breadcrumb_cap_w.png

How to delete a file from User's App Data before install?

Hi all,

We are currently working on rolling out MapInfo 9.5 to our campus who currently have 8.5.
What we need to do is delete the MapInfo Profile file that was created with 8.5 before they run 9.5

So far we have got a "MapInfo 9.5 User Tools" MSI created (launches when a user logs in and it hasnt already been run for that user, and with user permisisons), which adds the registry and updated MapInfo.prf file to the location, but it will not overwrite even with the "Always Overwrite" option ticked, so we were thinking of using a Custom Action to delete the original file first.
The file we need to delete is C:\Documents and Settings\<USERNAME>\Application Data\MapInfo\MapInfo\MapInfo.prf.

Unfortunately Im not at the office atm (being pro-active!), and a couple of commands havent deleted the file using the CMD.EXE /C running before the MOVE FILES option, but I can post that when I get to the office if that'll help. Wierdly though, the CMD.EXE command does work as a user if its just written in the CMD window!(?)

What would I need to do to get this working?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: WayneB 15 years ago
Blue Belt
0
Hey Martin,

Just finished MapInfo 9.5 myself. I would use an Active Setup script to remove the file for each user, when logging in.

I believe that this would be easier than a repair of the msi, as it is such a large installation which would utilise too much time when launching an advertised component repair. I haven't had to deal with the MapInfo.prf issue you mentioned, but my packaged app hasn't been through UAT yet.

Hope this helps, confirms your plan,

Regards
Wayne
Posted by: Langaleer 15 years ago
Yellow Belt
0
Well after a fresh pair of eyes today, it looks like I may have forgotten a trailing "!
CMD.EXE /C rd "%USERPROFILE%\Application Data\MapInfo\MapInfo /S /Q was there instead of CMD.EXE /C rd "%USERPROFILE%\Application Data\MapInfo\MapInfo" /S /Q

Here's hoping this will work now!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ